Commit 5096e37d authored by nimrod's avatar nimrod
Browse files

Add pre-commit image.

parent 25f6d30e
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -106,3 +106,20 @@ push-k8s:
  needs:
    - job: build-k8s
      artifacts: true

# pre-commit image:

build-pre-commit:
  extends: .container-build
  variables:
    CONTEXT: images/pre-commit

push-pre-commit:
  extends: .container-push
  variables:
    CONTEXT: images/pre-commit
    IMAGE: ci-images
    TAG: pre-commit
  needs:
    - job: build-pre-commit
      artifacts: true
+1 −0
Original line number Diff line number Diff line
*
+19 −0
Original line number Diff line number Diff line
FROM buildpack-deps:bullseye
# hadolint ignore=DL3008,DL3013
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        docker.io \
        python3-dev \
        python3-pip \
        python3-setuptools \
        python3-venv \
    && \
    python3 -m pip install --no-cache-dir --upgrade pip && \
    python3 -m pip install --no-cache-dir \
        docker-compose \
        pipenv \
        poetry \
        pre_commit \
        tox \
    && \
    rm -rf /root/.cache /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*