Skip to content

Commit

Permalink
Merge pull request #6 from soubinan/dev
Browse files Browse the repository at this point in the history
Update systemd files and add chrony package
  • Loading branch information
soubinan authored Jan 15, 2024
2 parents 831aacc + 3f2b368 commit b66af7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
- name: Sign the published container images
if: github.event_name == 'release'
run: |
cosign sign --yes --key env://COSIGN_PRIVATE_KEY "${TAGS}@${DIGEST}"
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
Expand Down
5 changes: 3 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ COPY ./rocky.repo /etc/yum.repos.d/rocky.repo
RUN yum clean all && \
yum update -y && \
yum upgrade --refresh -y && \
yum install cloudstack-management hostname nfs-utils -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 cloudstack-init && \
RUN systemctl enable chronyd && \
systemctl enable cloudstack-init && \
systemctl enable cloudstack-management

HEALTHCHECK --interval=15s --timeout=5s --start-period=5s --retries=3 \
Expand Down
2 changes: 2 additions & 0 deletions cloudstack-init.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ EnvironmentFile=/etc/default/cloudstack-init
ExecStart=/usr/bin/cloudstack-setup-databases ${DB_CS_USER}:${DB_CS_PASSWD}@${DB_HOST} --schema-only -e ${ENCRYPTION_TYPE} -m ${MGT_SERVER_KEY} -k ${DB_KEY}
ExecStart=/usr/bin/cloudstack-setup-management
ExecStart=/usr/bin/touch /var/cloudstack/.cloudstack-provisionned__
StandardOutput=journal+console
StandardError=journal+console

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions cloudstack-management.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ EnvironmentFile=/etc/default/cloudstack-management
WorkingDirectory=/var/log/cloudstack/management
PIDFile=/var/run/cloudstack-management.pid
ExecStart=/usr/bin/java $JAVA_DEBUG $JAVA_OPTS -cp $CLASSPATH $BOOTSTRAP_CLASS
StandardOutput=journal+console
StandardError=journal+console

[Install]
WantedBy=multi-user.target

0 comments on commit b66af7f

Please sign in to comment.