diff --git a/Dockerfile b/Dockerfile index e07da0f..4185c0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM postgres:16.1-bookworm COPY initScript/*.sh /docker-entrypoint-initdb.d/ COPY backup-database.sh /backup-database.sh RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8 + +RUN apt update && apt install pgtop + ENV LANG fr_FR.utf8 ENTRYPOINT ["docker-entrypoint.sh"] diff --git a/Makefile b/Makefile index f0cf23e..8132d88 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: imagePostgres -REGISTRY_IP=container.localdomain +REGISTRY_NAME=container.localdomain # linux/arm/v7 # linux/arm/v6 # linux/arm64 @@ -12,10 +12,10 @@ VERBOSITY=debug ## build imagePostgres: - docker manifest rm $(REGISTRY_IP):5000/postgres:latest || true - docker-multi-arch-builder build -n postgres --platforms $(PLATFORM) -v $(VERBOSITY) + docker manifest rm $(REGISTRY_NAME):5000/postgres:latest || true + docker-multi-arch-builder build -n postgres --platforms $(PLATFORM) -v $(VERBOSITY) -r $(REGISTRY_NAME) ## management status: - @curl -s $(REGISTRY_IP):5000/v2/_catalog | jq + @curl -s $(REGISTRY_NAME):5000/v2/_catalog | jq