-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (25 loc) · 1.01 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
#Загрузка базового образа Centos с настройками для systemd
FROM centos:centos7.8.2003
LABEL version="1.0"
LABEL maintainer="[email protected]"
ENV container=docker
COPY container.target /etc/systemd/system/container.target
RUN ln -sf /etc/systemd/system/container.target /etc/systemd/system/default.target
ENTRYPOINT ["/sbin/init"]
CMD ["--log-level=info"]
STOPSIGNAL SIGRTMIN+3
COPY ./license/ /opt/license/
COPY ./start_ansible_playbook.sh /opt/
COPY ./start_services.sh /opt/
COPY ./server_playbook.yml /opt/
COPY ./rpms/ /opt/rpms/
RUN yum -y install epel-release
RUN yum -y install ansible && yum clean all
COPY ./CentOS-ORMP.repo /etc/yum.repos.d/
RUN mkdir -p /etc/ansible && \
echo "[server]" > /etc/ansible/hosts && \
echo "ansible_password=Art7Tykx78Dp" >> /etc/ansible/hosts && \
chmod +x /opt/start_ansible_playbook.sh && \
echo "root:Art7Tykx78Dp" | chpasswd
WORKDIR /
EXPOSE 8080 8088 8081 80 88 443 446 161 5060 3478 1110 22 49000-49150 49152-49182