Skip to content

Commit

Permalink
Install pyenv and touch docker config files for codespaces (#2080)
Browse files Browse the repository at this point in the history
* install pyenv and touch docker config files

* fix touch

* split touch per user

* create dirs

* fix path
  • Loading branch information
hellt committed Jun 10, 2024
1 parent 119c0aa commit 0a4fa57
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 0a4fa57

Please sign in to comment.