-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rocky Linux installation support (#4398)
* Update install.sh - Rocky Compatible Rocky Linux is the new Centos, I had tested these changes and it works as expected since it uses yum as a package manager. In addition, the metadata had no issues at all * add support for Rocky Linux 8 and 9 * fix for auto-instrumentation tests * correct GPG key location --------- Co-authored-by: bran1501 <[email protected]>
- Loading branch information
Showing
10 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
internal/buildscripts/packaging/tests/images/rpm/Dockerfile.rockylinux-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# A rockylinux8 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:8 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
22 changes: 22 additions & 0 deletions
22
internal/buildscripts/packaging/tests/images/rpm/Dockerfile.rockylinux-9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# A rockylinux9 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:9 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
22 changes: 22 additions & 0 deletions
22
internal/buildscripts/packaging/tests/images/tar/Dockerfile.rockylinux-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# A rockylinux8 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:8 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
22 changes: 22 additions & 0 deletions
22
internal/buildscripts/packaging/tests/images/tar/Dockerfile.rockylinux-9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# A rockylinux9 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:9 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
internal/buildscripts/packaging/tests/instrumentation/images/rpm/Dockerfile.rockylinux-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# A rockylinux8 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:8 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
COPY --from=tomcat /usr/local/tomcat /usr/local/tomcat | ||
COPY --from=tomcat /opt/java /opt/java | ||
COPY instrumentation/setup-tomcat.sh /opt/ | ||
RUN bash /opt/setup-tomcat.sh | ||
|
||
COPY instrumentation/setup-express.sh /opt | ||
RUN bash /opt/setup-express.sh | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |
33 changes: 33 additions & 0 deletions
33
internal/buildscripts/packaging/tests/instrumentation/images/rpm/Dockerfile.rockylinux-9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# A rockylinux9 image with systemd enabled. Must be run with: | ||
# `-d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro` flags | ||
FROM quay.io/rockylinux/rockylinux:9 | ||
|
||
ENV container docker | ||
|
||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
RUN echo 'fastestmirror=1' >> /etc/yum.conf | ||
RUN dnf install -y procps initscripts systemd wget | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \ | ||
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.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/*; | ||
|
||
COPY --from=tomcat /usr/local/tomcat /usr/local/tomcat | ||
COPY --from=tomcat /opt/java /opt/java | ||
COPY instrumentation/setup-tomcat.sh /opt/ | ||
RUN bash /opt/setup-tomcat.sh | ||
|
||
COPY instrumentation/setup-express.sh /opt | ||
RUN bash /opt/setup-express.sh | ||
|
||
VOLUME [ "/sys/fs/cgroup" ] | ||
|
||
CMD ["/usr/sbin/init"] |