Skip to content

Commit

Permalink
TMP: get docker psql version
Browse files Browse the repository at this point in the history
  • Loading branch information
leavauchier committed Apr 9, 2024
1 parent c3ff399 commit 06a8824
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ jobs:
sed -i '/pwd:/c\pwd: ${{ secrets.PASSWORD_BD_UNI }}' configs/bd_uni_connection_params/credentials.yaml
- name: build docker image
run: docker build --build-arg http_proxy=http://proxy.ign.fr:3128/ --build-arg https_proxy=http://proxy.ign.fr:3128/ -t lidar_prod .
run: docker build --build-arg http_proxy=http://proxy.ign.fr:3128/ --build-arg https_proxy=http://proxy.ign.fr:3128/ -t lidar_prod . --no-cache

- name: get postgresql version
run: docker run lidar_prod psql --version

- name: get pgsql2shp version
run: docker run lidar_prod apt list -a postgis

- name: Check code neatness (linter)
run: docker run lidar_prod flake8
Expand All @@ -39,7 +45,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 06a8824

Please sign in to comment.