Commit 1656c31f authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'feat/optim-image' into 'main'

optim: reduce image size

See merge request to-be-continuous/tools/tbc-check!2
parents 1fd9e3e8 7a702b3a
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -12,6 +12,14 @@ include:
  # Python template
  - component: "gitlab.com/$TBC_NAMESPACE/python/gitlab-ci-python@6.6"
    inputs:
      image: "registry.hub.docker.com/library/python:3.11"
      image: "registry.hub.docker.com/library/python:3.12"
      package-enabled: true
      sbom-disabled: true

test-help-cmd:
  image:
    name: $DOCKER_SNAPSHOT_IMAGE
    entrypoint: [""]
  stage: package-test
  script:
    - tbc-check --help
+6 −4
Original line number Diff line number Diff line
FROM registry.hub.docker.com/library/python:3.11-slim-buster
FROM registry.hub.docker.com/library/python:3.12-alpine

ENV PORT=80
WORKDIR /code

COPY ./dist/*.whl /code/

RUN apt-get -y update && apt-get -y upgrade \
    &&  rm -rf /var/lib/apt/lists/* \
RUN apk upgrade --no-cache \
    && pip install --no-cache-dir /code/*.whl

ENTRYPOINT [ "tbc-check" ]
+208 −275

File changed.

Preview size limit exceeded, changes collapsed.

+5 −5
Original line number Diff line number Diff line
@@ -5,10 +5,10 @@ description = "to-be-continuous checker CLI tool"
authors = ["Pierre Smeyers <pierre.smeyers@gmail.com>"]
license = "LGPL"
readme = "README.md"
packages = [{include = "tbc"}]
packages = [{include = "tbc_check"}]

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
pyyaml = "^6.0.1"
pydantic = "^2.4.2"

@@ -17,7 +17,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
tbc-check = "tbc.checker:run"
tbc-check = "tbc_check.checker:run"

[tool.poetry.group.dev.dependencies]
# new development dependencies can be added with 'poetry add -D yyy'
@@ -39,13 +39,13 @@ testpaths = [
# this project uses "Black" as code formatter
# see: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#usage
line-length = 88
target-version = ['py310']
target-version = ['py312']
include = '\.pyi?$'

[tool.mypy]
# this project uses "mypy" as a static type checker
# see: https://mypy.readthedocs.io/en/stable/config_file.html
python_version = 3.10
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
+0 −0

File moved.

Loading