Skip to content
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

Add defaults & generics repositories #20

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}-slim-bookworm as builder

ARG VERSION
ARG USER_ID=45000
ARG GROUP_ID=45000
ARG GROUP_ID_DOCKER=999
@@ -61,6 +62,17 @@ useradd -l -g dragon -G docker -u "$USER_ID" -m -d /ansible dragon
# prepare release repository
git clone https://github.com/osism/release /release

# prepare project repository
git clone https://github.com/osism/defaults /defaults
( cd /defaults || exit; git fetch --all --force; git checkout "$(yq -M -r .defaults_version "/release/$VERSION/base.yml")" )

git clone https://github.com/osism/cfg-generics /generics
( cd /generics || exit; git fetch --all --force; git checkout "$(yq -M -r .generics_version "/release/$VERSION/base.yml")" )

# add inventory files
mkdir -p /ansible/inventory.generics /ansible/inventory
cp /generics/inventory/* /ansible/inventory.generics

# run preparations
python3 /src/render-python-requirements.py

1 change: 1 addition & 0 deletions files/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Jinja2==3.1.4
PyYAML==6.0.1
yq==3.4.3