Skip to content

Commit 500d4a1

Browse files
committed
use Dockerfile
1 parent 5073517 commit 500d4a1

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"name": "Development environments on your infrastructure",
3-
"image": "codercom/oss-dogfood:latest",
3+
"context": "../dogfood",
4+
"dockerFile": "../dogfood/Dockerfile",
45
"runArgs": ["--init", "--privileged"],
56
"overrideCommand": false,
6-
"remoteUser": "coder"
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:1": {
9+
"version": "latest",
10+
"moby": true
11+
}
12+
}
713
}

dogfood/Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,9 @@ RUN apt-get update --quiet && apt-get install --yes \
165165
# Configure FIPS-compliant policies
166166
update-crypto-policies --set FIPS
167167

168-
# Install the docker buildx component.
169-
RUN DOCKER_BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | grep '"tag_name":' | sed -E 's/.*"(v[^"]+)".*/\1/') && \
170-
mkdir -p /usr/local/lib/docker/cli-plugins && \
171-
curl -Lo /usr/local/lib/docker/cli-plugins/docker-buildx "https://github.com/docker/buildx/releases/download/${DOCKER_BUILDX_VERSION}/buildx-${DOCKER_BUILDX_VERSION}.linux-amd64" && \
172-
chmod a+x /usr/local/lib/docker/cli-plugins/docker-buildx
173-
174168
# See https://github.com/cli/cli/issues/6175#issuecomment-1235984381 for proof
175169
# the apt repository is unreliable
176-
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
170+
RUN curl -L https://github.com/cli/cli/releases/download/v2.30.0/gh_2.30.0_linux_amd64.deb -o gh.deb && \
177171
dpkg -i gh.deb
178172

179173
# Install Lazygit
@@ -207,9 +201,7 @@ RUN systemctl disable \
207201
postgresql
208202

209203
# Configure systemd services for CVMs
210-
RUN systemctl enable \
211-
docker \
212-
ssh
204+
RUN systemctl enable ssh
213205

214206
# Install tools with published releases, where that is the
215207
# preferred/recommended installation method.

0 commit comments

Comments
 (0)