Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
feat(image): Add ubuntu 20.04 image
Browse files Browse the repository at this point in the history
This PR is too add ubuntu 20.04 image.
Dockerfile is copied from 18.04.

Closes #248

Signed-off-by: Tam Mach <sayboras@yahoo.com>
  • Loading branch information
sayboras committed Sep 18, 2020
1 parent da05426 commit 69b5c21
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -111,6 +111,7 @@ images are:
- `quay.io/footloose/fedora29`
- `quay.io/footloose/ubuntu16.04`
- `quay.io/footloose/ubuntu18.04`
- `quay.io/footloose/ubuntu20.04`
- `quay.io/footloose/amazonlinux2`
- `quay.io/footloose/debian10`
- `quay.io/footloose/clearlinux`
Expand Down
43 changes: 43 additions & 0 deletions images/ubuntu20.04/Dockerfile
@@ -0,0 +1,43 @@
FROM ubuntu:20.04

ENV container docker

# Don't start any optional services except for the few we need.
RUN find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
-not -name '*journald*' \
-not -name '*systemd-tmpfiles*' \
-not -name '*systemd-user-sessions*' \
-exec rm \{} \;

RUN apt-get update && \
apt-get install -y \
dbus systemd openssh-server net-tools iproute2 iputils-ping curl wget vim-tiny sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN >/etc/machine-id
RUN >/var/lib/dbus/machine-id

EXPOSE 22

RUN systemctl set-default multi-user.target
RUN systemctl mask \
dev-hugepages.mount \
sys-fs-fuse-connections.mount \
systemd-update-utmp.service \
systemd-tmpfiles-setup.service \
console-getty.service
RUN systemctl disable \
networkd-dispatcher.service

# This container image doesn't have locales installed. Disable forwarding the
# user locale env variables or we get warnings such as:
# bash: warning: setlocale: LC_ALL: cannot change locale
RUN sed -i -e 's/^AcceptEnv LANG LC_\*$/#AcceptEnv LANG LC_*/' /etc/ssh/sshd_config

# https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/
STOPSIGNAL SIGRTMIN+3

CMD ["/bin/bash"]
1 change: 1 addition & 0 deletions tests/variables.json
Expand Up @@ -4,6 +4,7 @@
"centos7",
"fedora29",
"ubuntu18.04",
"ubuntu20.04",
"debian10",
"clearlinux"
]
Expand Down

0 comments on commit 69b5c21

Please sign in to comment.