Skip to content

Commit

Permalink
Docker: fix micromamba base image tag
Browse files Browse the repository at this point in the history
Depending on the computer, using micromamba:latest was not
fetching the current "latest" tag, which led to having old
versions of postgresql and postgis, which raised errors in
database queries
  • Loading branch information
leavauchier committed Apr 9, 2024
1 parent c3ff399 commit 3c73f54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
docker run --network host
lidar_prod
python -m
pytest -rA -v -m "not slow" --ignore=actions-runner
pytest -rA -vv -m "not slow" --ignore=actions-runner
- name: Run slow tests last (evaluation on large file)
run: >
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM mambaorg/micromamba:latest
FROM mambaorg/micromamba:bookworm-slim

# all the apt-get installs
USER root

RUN apt-get update && apt-get upgrade -y && apt-get install -y \
software-properties-common \
postgis
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y postgis>=3.3.0

# Only copy necessary files to set up the environment, in order
# to use docker caching if requirements files were not updated.
Expand Down

0 comments on commit 3c73f54

Please sign in to comment.