chore: use the official docker repo on ubuntu (#154)

This commit is contained in:
Dean Sheather 2022-05-04 13:23:17 -05:00 committed by GitHub
parent f176f2d5fd
commit 28dfb4ec39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 4 deletions

View File

@ -29,7 +29,7 @@ RUN pacman --noconfirm -Syyuu \
RUN systemctl enable docker
# Add docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Add coder user.

View File

@ -30,7 +30,7 @@ RUN dnf config-manager --add-repo https://download.docker.com/linux/centos/docke
systemctl enable docker
# Add docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Add a user `coder` so that you're not developing as the `root` user

View File

@ -2,14 +2,23 @@ FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
# Install the Docker apt repository
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes ca-certificates
COPY docker-archive-keyring.gpg /usr/share/keyrings/docker-archive-keyring.gpg
COPY docker.list /etc/apt/sources.list.d/docker.list
# Install baseline packages
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes \
bash \
build-essential \
ca-certificates \
containerd.io \
curl \
docker.io \
docker-ce \
docker-ce-cli \
docker-compose-plugin \
htop \
locales \
man \
@ -30,7 +39,7 @@ RUN apt-get update && \
RUN systemctl enable docker
# Add docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Add a user `coder` so that you're not developing as the `root` user

Binary file not shown.

1
images/base/docker.list Normal file
View File

@ -0,0 +1 @@
deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable