fix: Install Ansible in docker-build image instead of runtime
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 44s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 18s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Failing after 2s
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Failing after 44s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 40s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Successful in 44s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Successful in 18s
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Failing after 2s
Security Vulnerability Scan / Composer Security Audit (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Failing after 44s
Security Vulnerability Scan / Check for Dependency Changes (push) Successful in 40s
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
This commit is contained in:
@@ -8,7 +8,9 @@ RUN apk add --no-cache \
|
||||
bash \
|
||||
curl \
|
||||
openssh-client \
|
||||
ca-certificates
|
||||
ca-certificates \
|
||||
python3 \
|
||||
py3-pip
|
||||
|
||||
# Installiere Docker Buildx (global für alle User)
|
||||
RUN mkdir -p /usr/local/lib/docker/cli-plugins && \
|
||||
@@ -25,11 +27,17 @@ RUN mkdir -p /usr/local/lib/docker/cli-plugins && \
|
||||
mkdir -p /root/.docker/cli-plugins && \
|
||||
cp /usr/local/lib/docker/cli-plugins/docker-buildx /root/.docker/cli-plugins/docker-buildx
|
||||
|
||||
# Installiere Ansible (global für alle User)
|
||||
# --break-system-packages ist nötig in Alpine, da pip PEP 668 befolgt
|
||||
RUN pip3 install --no-cache-dir --break-system-packages ansible-core docker
|
||||
|
||||
# Verifiziere Installation
|
||||
RUN docker --version && \
|
||||
git --version && \
|
||||
bash --version && \
|
||||
docker buildx version
|
||||
docker buildx version && \
|
||||
python3 --version && \
|
||||
ansible --version
|
||||
|
||||
# Arbeitsverzeichnis
|
||||
WORKDIR /workspace
|
||||
|
||||
Reference in New Issue
Block a user