-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (17 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:16.04
ARG ONEPASS=onepassword
ARG SSHPATH=./id_rsa*
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get install -y wget apt-transport-https && \
wget -q -O- https://downloads.opennebula.org/repo/repo.key | apt-key add - && \
echo "deb https://downloads.opennebula.org/repo/5.8/Ubuntu/16.04 stable opennebula" > /etc/apt/sources.list.d/opennebula.list && \
apt-get update && \
apt-get install -y opennebula opennebula-sunstone opennebula-gate opennebula-flow opennebula-node \
gcc libmysqlclient-dev ruby-dev make sudo lsb-release net-tools \
vim xml-twig-tools jq qemu-kvm openssh-server -y && \
/usr/share/one/install_gems --yes
COPY ${SSHPATH} /var/lib/one/.ssh/
COPY entrypoint.sh /
ADD init.tar /etc/init.d/
RUN echo "oneadmin:${ONEPASS}" > /var/lib/one/.one/one_auth
ENTRYPOINT [ "/entrypoint.sh" ]