-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dbp 951 implement automated moodle chart deployment via ansible #99
Closed
marhode
wants to merge
16
commits into
master
from
DBP-951-Implement-automated-moodle-chart-deployment-via-ansible
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6ecea68
Created moodle-tools image
marhode aceb8b0
Changed package install order
marhode f5d70ea
Added moodle-toold GH action
marhode 2db891a
Added push on tag GH action
marhode d71dcf2
Changed values
marhode 851b7a1
Test with prefix on tag
marhode f674d53
Fixed reg ex syntax
marhode a3ef3b6
Test regex syntax
marhode 2f32da3
Test regex syntax
marhode 3d7172c
Test regex syntax
marhode 6f36586
Testing with correct image
marhode 73125f8
Add boto
marhode 5248319
test permission denied solution
marhode 391b93a
Added pip
marhode 06b3d92
Added ghcr as registry
marhode 0beb004
Cleanup
marhode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: moodle-tools Docker Image on Push to GHCR | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
paths: | ||
- 'moodle-tools/**' | ||
|
||
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: "moodle-tools" | ||
context: "./moodle-tools/" |
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,23 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Europe/Berlin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think this is not only in this Dockerfile, i think we once talked in a Reffinement about which system time we want to use, and did not we say that we want to use UTC? |
||
|
||
RUN set -x \ | ||
&& apt-get -y update \ | ||
&& apt-get -y install wget python3-pip \ | ||
&& wget https://dl.k8s.io/release/v1.28.7/bin/linux/amd64/kubectl \ | ||
&& chmod +x kubectl \ | ||
&& mv ./kubectl /usr/local/bin/kubectl \ | ||
&& wget -qO /usr/share/keyrings/postgres.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/postgres.asc] https://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ | ||
&& pip install boto \ | ||
&& apt-get -y update \ | ||
&& apt-get -y install \ | ||
duply \ | ||
ca-certificates \ | ||
gnupg \ | ||
apt-transport-https \ | ||
postgresql-client-14 \ | ||
mariadb-client \ | ||
&& apt-get clean -y |
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,12 @@ | ||
# cron-tools | ||
Minimal image with the tools that are necessary for our Moodle Kubernetes CronJobs. | ||
|
||
## Provided Tools | ||
* [kubectl](https://kubernetes.io/docs/reference/kubectl/) | ||
* [mariadb](https://www.mongodb.com/docs/mongodb-shell/) | ||
* [psql](https://www.postgresql.org/docs/current/app-psql.html) | ||
* [wget](https://www.gnu.org/software/wget/) | ||
* [duply] | ||
* [gnupg] | ||
* [ca-certificates] | ||
* [apt-transport-https] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't moodle-tools also get published to Dockerhub and Quay?