master 5.x branch of Xen Orchestra
From Docker Hub:
docker pull brijohn/xen-orchestra
From Source:
git clone https://github.com/brijohn/docker-xen-orchestra.git
cd docker-xen-orchestra
docker build -t "xen-orchestra:latest" --rm --no-cache .
By default this will be the master branch. If you wish to build a branch other then master you can add --build-arg branch= to the docker build command. For example to build stable run:
docker build -t "xen-orchestra:stable" --build-arg branch=stable --rm --no-cache .
Create a set of volumes used to store the XO databases.
docker volume create --name xo-redis
docker volume create --name xo-server
docker volume create --name xo-backup
Next launch the container using the previously created volumes.
docker run -d -p 8000:8000 -v xo-redis:/var/lib/redis \
-v xo-server:/var/lib/xo-server \
-v xo-backup:/var/lib/xoa-backup \
--name xen-orchestra brijohn/xen-orchestra
Use docker's logging functionality to print out the xo-server log file.
docker logs xen-orchestra
If SSL support is needed, you will need to rebuild the container after modifying the xo-server.yaml file by adding lines specifying the certificate and key file.
user: 'app'
http:
listen:
-
host: '0.0.0.0'
port: 8000
cert: <path/to/cert/file>
key: <path/to/key/file>
mounts:
'/': '/app/xo-web/dist/'
redis:
uri: 'tcp://localhost:6379'
For a full list of SSL/TLS options see: NodeJS:tls.createServer
Brian Johnson - Github - brijohn@gmail.com
Distributed under the GPL 3 license. See LICENSE
for more information.