Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to codespaces #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Migrate to codespaces #13

wants to merge 1 commit into from

Conversation

Nicogene
Copy link
Member

@Nicogene Nicogene commented Jan 7, 2025

As per title, it fixes #12

@Nicogene Nicogene requested a review from pattacini January 7, 2025 10:52
@Nicogene Nicogene self-assigned this Jan 7, 2025
Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One main comment regarding .devcontainer.json.

Comment on lines +10 to +13
"download_bashrc": "cd ${HOME} && wget -O .bashrc_iCub https://raw.githubusercontent.com/icub-tech-iit/icub-os-files/master/user-environment/bashrc_iCub_superbuild",
"append_bashrc": "cd ${HOME} && printf \"if [ -f ~/.bashrc_iCub ]; then\n . ~/.bashrc_iCub\nfi\" | cat - ~/.bashrc > temp && mv temp ~/.bashrc && source ~/.bashrc && cd -",
"set_obj_subdir": "cd ~ && printf \"export OBJ_SUBDIR=build\n\" | cat - ~/.bashrc > temp && mv temp ~/.bashrc && source ~/.bashrc && cd -"
}
Copy link
Member

@pattacini pattacini Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is likely not correct as these commands need to be executed in a row, I suppose.
Instead, here each line runs into an independent terminal.

I'm afraid that it was the same in Gitpod so there was already a problem in the first place.

You could better churn out a setup.sh bash script (make it executable and put it under .devcontainer folder). Then, you can apply this refactoring:

"vnc": "start-vnc-session.sh",
"setup": "setup.sh"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, you may embed those operations inside the Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change CDE to rely on GitHub Codespaces
2 participants