File tree 2 files changed +14
-11
lines changed
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,15 @@ FROM jsii/superchain:1-bookworm-slim-node20
2
2
3
3
USER root
4
4
5
+ # Setup oh-my-zsh
6
+ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7
+ && apt-get -y install --no-install-recommends zsh vim \
8
+ && rm -rf /var/lib/apt/lists/* \
9
+ && chsh -s $(which zsh) superchain
10
+
11
+ # Required, otherwise shell is extermly slow due the size of the aws-cdk
12
+ RUN sh -c 'echo "[oh-my-zsh]\n hide-dirty = 1" > /etc/gitconfig'
13
+
5
14
# Change uid/guid of superchain so it can work with the docker-in-docker feature
6
15
RUN groupmod --gid 1000 superchain \
7
16
&& usermod --uid 1000 --gid 1000 superchain \
@@ -10,10 +19,4 @@ RUN groupmod --gid 1000 superchain \
10
19
USER superchain
11
20
12
21
# Setup oh-my-zsh
13
- RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
14
- && sudo apt-get -y install --no-install-recommends zsh vim \
15
- && sudo rm -rf /var/lib/apt/lists/* \
16
- && sudo chsh -s $(which zsh) $(whoami)
17
- RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended \
18
- # Required, otherwise shell is extermly slow due the size of the aws-cdk
19
- && sudo sh -c 'echo "[oh-my-zsh]\n hide-dirty = 1" > /etc/gitconfig'
22
+ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
Original file line number Diff line number Diff line change 3
3
"build" : {
4
4
"dockerfile" : " Dockerfile"
5
5
},
6
-
7
6
"customizations" : {
8
7
"vscode" : {
9
- "extensions" : [" dbaeumer.vscode-eslint" ]
8
+ "extensions" : [
9
+ " dbaeumer.vscode-eslint"
10
+ ]
10
11
}
11
12
},
12
-
13
13
"postCreateCommand" : " yarn install" ,
14
14
"remoteUser" : " superchain" ,
15
15
"features" : {
16
- "docker-in-docker" : {
16
+ "ghcr.io/devcontainers/features/ docker-in-docker:2 " : {
17
17
"version" : " latest" ,
18
18
"moby" : true
19
19
}
You can’t perform that action at this time.
0 commit comments