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

Install pyenv and touch docker config files for codespaces #2080

Merged
merged 5 commits into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/containers/codespaces/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ RUN if [ -z "$CLAB_VERSION" ]; then \
# install gNMIc and gNOIc
RUN bash -c "$(curl -sL https://get-gnmic.openconfig.net)" && bash -c "$(curl -sL https://get-gnoic.kmrd.dev)"

# add empty docker config files to avoid clab warnings for root user
RUN mkdir -p /root/.docker && touch /root/.docker/config.json

# vscode user is created in the MS devcontainer image
USER vscode

# create ssh key for vscode user to enable passwordless ssh to devices
RUN ssh-keygen -t ecdsa -b 256 -N "" -f ~/.ssh/id_ecdsa

# install pyenv
RUN bash -c "$(curl https://pyenv.run)"

# add empty docker config files to avoid clab warnings for vscode user
RUN mkdir -p /home/vscode/.docker && touch /home/vscode/.docker/config.json

# setup zsh/oh-my-zsh
COPY ./zsh/.zshrc /home/vscode/.zshrc
COPY ./zsh/.p10k.zsh /home/vscode/.p10k.zsh
Expand Down