feature: setup pgtop in container
All checks were successful
Main / build (push) Successful in 3m10s

This commit is contained in:
RouxAntoine 2023-12-02 21:55:46 +01:00
parent d1f0d31053
commit 34dda4a918
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
2 changed files with 7 additions and 4 deletions

View File

@ -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"]

View File

@ -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