-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
26 lines (19 loc) · 985 Bytes
/
Copy pathContainerfile
File metadata and controls
26 lines (19 loc) · 985 Bytes
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
FROM docker.io/redhat/ubi8-init:latest
LABEL maintainer="https://github.com/soubinan"
COPY ./cloudstack.repo /etc/yum.repos.d/cloudstack.repo
COPY ./rocky.repo /etc/yum.repos.d/rocky.repo
RUN yum clean all && \
yum update -y && \
yum upgrade --refresh -y && \
yum install cloudstack-management chrony hostname nfs-utils -y && \
yum clean all
RUN wget https://download.cloudstack.org/tools/vhd-util -O /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util
COPY ./cloudstack-init.env /etc/default/cloudstack-init
COPY ./cloudstack-init.service /etc/systemd/system/cloudstack-init.service
COPY ./cloudstack-management.service /etc/systemd/system/cloudstack-management.service
RUN systemctl enable chronyd && \
systemctl enable cloudstack-init && \
systemctl enable cloudstack-management
HEALTHCHECK --interval=15s --timeout=5s --start-period=5s --retries=3 \
CMD curl -s --fail http://127.0.0.1:8080 || exit 1
EXPOSE 8080 8443 9090 8250