summaryrefslogtreecommitdiffstats
path: root/roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile
diff options
context:
space:
mode:
authorThomas Wiest <twiest@redhat.com>2014-10-28 14:43:15 -0400
committerThomas Wiest <twiest@redhat.com>2014-10-29 12:00:06 -0400
commit525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c (patch)
tree6b063a310bb71cae17f3b6a910dca5ac1584f829 /roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile
parentfd788c250c1fbdc5cc188aa29812c65ebafecc59 (diff)
downloadopenshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.gz
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.bz2
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.xz
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.zip
Added Docker image build stuff
Diffstat (limited to 'roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile')
-rw-r--r--roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile b/roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile
new file mode 100644
index 000000000..86783f96d
--- /dev/null
+++ b/roles/docker_img_rhel6ops/files/rhel6ops_container/Dockerfile
@@ -0,0 +1,29 @@
+FROM rhel6
+MAINTAINER Thomas Wiest <twiest@redhat.com>
+
+ENV CONTAINER docker
+ENV USER root
+ENV HOME /root
+ENV TERM xterm
+WORKDIR /root
+
+# creature comforts
+ADD bashrc /root/.bashrc
+
+# Add the yum repos
+ADD etc/yum.repos.d/ /etc/yum.repos.d
+
+# Add yum vars
+RUN echo -n 6 > /etc/yum/vars/majorrelease
+
+# setup links for the yum mirror certs
+RUN ln -s /run/secrets/etc-pki-entitlement/yum/client-cert.pem /var/lib/yum/client-cert.pem ; \
+ ln -s /run/secrets/etc-pki-entitlement/yum/client-key.pem /var/lib/yum/client-key.pem
+
+
+RUN rpm --import /etc/pki/rpm-gpg/* && \
+yum clean metadata && \
+yum -y remove subscription-manager && \
+yum -y install vim-enhanced telnet && \
+yum -y update && \
+yum clean all