This commit is contained in:
parent
5c3f6513be
commit
8424c5becb
@ -1,2 +1,2 @@
|
||||
- BUGFIX
|
||||
- add missing condition for `MOLECULE_ANSIBLE_VAULT_PASSWORD`
|
||||
- INTERNAL
|
||||
- setup renovate-bot
|
||||
|
16
Dockerfile
16
Dockerfile
@ -6,14 +6,18 @@ LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
||||
org.label-schema.vendor="Robert Kaussow" \
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ARG ANSIBLE_VERSION=2.9.12
|
||||
ARG BUILD_VERSION=latest
|
||||
ARG ANSIBLE_VERSION
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# renovate: datasource=pypi depName=molecule
|
||||
ENV MOLECULE_VERSION="${BUILD_VERSION:-3.0.8}"
|
||||
# renovate: datasource=pypi depName=ansible
|
||||
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.9.12}"
|
||||
|
||||
ENV PY_COLORS=1 \
|
||||
ANSIBLE_FORCE_COLOR=true \
|
||||
USER=root \
|
||||
PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin \
|
||||
MOLECULE_VERSION="${BUILD_VERSION:-latest}"
|
||||
PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
|
||||
|
||||
COPY overlay/ /
|
||||
|
||||
@ -22,14 +26,14 @@ RUN apk add --update --no-cache --virtual .build-deps gcc make libffi-dev musl-d
|
||||
apk add --update --no-cache git openssh-client && \
|
||||
echo "Installing ansible 'v$ANSIBLE_VERSION' ..." && \
|
||||
pip install -qq --upgrade --no-cache-dir pip setuptools~=49.0 requests~=2.23 && \
|
||||
pip install -qq --no-cache-dir ansible~="$ANSIBLE_VERSION" && \
|
||||
pip install -qq --no-cache-dir ansible=="$ANSIBLE_VERSION" && \
|
||||
echo "Installing requirements ..." && \
|
||||
MOLECULE_VERSION="${MOLECULE_VERSION##v}" && \
|
||||
MOLECULE_MAJOR="${MOLECULE_VERSION%%.*}" && \
|
||||
pip install -qq --no-cache-dir -r /root/requirements.txt && \
|
||||
if [ -z "${MOLECULE_MAJOR//[0-9]}" ] && [ -n "$MOLECULE_MAJOR" ]; then \
|
||||
echo "Installing molecule version '$MOLECULE_VERSION' ..." && \
|
||||
pip install -qq --no-cache-dir molecule~="$MOLECULE_VERSION"; \
|
||||
pip install -qq --no-cache-dir molecule[docker,podman,lint]=="$MOLECULE_VERSION"; \
|
||||
else \
|
||||
echo "Installing latest molecule ..." && \
|
||||
pip install -qq --no-cache-dir molecule; \
|
||||
|
@ -1,6 +1,13 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
"extends": ["config:base"],
|
||||
"ignorePresets": [":prHourlyLimit2"],
|
||||
"regexManagers": [
|
||||
{
|
||||
"fileMatch": ["^Dockerfile$"],
|
||||
"matchStrings": [
|
||||
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\sENV .*?_VERSION=\"\\${.*:-(?<currentValue>.*)}\"\\s"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user