Skip to content

Commit 158cf70

Browse files
authored
Merge pull request #561 from strg-at/bugfix/INPRO-3058-fix-docker-configuration
bugfix(gcloud-workstation): Changing storage driver to fuse-overlayfs, INPRO-3058
2 parents 69054a2 + bb94727 commit 158cf70

6 files changed

Lines changed: 38 additions & 2 deletions

File tree

gcloud-workstation-phpstorm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ RUN install -m 0755 -d /etc/apt/keyrings \
2929
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
3030
tee /etc/apt/sources.list.d/docker.list > /dev/null
3131

32+
COPY ./config/docker/daemon.json /etc/docker/daemon.json
33+
3234
# preparing google sdk installation
3335
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
3436
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
@@ -60,6 +62,7 @@ RUN apt update && add-apt-repository ppa:git-core/ppa -y && DEBIAN_FRONTEND=noni
6062
docker-ce-cli \
6163
docker-compose-plugin \
6264
flux \
65+
fuse-overlayfs \
6366
gettext-base \
6467
git \
6568
gnupg \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"storage-driver": "fuse-overlayfs",
3+
"features": {
4+
"buildkit": true
5+
},
6+
"builder": {
7+
"gc": {
8+
"enabled": true
9+
}
10+
}
11+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22
pkill docker || true # kills any running docker processes
3-
mkdir -p /home/user/docker # creates the docker directory in the home directory
3+
mkdir -p /home/user/docker/buildkit # creates the docker & buildkit directories in the home directory
4+
cat<<EOF>/home/user/docker/buildkit/buildkitd.toml # required to use fuse-overlayfs
5+
[worker.oci]
6+
snapshotter = "native"
7+
EOF

gcloud-workstation-vscode/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ RUN install -m 0755 -d /etc/apt/keyrings \
2929
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
3030
tee /etc/apt/sources.list.d/docker.list > /dev/null
3131

32+
COPY ./config/docker/daemon.json /etc/docker/daemon.json
33+
3234
# preparing google sdk installation
3335
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
3436
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
@@ -60,6 +62,7 @@ RUN apt update && add-apt-repository ppa:git-core/ppa -y && DEBIAN_FRONTEND=noni
6062
docker-ce-cli \
6163
docker-compose-plugin \
6264
flux \
65+
fuse-overlayfs \
6366
gettext-base \
6467
git \
6568
gnupg \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"storage-driver": "fuse-overlayfs",
3+
"features": {
4+
"buildkit": true
5+
},
6+
"builder": {
7+
"gc": {
8+
"enabled": true
9+
}
10+
}
11+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22
pkill docker || true # kills any running docker processes
3-
mkdir -p /home/user/docker # creates the docker directory in the home directory
3+
mkdir -p /home/user/docker/buildkit # creates the docker & buildkit directories in the home directory
4+
cat<<EOF>/home/user/docker/buildkit/buildkitd.toml # required to use fuse-overlayfs
5+
[worker.oci]
6+
snapshotter = "native"
7+
EOF

0 commit comments

Comments
 (0)