Skip to content

Commit

Permalink
improved dx
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Sep 3, 2022
1 parent a554c94 commit bd508d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ FROM jsii/superchain:1-buster-slim

USER root

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends zsh
# Change uid/guid of superchain so it can work with the docker-in-docker feature
RUN groupmod --gid 1000 superchain \
&& usermod --uid 1000 --gid 1000 superchain \
&& chown -R 1000:1000 /home/superchain

USER superchain

RUN sudo chsh -s $(which zsh) $(whoami)
# Setup oh-my-zsh
RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& sudo apt-get -y install --no-install-recommends zsh \
&& sudo rm -rf /var/lib/apt/lists/* \
&& sudo chsh -s $(which zsh) $(whoami)
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended \
# Required, otherwise shell is extermly slow due the size of the aws-cdk
&& echo "[oh-my-zsh]\n hide-dirty = 1" > /home/superchain/.gitconfig
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"postCreateCommand": "yarn install",
"remoteUser": "superchain",
"features": {
"git": "latest",
"aws-cli": "latest",
"docker-from-docker": {
"docker-in-docker": {
"version": "latest",
"moby": true
}
Expand Down

0 comments on commit bd508d4

Please sign in to comment.