mirror of
https://github.com/bitnami/containers.git
synced 2026-03-29 08:17:42 +08:00
1.1.0-r5 release
"Adding configuration/initialisation Nami logic to NM"
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
FROM bitnami/minideb:jessie as buildenv
|
||||
|
||||
RUN install_packages ca-certificates wget
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/nats-1.1.0-0-linux-x64-debian-8.tar.gz && \
|
||||
echo "bb1803e20a9f11482ccb49e14f8e2d1884505d8a67f5ff0901c32ae5a59f0cba /tmp/bitnami/pkg/cache/nats-1.1.0-0-linux-x64-debian-8.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/nats-1.1.0-0-linux-x64-debian-8.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/nats-1.1.0-0-linux-x64-debian-8.tar.gz
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/nats-1.1.0-1-linux-x64-debian-8.tar.gz && \
|
||||
echo "364ad96d072a20c7301c1e477dd5fbf03216efa05a2be61fd656fde93e386b4a /tmp/bitnami/pkg/cache/nats-1.1.0-1-linux-x64-debian-8.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/nats-1.1.0-1-linux-x64-debian-8.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/nats-1.1.0-1-linux-x64-debian-8.tar.gz
|
||||
|
||||
##################
|
||||
|
||||
@@ -13,13 +13,15 @@ LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
COPY --from=buildenv /opt/bitnami/nats /opt/bitnami/nats
|
||||
ENV BITNAMI_APP_NAME="nats" \
|
||||
BITNAMI_IMAGE_VERSION="1.1.0-r4" \
|
||||
BITNAMI_IMAGE_VERSION="1.1.0-r5" \
|
||||
PATH="/opt/bitnami/nats/bin:$PATH"
|
||||
|
||||
RUN install_packages curl
|
||||
RUN chown -R 1001:1001 /opt/bitnami/nats
|
||||
|
||||
EXPOSE 4222 6222 8222
|
||||
|
||||
COPY rootfs /
|
||||
WORKDIR /opt/bitnami/nats
|
||||
USER 1001
|
||||
CMD ["gnatsd","-c","/opt/bitnami/nats/conf/gnatsd.conf"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
38
bitnami/nats/1/rootfs/entrypoint.sh
Executable file
38
bitnami/nats/1/rootfs/entrypoint.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONF_FILE='/opt/bitnami/nats/gnatsd.conf';
|
||||
|
||||
if [ ! -e ${CONF_FILE} ]; then
|
||||
echo "==> Writing config file..."
|
||||
cat > ${CONF_FILE} << EOF
|
||||
# Client port of 4222 on all interfaces
|
||||
port: 4222
|
||||
|
||||
# HTTP monitoring port
|
||||
monitor_port: 8222
|
||||
|
||||
# This is for clustering multiple servers together.
|
||||
cluster {
|
||||
|
||||
# Route connections to be received on any interface on port 6222
|
||||
port: 6222
|
||||
|
||||
# Routes are protected, so need to use them with --routes flag
|
||||
# e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
|
||||
authorization {
|
||||
user: ruser
|
||||
password: T0pS3cr3t
|
||||
timeout: 2
|
||||
}
|
||||
|
||||
# Routes are actively solicited and connected to from this server.
|
||||
# This Docker image has none by default, but you can pass a
|
||||
# flag to the gnatsd docker image to create one to an existing server.
|
||||
routes = []
|
||||
}
|
||||
EOF
|
||||
else
|
||||
echo "==> Detected config file. It would be used instead of creating one."
|
||||
fi
|
||||
|
||||
exec gnatsd -c "$CONF_FILE"
|
||||
@@ -30,7 +30,7 @@ $ docker-compose up
|
||||
|
||||
# Supported tags and respective `Dockerfile` links
|
||||
|
||||
* [`1`, `1.1.0-r4`, `latest` (1/Dockerfile)](https://github.com/bitnami/bitnami-docker-nats/blob/1.1.0-r4/1/Dockerfile)
|
||||
* [`1`, `1.1.0-r5`, `latest` (1/Dockerfile)](https://github.com/bitnami/bitnami-docker-nats/blob/1.1.0-r5/1/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/nats GitHub repo](https://github.com/bitnami/bitnami-docker-nats).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user