[node-patches] Change in ovirt-node[master]: Update docker build instructions
rbarry at redhat.com
rbarry at redhat.com
Tue Jul 29 14:44:15 UTC 2014
Ryan Barry has uploaded a new change for review.
Change subject: Update docker build instructions
......................................................................
Update docker build instructions
Docker building still won't work until I look at node-creator, but
fix the build instructions. "docker build - <..." works in a temp
directory which doesn't know where the script is. Needs to be
symlinked into the local directory instead.
Also, docker build no longer directly runs the entrypoint, so it
should be tagged and run independently
Change-Id: I6ea0ea442f4a11fc9edc7940d2a8b1906511543f
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
A docker/Dockerfile
M docker/Dockerfile-el6
M docker/README.docker
3 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/05/30805/1
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 120000
index 0000000..3a6ba2a
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1 @@
+Dockerfile-el6
\ No newline at end of file
diff --git a/docker/Dockerfile-el6 b/docker/Dockerfile-el6
index b83d29f..7cdbcb9 100644
--- a/docker/Dockerfile-el6
+++ b/docker/Dockerfile-el6
@@ -1,5 +1,6 @@
FROM centos:latest
VOLUME ["/ovirt"]
+RUN rpm -Uvh http://mirror.chpc.utah.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
RUN yum -y install install livecd-tools appliance-tools-minimizer
RUN yum -y install fedora-packager python-devel rpm-build createrepo
RUN yum -y install selinux-policy-doc checkpolicy selinux-policy-devel
diff --git a/docker/README.docker b/docker/README.docker
index 90fbf06..a932b16 100644
--- a/docker/README.docker
+++ b/docker/README.docker
@@ -25,4 +25,6 @@
Build oVirt Node in docker
--------------------------
- $ sudo docker build - < Dockerfile-f20
+ $ ln -s Dockerfile-${distro} Dockerfile
+ $ sudo docker build -t ovirt/${distro} .
+ $ sudo docker run ovirt/${distro} [commithash]
--
To view, visit http://gerrit.ovirt.org/30805
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ea0ea442f4a11fc9edc7940d2a8b1906511543f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
More information about the node-patches
mailing list