Loading docker/kaniko-template.yml +2 −0 Original line number Diff line number Diff line Loading @@ -41,9 +41,11 @@ fi - printf "Will use the following destinations:${DESTINATIONS}\n" | sed 's/--destination=/\n/g' - /kaniko/executor --cache=${USE_CACHE} --context=${CONTEXT} --dockerfile=${DOCKERFILE} ${DESTINATIONS} ${LABELS} ${EXTRA_ARGS} - cat ${CONTEXT}/${DOCKERFILE} - | if [ "${PYTHON_TEST}" = "true" ]; then printf "\nRUN if ! python3 -m pip >/dev/null; then wget -q https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py; fi" >> ${CONTEXT}/${DOCKERFILE} printf "\nRUN python3 -m pip install pytest pytest-cov pylint pylint_junit safety mutmut coverage" >> ${CONTEXT}/${DOCKERFILE} /kaniko/executor --cache=${USE_CACHE} --context=${CONTEXT} --dockerfile=${DOCKERFILE} --destination=${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-testing ${EXTRA_ARGS} fi - cat ${CONTEXT}/${DOCKERFILE} templates_tests/python/pyproject.toml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ authors = [] python = "^3.8" redis = "^3.5.3" pip-review = "^1.1.0" docker = "^4.4.4" [tool.poetry.dev-dependencies] black = "^20.8b1" Loading Loading
docker/kaniko-template.yml +2 −0 Original line number Diff line number Diff line Loading @@ -41,9 +41,11 @@ fi - printf "Will use the following destinations:${DESTINATIONS}\n" | sed 's/--destination=/\n/g' - /kaniko/executor --cache=${USE_CACHE} --context=${CONTEXT} --dockerfile=${DOCKERFILE} ${DESTINATIONS} ${LABELS} ${EXTRA_ARGS} - cat ${CONTEXT}/${DOCKERFILE} - | if [ "${PYTHON_TEST}" = "true" ]; then printf "\nRUN if ! python3 -m pip >/dev/null; then wget -q https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py; fi" >> ${CONTEXT}/${DOCKERFILE} printf "\nRUN python3 -m pip install pytest pytest-cov pylint pylint_junit safety mutmut coverage" >> ${CONTEXT}/${DOCKERFILE} /kaniko/executor --cache=${USE_CACHE} --context=${CONTEXT} --dockerfile=${DOCKERFILE} --destination=${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-testing ${EXTRA_ARGS} fi - cat ${CONTEXT}/${DOCKERFILE}
templates_tests/python/pyproject.toml +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ authors = [] python = "^3.8" redis = "^3.5.3" pip-review = "^1.1.0" docker = "^4.4.4" [tool.poetry.dev-dependencies] black = "^20.8b1" Loading