Skip to content

chore: use dogfood-oss image in .devcontainer #8231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use Dockerfile
  • Loading branch information
matifali committed Jun 19, 2023
commit 500d4a188cfe6a83554084c504a1372fbbb8da6f
10 changes: 8 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "Development environments on your infrastructure",
"image": "codercom/oss-dogfood:latest",
"context": "../dogfood",
"dockerFile": "../dogfood/Dockerfile",
"runArgs": ["--init", "--privileged"],
"overrideCommand": false,
"remoteUser": "coder"
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:1": {
"version": "latest",
"moby": true
}
}
}
12 changes: 2 additions & 10 deletions dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,9 @@ RUN apt-get update --quiet && apt-get install --yes \
# Configure FIPS-compliant policies
update-crypto-policies --set FIPS

# Install the docker buildx component.
RUN DOCKER_BUILDX_VERSION=$(curl -s "https://api.github.com/repos/docker/buildx/releases/latest" | grep '"tag_name":' | sed -E 's/.*"(v[^"]+)".*/\1/') && \
mkdir -p /usr/local/lib/docker/cli-plugins && \
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" && \
chmod a+x /usr/local/lib/docker/cli-plugins/docker-buildx

# See https://github.com/cli/cli/issues/6175#issuecomment-1235984381 for proof
# the apt repository is unreliable
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
RUN curl -L https://github.com/cli/cli/releases/download/v2.30.0/gh_2.30.0_linux_amd64.deb -o gh.deb && \
dpkg -i gh.deb

# Install Lazygit
Expand Down Expand Up @@ -207,9 +201,7 @@ RUN systemctl disable \
postgresql

# Configure systemd services for CVMs
RUN systemctl enable \
docker \
ssh
RUN systemctl enable ssh

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