Skip to content

Commit

Permalink
Use centos image
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Gupta <gptrajat@amazon.com>
  • Loading branch information
Rajat Gupta committed Feb 11, 2025
1 parent e9c7531 commit 56c519d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qa/systemd-test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
services:
# self-contained systemd example: run 'docker-compose up' to see it
amazonlinux:
centos:
image: opensearch-systemd-test
container_name: opensearch-systemd-test-container
build:
dockerfile_inline: |
FROM amazonlinux:2023
FROM centos:8
RUN sed -i 's|mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/*.repo && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/*.repo
# install systemd
RUN dnf -y install systemd && dnf clean all
# in practice, you'd COPY in the RPM you want to test right here
Expand All @@ -26,7 +29,7 @@ services:
ForwardToConsole=yes
EOF
# start systemd as PID 1
CMD ["/sbin/init"]
CMD ["usr/sbin/init"]
# enable opensearch service
RUN systemctl enable opensearch
# shutdown systemd properly
Expand Down

0 comments on commit 56c519d

Please sign in to comment.