-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into OPS-7491-Adapt-cron-tools-container-for-ba…
…ckups
- Loading branch information
Showing
10 changed files
with
82 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: docops Docker Image on Push to GHCR | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
paths: | ||
- 'docops/**' | ||
|
||
jobs: | ||
build_image_on_push: | ||
permissions: | ||
packages: write | ||
security-events: write | ||
actions: read | ||
contents: read | ||
uses: ./.github/workflows/imagetoghcr-on-push.yaml | ||
with: | ||
image_name: "docops" | ||
context: "./docops/" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM quay.io/ansible/awx-ee:24.1.0 | ||
|
||
USER root | ||
|
||
RUN \ | ||
# Add non-privileged user | ||
adduser docops --uid 1000 --gid 0 && \ | ||
# Install drawio | ||
dnf install -y wget && \ | ||
mkdir /home/docops/drawio && \ | ||
cd /home/docops/drawio && \ | ||
curl -s https://api.github.com/repos/jgraph/drawio-desktop/releases/latest | grep browser_download_url | grep '.*drawio-x86_64-.*\.rpm' | cut -d '"' -f 4 | wget -i - && \ | ||
dnf install -y ./drawio-x86_64-*.rpm && \ | ||
dnf remove -y wget && \ | ||
rm -rf /home/docops/drawio && \ | ||
# Install X Virtual Framebuffer as an X server because it's needed to execute drawio in a headless mode | ||
# Later execute drawio with xvfb as the following. | ||
# Remember to append the options '--disable-gpu --headless --no-sandbox' as the last options of the command. | ||
# Examples: | ||
# xvfb-run -a drawio --version --disable-gpu --headless --no-sandbox | ||
# xvfb-run -a drawio --export --format png --output ./test.png ./test.drawio --disable-gpu --headless --no-sandbox | ||
dnf install -y xorg-x11-server-Xvfb; | ||
|
||
USER docops | ||
|
||
RUN \ | ||
# Install doctoolchain | ||
cd /home/docops && \ | ||
curl -Lo dtcw https://doctoolchain.org/dtcw && \ | ||
chmod +x ./dtcw && \ | ||
./dtcw install doctoolchain; \ | ||
./dtcw install java; \ | ||
# Install community.general collection, it contains the 'archive' module used in the doctoolchain playbook | ||
ansible-galaxy collection install community.general; | ||
|
||
CMD ["/bin/bash"] |
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