Skip to content

Commit

Permalink
feat(docker): add oraclelinux 9 image
Browse files Browse the repository at this point in the history
Build and push redhat oraclelinux docker image.
  • Loading branch information
diodonfrost committed May 5, 2023
1 parent 22f47f3 commit 053cd67
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ jobs:
- image: oraclelinux
version: "8"
platform: "linux/amd64,linux/arm64/v8"
- image: oraclelinux
version: "9"
platform: "linux/amd64,linux/arm64/v8"
- image: rockylinux
version: "8"
platform: "linux/amd64"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ jobs:
- image: oraclelinux
version: "8"
platform: "linux/amd64,linux/arm64/v8"
- image: oraclelinux
version: "9"
platform: "linux/amd64,linux/arm64/v8"
- image: rockylinux
version: "8"
platform: "linux/amd64"
Expand Down
38 changes: 38 additions & 0 deletions oraclelinux-ansible/Dockerfile.oraclelinux-9
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM oraclelinux:9
LABEL maintainer="diodonfrost <[email protected]>"

# Systemd install
RUN dnf -y update && dnf clean all; \
(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 /etc/systemd/system/*.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/*;

RUN dnf -y install \
git \
python3 \
python3-pip \
sudo \
openssh-server \
openssh-clients \
unzip \
tar \
rsync \
fuse-libs \
&& dnf clean all

RUN python3 -m pip install --upgrade pip && \
python3 -m pip install ansible
RUN ln -s /usr/local/bin/ansible* /usr/bin/

RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers

RUN mkdir /etc/ansible && echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts

VOLUME ["/sys/fs/cgroup"]

ENTRYPOINT ["/usr/sbin/init"]

0 comments on commit 053cd67

Please sign in to comment.