Skip to content

Commit

Permalink
updating to jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-eraigosa committed Nov 27, 2023
1 parent 028a802 commit 93cb06b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:

Expand Down
36 changes: 27 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Easy dockerfile to test my stuff
FROM ubuntu:bionic
FROM ubuntu:jammy
LABEL Description="Wenlock dotfiles" Vendor="Wenlock Wizzard in a Blizzard LTD." Version="0.0.1" Maintainer="[email protected]"

# Lets setup Docker in Docker using https://github.com/microsoft/vscode-dev-containers/tree/master/script-library
Expand All @@ -21,7 +21,7 @@ ARG ENABLE_NONROOT_DOCKER="true"
ARG SOURCE_SOCKET=/var/run/docker-host.sock
ARG TARGET_SOCKET=/var/run/docker.sock
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get update -y \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
apt-utils \
Expand All @@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
coreutils \
curl \
git \
gnupg \
gnupg2 \
gnupg-agent \
gosu \
Expand All @@ -48,18 +49,35 @@ RUN export DEBIAN_FRONTEND=noninteractive \
&& rm /tmp/common-setup.sh \
#
# Install dockerd
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& sudo install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg \
# Add the repository to Apt sources:
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update
#
# old stuff
# && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
# && add-apt-repository \
# "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
# $(lsb_release -cs) \
# stable" \
# && apt-get update \
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin \
#
# Use Docker script from script library to set things up (installs: docker, docker-compose, sets up dind, and a bunch of other stuff)
&& curl -SL https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose \
&& sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& curl -sSL $DOCKER_SCRIPT_SOURCE -o /tmp/docker-setup.sh \
&& ([ "${DOCKER_SCRIPT_SHA}" = "dev-mode" ] || (echo "${DOCKER_SCRIPT_SHA} */tmp/docker-setup.sh" | sha256sum -c -)) \
&& /bin/bash /tmp/docker-setup.sh "${ENABLE_NONROOT_DOCKER}" "${SOURCE_SOCKET}" "${TARGET_SOCKET}" "${USERNAME}" \
Expand Down Expand Up @@ -89,4 +107,4 @@ WORKDIR /home/$USERNAME
USER $USERNAME

ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh"]
CMD ["sleep", "infinity"]
CMD ["sleep", "infinity"]

0 comments on commit 93cb06b

Please sign in to comment.