aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2021-10-01 18:55:23 -0500
committerKelley Spoon <kelley.spoon@linaro.org>2021-10-01 18:55:23 -0500
commita45cef0571ce689aac12ba26441344705c674192 (patch)
tree0d0c7051cadb193f95d9c29f2763e2350b4413a3
parent9d49a21ab5c8424fa8a7e567a3a2c99dcd3b20c2 (diff)
focal: Add focal (20.04) to baseimagesHEADmaster
Change-Id: I169ed6e2d163d69621f4fdb7ffcea90b455b62de
-rw-r--r--Dockerfile_focal20
-rwxr-xr-xbuild.sh1
2 files changed, 21 insertions, 0 deletions
diff --git a/Dockerfile_focal b/Dockerfile_focal
new file mode 100644
index 0000000..6ac8e68
--- /dev/null
+++ b/Dockerfile_focal
@@ -0,0 +1,20 @@
+# Builds ubuntu latest image from docker hub
+# Install and setups ansible
+# Run from ansible dir: "docker build -t ansible_deploy ."
+# You will need to update the playbook you deploy in this file.
+
+FROM ubuntu:focal
+
+LABEL maintainer="Linaro Systems Team <systems@linaro.org>"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && apt-get install -y software-properties-common
+RUN apt-add-repository -y ppa:ansible/ansible
+
+RUN apt-get update && apt-get install -y ansible vim bash openssh-server python3-apt sudo cron python3-pip
+
+RUN mkdir -p /root/.ssh/ && mkdir -p /var/run/sshd
+ADD pubkeys /root/.ssh/authorized_keys
+
+CMD /usr/sbin/sshd -D
diff --git a/build.sh b/build.sh
index 8f4f6c2..68c1358 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,7 @@
docker build -t ansible/baseimage:14.04 -f Dockerfile_trusty . &
docker build -t ansible/baseimage:16.04 -f Dockerfile_xenial . &
docker build -t ansible/baseimage:18.04 -f Dockerfile_bionic . &
+docker build -t ansible/baseimage:20.04 -f Dockerfile_focal . &
docker build -t linaro/login-proxy -f Dockerfile_login_proxy . &
(cd devdns; docker build -t linaro/devdns -f Dockerfile . ) &
(cd hostsdns; docker build -t linaro/hostsdns -f Dockerfile . ) &