summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile_trusty26
-rw-r--r--Dockerfile_xenial26
-rwxr-xr-xbuild.sh5
3 files changed, 57 insertions, 0 deletions
diff --git a/Dockerfile_trusty b/Dockerfile_trusty
new file mode 100644
index 0000000..2269c66
--- /dev/null
+++ b/Dockerfile_trusty
@@ -0,0 +1,26 @@
+# 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:14.04
+
+MAINTAINER Ben Copeland <ben.copeland@linaro.org>
+
+RUN apt-get update
+
+#RUN apt-get install -y software-properties-common python-software-properties
+#RUN apt-add-repository ppa:ansible/ansible
+
+# Update apt cache
+RUN apt-get update && apt-get install -y ansible vim bash openssh-server python-apt sudo cron
+
+RUN mkdir -p /root/.ssh/
+RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrT7UTB86g3QG3d8M19XusaY9rOyoEL7pn4FTcPgOSBMHg/Tp+V5Zx06sb7KR5dQ6lPnEGBrw6QHkUCuP/tq1xrmsoP830a6ukkloKSdKrbv2Uvxh8ecUy8UF6Rk/htJ0Fug7qlQW+pWza/UUpbpwRWMfE+AIERkq5LO62ImYTpWbCm0CsS3wHDVY9LIQukcu9TLLitFdzK1i20UuOpV0FDRqrVZXHaKRMf1gNQPsVYTfxYr9/fmcU6C8gU3xRjBPgTVIUEkD2lQqHBR37xlV4keF3o7fFf5tpxzXbgUF1rWOYw56vME0PXk+n1MPFvwwdbPv+/3QEMQdfUuVFrAIj ben.copeland@linaro.org" >> /root/.ssh/authorized_keys
+
+# add playbooks/roles to the image.
+#ADD ldap.conf /etc/ldap.conf
+
+#RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+ENTRYPOINT service ssh restart && bash
diff --git a/Dockerfile_xenial b/Dockerfile_xenial
new file mode 100644
index 0000000..8205109
--- /dev/null
+++ b/Dockerfile_xenial
@@ -0,0 +1,26 @@
+# 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:16.04
+
+MAINTAINER Ben Copeland <ben.copeland@linaro.org>
+
+RUN apt-get update
+
+#RUN apt-get install -y software-properties-common python-software-properties
+#RUN apt-add-repository ppa:ansible/ansible
+
+# Update apt cache
+RUN apt-get update && apt-get install -y ansible vim bash openssh-server python-apt sudo cron
+
+RUN mkdir -p /root/.ssh/
+RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrT7UTB86g3QG3d8M19XusaY9rOyoEL7pn4FTcPgOSBMHg/Tp+V5Zx06sb7KR5dQ6lPnEGBrw6QHkUCuP/tq1xrmsoP830a6ukkloKSdKrbv2Uvxh8ecUy8UF6Rk/htJ0Fug7qlQW+pWza/UUpbpwRWMfE+AIERkq5LO62ImYTpWbCm0CsS3wHDVY9LIQukcu9TLLitFdzK1i20UuOpV0FDRqrVZXHaKRMf1gNQPsVYTfxYr9/fmcU6C8gU3xRjBPgTVIUEkD2lQqHBR37xlV4keF3o7fFf5tpxzXbgUF1rWOYw56vME0PXk+n1MPFvwwdbPv+/3QEMQdfUuVFrAIj ben.copeland@linaro.org" >> /root/.ssh/authorized_keys
+
+# add playbooks/roles to the image.
+#ADD ldap.conf /etc/ldap.conf
+
+#RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+ENTRYPOINT service ssh restart && bash
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..3410e55
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,5 @@
+docker build -t ansible/baseimage:14.04 -f Dockerfile_trusty . &
+docker build -t ansible/baseimage:16.04 -f Dockerfile_xenial . &
+
+wait
+echo "Build complete"