You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,40 @@ To deploy a Opennebula instance locally run:
49
49
50
50
where "boxname" can be debian or centos
51
51
52
+
## Docker
53
+
54
+
To deploy a Opennebula instance locally in a docker container run these commandos:
55
+
56
+
First build an image with puppet and the sources in it (Depending on centos:6):
57
+
58
+
cd docker
59
+
docker build --rm -t epost-dev/one .
60
+
cd ..
61
+
62
+
Run puppet in the container, choose one:
63
+
64
+
Only build a container which acts as a opennebula head, gui, but not the kvm things:
65
+
66
+
docker run --rm -v $(pwd):/etc/puppet/modules/one epost-dev/one puppet apply /etc/puppet/modules/one/spec/docker-int/one-head.pp
67
+
68
+
Only build a container which acts like a opennebula node:
69
+
70
+
# here is a common error i wasn't able to fix. centos 6 in docker has some issues with ksm
71
+
docker run --rm -v $(pwd):/etc/puppet/modules/one epost-dev/one puppet apply /etc/puppet/modules/one/spec/docker-int/one-node.pp
72
+
73
+
Build a container which acts as head and node
74
+
75
+
docker run --rm -v $(pwd):/etc/puppet/modules/one epost-dev/one puppet apply /etc/puppet/modules/one/spec/docker-int/one-head-node.pp
76
+
77
+
Build a container which has an apache for the openenbula sunstone configured:
78
+
79
+
docker run --rm -v $(pwd):/etc/puppet/modules/one epost-dev/one puppet apply /etc/puppet/modules/one/spec/docker-int/one-head-httpd.pp
80
+
81
+
This Docker command will add the current directory as ```ect/puppet/modules/one```. So one can test each new change without committing or rebuilding the image.
82
+
83
+
The "spec" files can be found in the spec/docker-int directory of this project. One will build a one head,
84
+
one will build a node and one a head which also can be a node.
0 commit comments