feature: setup pgtop in container
All checks were successful
Main / build (push) Successful in 3m10s
All checks were successful
Main / build (push) Successful in 3m10s
This commit is contained in:
parent
d1f0d31053
commit
34dda4a918
@ -3,6 +3,9 @@ FROM postgres:16.1-bookworm
|
|||||||
COPY initScript/*.sh /docker-entrypoint-initdb.d/
|
COPY initScript/*.sh /docker-entrypoint-initdb.d/
|
||||||
COPY backup-database.sh /backup-database.sh
|
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 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
|
ENV LANG fr_FR.utf8
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
8
Makefile
8
Makefile
@ -1,6 +1,6 @@
|
|||||||
.PHONY: imagePostgres
|
.PHONY: imagePostgres
|
||||||
|
|
||||||
REGISTRY_IP=container.localdomain
|
REGISTRY_NAME=container.localdomain
|
||||||
# linux/arm/v7
|
# linux/arm/v7
|
||||||
# linux/arm/v6
|
# linux/arm/v6
|
||||||
# linux/arm64
|
# linux/arm64
|
||||||
@ -12,10 +12,10 @@ VERBOSITY=debug
|
|||||||
## build
|
## build
|
||||||
|
|
||||||
imagePostgres:
|
imagePostgres:
|
||||||
docker manifest rm $(REGISTRY_IP):5000/postgres:latest || true
|
docker manifest rm $(REGISTRY_NAME):5000/postgres:latest || true
|
||||||
docker-multi-arch-builder build -n postgres --platforms $(PLATFORM) -v $(VERBOSITY)
|
docker-multi-arch-builder build -n postgres --platforms $(PLATFORM) -v $(VERBOSITY) -r $(REGISTRY_NAME)
|
||||||
|
|
||||||
## management
|
## management
|
||||||
|
|
||||||
status:
|
status:
|
||||||
@curl -s $(REGISTRY_IP):5000/v2/_catalog | jq
|
@curl -s $(REGISTRY_NAME):5000/v2/_catalog | jq
|
||||||
|
Loading…
Reference in New Issue
Block a user