summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2018-02-13 09:43:30 +0000
committerBenjamin Copeland <ben.copeland@linaro.org>2018-02-13 09:43:30 +0000
commite73f1cb952657b9e657f8a07d443bb414fe1dc48 (patch)
tree12b51c8c5f695552555b83fa7ef68b45289ac44d
Initial commit
-rw-r--r--Dockerfile_trusty26
-rw-r--r--Dockerfile_xenial26
-rw-r--r--README.MD12
-rwxr-xr-xbuild.sh5
-rw-r--r--pubkeys2
5 files changed, 71 insertions, 0 deletions
diff --git a/Dockerfile_trusty b/Dockerfile_trusty
new file mode 100644
index 0000000..445ea98
--- /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
+
+LABEL 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/
+ADD pubkeys /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..d750189
--- /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
+
+LABEL 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/
+ADD pubkeys /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/README.MD b/README.MD
new file mode 100644
index 0000000..b0b8fef
--- /dev/null
+++ b/README.MD
@@ -0,0 +1,12 @@
+Dockerfiles
+======
+
+These Docker Images are used to provide a basic "dev" environment.
+
+Usage
+======
+
+ * ./build.sh - build images
+ * docker run -ti ansible/baseimage:14.04 - 14.04 image
+ * docker run -ti ansible/baseimage:16.04 - 16.04 image
+
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"
diff --git a/pubkeys b/pubkeys
new file mode 100644
index 0000000..fec30de
--- /dev/null
+++ b/pubkeys
@@ -0,0 +1,2 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrT7UTB86g3QG3d8M19XusaY9rOyoEL7pn4FTcPgOSBMHg/Tp+V5Zx06sb7KR5dQ6lPnEGBrw6QHkUCuP/tq1xrmsoP830a6ukkloKSdKrbv2Uvxh8ecUy8UF6Rk/htJ0Fug7qlQW+pWza/UUpbpwRWMfE+AIERkq5LO62ImYTpWbCm0CsS3wHDVY9LIQukcu9TLLitFdzK1i20UuOpV0FDRqrVZXHaKRMf1gNQPsVYTfxYr9/fmcU6C8gU3xRjBPgTVIUEkD2lQqHBR37xlV4keF3o7fFf5tpxzXbgUF1rWOYw56vME0PXk+n1MPFvwwdbPv+/3QEMQdfUuVFrAIj ben.copeland@linaro.org
+ssh-rsa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