-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
83 lines (69 loc) · 2.3 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#TO BE RUN AS
#docker run -dit --privileged --name openstack-stein-container --net=host -v /sys/fs/cgroup:/sys/fs/cgroup:ro openstack
# Utilizzare l'immagine di base di Ubuntu 18.04
FROM ubuntu:18.04
ENV container docker
RUN apt-get update && apt-get install -y systemd && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& rm -f /lib/systemd/system/multi-user.target.wants/* \
&& rm -f /etc/systemd/system/*.wants/* \
&& rm -f /lib/systemd/system/local-fs.target.wants/* \
&& rm -f /lib/systemd/system/sockets.target.wants/*udev* \
&& rm -f /lib/systemd/system/sockets.target.wants/*initctl* \
&& rm -f /lib/systemd/system/basic.target.wants/* \
&& rm -f /lib/systemd/system/anaconda.target.wants/*
RUN ln -sf /usr/share/zoneinfo/Europe/Rome /etc/localtime && echo "Europe/Rome" > /etc/timezone
# Aggiorna i pacchetti e installa le dipendenze necessarie
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
software-properties-common \
curl \
iproute2
# Aggiungi il repository OpenStack Stein
RUN add-apt-repository cloud-archive:stein -y
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
sudo \
net-tools \
dialog \
mariadb-server \
iputils-ping \
wget \
vim \
git \
net-tools \
chrony \
python-pymysql \
rabbitmq-server \
memcached \
python-memcache \
keystone \
glance \
placement-api \
swift \
swift-proxy \
python-swiftclient \
python-keystoneclient \
python-keystonemiddleware \
xfsprogs \
rsync \
nova-api \
nova-conductor \
nova-consoleauth \
nova-novncproxy \
nova-scheduler \
nova-compute \
neutron-server \
neutron-plugin-ml2 \
neutron-linuxbridge-agent \
neutron-l3-agent \
neutron-dhcp-agent \
neutron-metadata-agent \
openstack-dashboard \
python3-openstackclient
# Clona il repository di installazione di OpenStack
RUN git clone https://github.com/lucadagati/openstack_stein_swift.git /openstack_stein_swift
# Imposta la directory di lavoro
WORKDIR /openstack_stein_swift
# Esegui lo script di installazione di OpenStack Stein
RUN chmod +x Stein_Installation.sh
# Imposta il comando di default del container
#CMD cd /openstack_stein_swift && /bin/bash -c "./Stein_Installation.sh"
CMD ["/sbin/init"]