Compare commits
56 Commits
0.18.0
...
developmen
Author | SHA1 | Date | |
---|---|---|---|
726ba483da | |||
a51155b6d8 | |||
5823ea1849 | |||
9fdff31347 | |||
3f27002d19 | |||
5279aa6c4c | |||
36e58ca7be | |||
164013a5b8 | |||
d2426892da | |||
f2fb6a3540 | |||
9c04001d95 | |||
95bceb22df | |||
0e73168147 | |||
f0f697b9c8 | |||
d776962590 | |||
97e850fbd1 | |||
311c139727 | |||
f487bdb896 | |||
2e86c82c88 | |||
f06766484d | |||
7ca4715aa8 | |||
0a92925d09 | |||
7018418c32 | |||
e594b70828 | |||
ab316b65a4 | |||
39650ded8c | |||
5113fc2596 | |||
3e81328f67 | |||
67bf6c4b6a | |||
25bfcf6679 | |||
954079ccb6 | |||
1fd28222da | |||
db7c7b6a23 | |||
f6fe65a2e0 | |||
3771be407c | |||
b68670ad62 | |||
22189634e5 | |||
607647aa87 | |||
30a8823d73 | |||
17fc99d425 | |||
db04742727 | |||
c419196243 | |||
b470162956 | |||
e61871a415 | |||
6eb82ba6b3 | |||
54fa238fca | |||
645998ca89 | |||
4611f578b5 | |||
6ba8f73536 | |||
672eed53be | |||
2a11d3a97c | |||
d947b37b7e | |||
b9e8e2a32c | |||
7e13e2f31d | |||
def6cede45 | |||
7be77a2a9b |
2
.cz.yaml
2
.cz.yaml
@ -4,4 +4,4 @@ commitizen:
|
||||
name: cz_conventional_commits
|
||||
tag_format: $major.$minor.$patch$prerelease
|
||||
update_changelog_on_bump: true
|
||||
version: 0.18.0
|
||||
version: 0.21.0
|
||||
|
@ -17,6 +17,7 @@ include:
|
||||
- template/automagic.gitlab-ci.yaml
|
||||
#- template: Jobs/Container-Scanning.gitlab-ci.yml # see https://gitlab.com/gitlab-org/gitlab/-/issues/381665
|
||||
|
||||
|
||||
.MKDocs_Build:
|
||||
image: python:3.11-buster
|
||||
|
||||
@ -61,3 +62,57 @@ Build/Cache Python Packages:
|
||||
allow_failure: true
|
||||
when: manual
|
||||
- when: never
|
||||
|
||||
|
||||
Docker Container:
|
||||
extends: .build_docker_container
|
||||
resource_group: build
|
||||
needs: []
|
||||
script:
|
||||
- update-binfmts --display
|
||||
- |
|
||||
|
||||
if [ "0$DOCKER_IMAGE_BUILD_TARGET_PLATFORMS" != "0" ]; then
|
||||
|
||||
echo "[DEBUG] building multiarch/specified arch image";
|
||||
|
||||
docker buildx build --platform=$DOCKER_IMAGE_BUILD_TARGET_PLATFORMS . \
|
||||
--label org.opencontainers.image.created="$(date '+%Y-%m-%d %H:%M:%S%:z')" \
|
||||
--label org.opencontainers.image.documentation="$CI_PROJECT_URL" \
|
||||
--label org.opencontainers.image.source="$CI_PROJECT_URL" \
|
||||
--label org.opencontainers.image.revision="$CI_COMMIT_SHA" \
|
||||
--push \
|
||||
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --build-arg CI_PROJECT_ID=$CI_PROJECT_ID --build-arg CI_API_V4_URL=$CI_API_V4_URL \
|
||||
--build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \
|
||||
--file $DOCKER_DOCKERFILE \
|
||||
--tag $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
docker buildx imagetools inspect $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
# during docker multi platform build there are >=3 additional unknown images added to gitlab container registry. cleanup
|
||||
|
||||
DOCKER_MULTI_ARCH_IMAGES=$(docker buildx imagetools inspect "$DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG" --format "{{ range .Manifest.Manifests }}{{ if ne (print .Platform) \"&{unknown unknown [] }\" }}$DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG@{{ println .Digest }}{{end}} {{end}}");
|
||||
|
||||
docker buildx imagetools create $DOCKER_MULTI_ARCH_IMAGES --tag $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
docker buildx imagetools inspect $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
else
|
||||
|
||||
echo "[DEBUG] building image";
|
||||
|
||||
docker build . \
|
||||
--label org.opencontainers.image.created="$(date '+%Y-%m-%d %H:%M:%S%:z')" \
|
||||
--label org.opencontainers.image.documentation="$CI_PROJECT_URL" \
|
||||
--label org.opencontainers.image.source="$CI_PROJECT_URL" \
|
||||
--label org.opencontainers.image.url="$CI_PROJECT_URL/-/releases/$(cz -n cz_nfc version --project)" \
|
||||
--label org.opencontainers.image.version="$(cz -n cz_nfc version --project)" \
|
||||
--label org.opencontainers.image.revision="$CI_COMMIT_SHA" \
|
||||
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN --build-arg CI_PROJECT_ID=$CI_PROJECT_ID --build-arg CI_API_V4_URL=$CI_API_V4_URL \
|
||||
--build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \
|
||||
--file $DOCKER_DOCKERFILE \
|
||||
--tag $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
docker push $DOCKER_IMAGE_BUILD_REGISTRY/$DOCKER_IMAGE_BUILD_NAME:$DOCKER_IMAGE_BUILD_TAG;
|
||||
|
||||
fi
|
30
CHANGELOG.md
30
CHANGELOG.md
@ -1,3 +1,33 @@
|
||||
## 0.21.0 (2024-07-28)
|
||||
|
||||
### Features
|
||||
|
||||
- [1fd28222](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/1fd28222daff27ebf0c038bd56e7115840396734) - update nofusscomputing.kubernetes 1.12.0 -> 1.13.0 [ [!262](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/262) [!77](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/77) [!78](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/78) [!1](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/1) [!58](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/58) [!4](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/4) [!28](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/28) ]
|
||||
- **collection**: [f6fe65a2](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/f6fe65a2e028fff64f90e4820f5400461dcd0ead) - bump nofusscomputing.kubernetes1.11.0 -> 1.12.0 [ [!263](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/263) ]
|
||||
- **ansible_playbooks**: [b68670ad](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/b68670ad620c8e9899f20b98e73dd3867b61c208) - updated submodule ansible_playbooks [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- **ansible-roles**: [22189634](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/22189634e57d9ef9ef33dfa23ac8bed8e0e6d9a8) - updated submodule ansible-roles [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- **ansible_playbooks**: [30a8823d](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/30a8823d73d46b885cd3430500a84d45cfa50087) - updated submodule ansible_playbooks [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- **ansible-roles**: [17fc99d4](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/17fc99d4258d120270c48e61e1ef83c2e038f44a) - updated submodule ansible-roles [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- **ansible-roles**: [db047427](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/db04742727a7e647b220d31220c4ffd3d943a8cb) - updated submodule ansible-roles [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- **ansible-roles**: [c4191962](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/c41919624368d6cdc00f3fbae27ff66d5d73735f) - updated submodule ansible-roles [ [!261](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/261) ]
|
||||
- [645998ca](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/645998ca891f688e06d0da47840caf2f534e67e4) - update all git submodules to current HEADs [ [!259](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/259) [!84](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/84) [!105](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/105) ]
|
||||
- [6ba8f735](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/6ba8f735367d1f550984b62be18352d130db1212) - update all git submodules to current HEADs [ [!258](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/258) [!84](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/84) [!104](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/104) ]
|
||||
|
||||
## 0.20.0 (2024-06-27)
|
||||
|
||||
### Features
|
||||
|
||||
- **collection**: [2a11d3a9](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/2a11d3a97ca82a1e84be2cc1fe32c38f5fa7a5de) - bump nofusscomputing.kubernetes1.10.3 -> 1.11.0 [ [!257](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/257) [!71](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/71) [!27](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/27) ]
|
||||
|
||||
## 0.19.0 (2024-06-27)
|
||||
|
||||
### Features
|
||||
|
||||
- **collection**: [b9e8e2a3](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/b9e8e2a32cac22bd02ae8250c20f7ff5051f897a) - bump nofusscomputing.kubernetes1.10.2 -> 1.10.3 [ [!256](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/256) [!69](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/69) [!70](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/70) ]
|
||||
- **collection**: [7e13e2f3](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/7e13e2f31d92a21248bf4f806ec273c14b38c717) - bump nofusscomputing.kubernetes1.10.1 -> 1.10.2 [ [!256](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/256) [!67](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/67) ]
|
||||
- **collection**: [def6cede](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/def6cede457363f4712ada572d5b1f7fcee97c01) - bump nofusscomputing.kubernetes 1.10.0 -> 1.10.1 [ [!256](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/256) [!67](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/67) ]
|
||||
- **collection**: [7be77a2a](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/commit/7be77a2a9b29abf62565e6819ea5cf6f8b567c0f) - bump nofusscomputing.kubernetes 1.9.0 -> 1.10.0 [ [!256](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/256) [!66](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/66) [!65](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/merge_requests/65) ]
|
||||
|
||||
## 0.18.0 (2024-05-03)
|
||||
|
||||
### Features
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||

|
||||
|
||||
[](https://hub.docker.com/r/nofusscomputing/ansible-ee) [](https://artifacthub.io/packages/container/nfc-ansible-ee/ansible-ee)
|
||||
|
||||
<br>
|
||||
|
||||
  [](https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/issues)
|
||||
|
18
dockerfile
18
dockerfile
@ -2,6 +2,7 @@ ARG release_name=bookworm
|
||||
|
||||
ARG kubernetes_version=1.29
|
||||
|
||||
ARG CI_COMMIT_SHA=""
|
||||
|
||||
FROM --platform=$TARGETPLATFORM quay.io/ansible/receptor:v1.4.4 as receptor
|
||||
|
||||
@ -33,7 +34,9 @@ RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v${kubernetes_version}/deb/Rele
|
||||
|
||||
FROM --platform=$TARGETPLATFORM python:3.11-slim-${release_name}
|
||||
|
||||
ARG CI_COMMIT_SHA
|
||||
|
||||
ENV REPO_BUILD_SHA=${CI_COMMIT_SHA}
|
||||
# Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
@ -49,16 +52,11 @@ COPY includes /
|
||||
|
||||
# Ref: https://github.com/opencontainers/image-spec/blob/d86384efdb8c30770a92415c100f57a9bffbb64e/annotations.md
|
||||
LABEL \
|
||||
# org.opencontainers.image.authors="{contributor url}" \
|
||||
org.opencontainers.image.vendor="No Fuss Computing" \
|
||||
# org.opencontainers.image.url="{dockerhub url}" \
|
||||
# org.opencontainers.image.documentation="{docs url}" \
|
||||
# org.opencontainers.image.source="{repo url}" \
|
||||
# org.opencontainers.image.revision="{git commit sha at time of build}" \
|
||||
org.opencontainers.image.title="No Fuss Computings Ansible Execution Environment" \
|
||||
org.opencontainers.image.description="An ansible execution environment for awx/tower and CI/CD pipelines" \
|
||||
org.opencontainers.image.vendor="No Fuss Computing"
|
||||
# org.opencontainers.image.version="{git tag}"
|
||||
org.opencontainers.image.title="Ansible Execution Environment" \
|
||||
org.opencontainers.image.description="An ansible execution environment for aap/awx and CI/CD pipelines" \
|
||||
org.opencontainers.image.vendor="No Fuss Computing" \
|
||||
io.artifacthub.package.license="MIT"
|
||||
|
||||
|
||||
RUN apt update \
|
||||
@ -148,5 +146,5 @@ RUN ansible-galaxy collection install \
|
||||
theforeman.foreman==4.0.0; \
|
||||
ansible-galaxy collection install --pre \
|
||||
nofusscomputing.glpi==0.1.0-a1 \
|
||||
nofusscomputing.kubernetes==1.9.0 \
|
||||
nofusscomputing.kubernetes==1.13.2 \
|
||||
nofusscomputing.netbox==0.4.0
|
||||
|
Submodule gitlab-ci updated: a24f352ca3...224ef83157
Submodule includes/etc/ansible/playbooks updated: 44b0ca4d86...8b940d30ff
Submodule includes/etc/ansible/roles updated: dc12408a01...73c8bc6f96
Submodule website-template updated: f5a82d3604...8735f623dc
Reference in New Issue
Block a user