forked from alt/image-forge
add images postgresql rabbitmq
This commit is contained in:
parent
8e68d73e10
commit
63fc9e2440
20
org/alt/postgresql/Dockerfile.template
Normal file
20
org/alt/postgresql/Dockerfile.template
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
FROM {{ registry }}{{ organization }}/base:{{ branch }}
|
||||||
|
|
||||||
|
MAINTAINER alt-cloud
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="postgresql16"
|
||||||
|
LABEL org.opencontainers.image.description="PostgreSQL rograms and libraries"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/postgres/postgres"
|
||||||
|
LABEL org.opencontainers.image.licenses="PostgreSQL"
|
||||||
|
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||||
|
|
||||||
|
{{ install_packages("postgresql16","postgresql16-server") }}
|
||||||
|
|
||||||
|
RUN usermod -a -G postgres postgres
|
||||||
|
RUN chown -R postgres:postgres /var/lib/pgsql
|
||||||
|
|
||||||
|
USER postgres
|
||||||
|
WORKDIR /var/lib/pgsql
|
||||||
|
EXPOSE 5432
|
||||||
|
VOLUME [ "/var/lib/pgsql/data" ]
|
||||||
|
|
16
org/alt/postgresql/README.md
Normal file
16
org/alt/postgresql/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
dockerfiles-alt-postgresql
|
||||||
|
==========================
|
||||||
|
|
||||||
|
ALT dockerfile for postgresql.
|
||||||
|
|
||||||
|
Copy Dockerfile somewhere and build the image:
|
||||||
|
`$ docker build --rm -t <username>/postgresql .`
|
||||||
|
|
||||||
|
And launch the rabbitmq-server container:
|
||||||
|
`docker run -d -p 5432:5432 --name="postgresql" -v pgsql-data:/var/lib/pgsql/data IMAGENAME`
|
||||||
|
|
||||||
|
First steps to start service and create db:
|
||||||
|
`/usr/bin/initdb /var/lib/pgsql/data`
|
||||||
|
`/usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start`
|
||||||
|
`/usr/bin/createdb mydb`
|
||||||
|
`psql mydb`
|
1
org/alt/postgresql/test
Normal file
1
org/alt/postgresql/test
Normal file
@ -0,0 +1 @@
|
|||||||
|
pg_ctl --version
|
19
org/alt/rabbitmq/Dockerfile.template
Normal file
19
org/alt/rabbitmq/Dockerfile.template
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM {{ registry }}{{ organization }}/base:{{ branch }}
|
||||||
|
|
||||||
|
MAINTAINER alt-cloud
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="rabbitmq"
|
||||||
|
LABEL org.opencontainers.image.description="The RabbitMQ server"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/rabbitmq/rabbitmq-server"
|
||||||
|
LABEL org.opencontainers.image.licenses="MPL-1.1"
|
||||||
|
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||||
|
|
||||||
|
{{ install_packages("rabbitmq-server") }}
|
||||||
|
|
||||||
|
USER rabbitmq
|
||||||
|
WORKDIR /var/lib/rabbitmq
|
||||||
|
EXPOSE 5672 25672
|
||||||
|
VOLUME [ "/var/lib/rabbitmq", "/etc/rabbitmq" ]
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/usr/sbin/rabbitmq-server" ]
|
||||||
|
CMD ["start", "rabbitmq"]
|
18
org/alt/rabbitmq/README.md
Normal file
18
org/alt/rabbitmq/README.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
dockerfiles-alt-rabbitmq
|
||||||
|
========================
|
||||||
|
|
||||||
|
ALT dockerfile for rabbitmq.
|
||||||
|
|
||||||
|
Copy Dockerfile somewhere and build the image:
|
||||||
|
`$ docker build --rm -t <username>/rabbitmq .`
|
||||||
|
|
||||||
|
And launch the rabbitmq-server container:
|
||||||
|
`docker run -d -p 5672:5672 --name="rabbitmq" -v rabbit-data:/var/lib/rabbitmq -v rabbit-conf:/etc/rabbitmq IMAGENAME`
|
||||||
|
|
||||||
|
With mounting /etc/rabbitmq/rabbitmq-env.conf could be change settings of rabbitmq-server.
|
||||||
|
|
||||||
|
It could be test via:
|
||||||
|
`curl localhost:5672`
|
||||||
|
|
||||||
|
For starting app:
|
||||||
|
`rabbitmqctl start_app`
|
1
org/alt/rabbitmq/test
Normal file
1
org/alt/rabbitmq/test
Normal file
@ -0,0 +1 @@
|
|||||||
|
rabbitmqctl version
|
Loading…
Reference in New Issue
Block a user