Created
July 24, 2016 20:43
-
-
Save hkparker/d5beb5dccfa3f12a601bc7abad05efb0 to your computer and use it in GitHub Desktop.
Dockerfile for Xen Orchestra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6-wheezy@sha256:5eb189fa5041cb692146d3212593ef965e8adf58f48a2bfc738fa30bb7f5045f | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install build-essential libpng-dev git python-minimal -y | |
RUN git clone -b stable http://github.com/vatesfr/xo-server /opt/xo-server && \ | |
git clone -b stable http://github.com/vatesfr/xo-web /opt/xo-web | |
RUN cd /opt/xo-server && npm install && npm run build && \ | |
cd /opt/xo-web && npm install && npm run build | |
RUN cd /opt/xo-server && cp sample.config.yaml .xo-server.yaml && \ | |
sed -i -e "s/#'\/': '\/path\/to\/xo-web\/dist\/'/'\/': '\/opt\/xo-web\/dist\/'/g" .xo-server.yaml && \ | |
sed -i -e "s/#uri: ''/uri: 'redis:\/\/redis:6379'/g" .xo-server.yaml && \ | |
sed -i -e "#user: 'nobody'/user: 'nobody'" .xo-server.yaml && \ | |
sed -i -e "#group: 'nogroup'/group: 'nogroup'" .xo-server.yaml | |
CMD cd /opt/xo-server && npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment