mirror of
https://github.com/bitnami/containers.git
synced 2026-04-01 06:48:13 +08:00
1.1.0-ol-7-r0 release
Fix TLS configuration
This commit is contained in:
27
bitnami/nats/1/ol-7/Dockerfile
Normal file
27
bitnami/nats/1/ol-7/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
FROM bitnami/oraclelinux-extras:7-r12 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-4-linux-x86_64-ol-7.tar.gz && \
|
||||||
|
echo "2dc80823c0ec13c411a8a53073ff6370c3840fbcf94cb8b97ed3dc6e996d6889 /tmp/bitnami/pkg/cache/nats-1.1.0-4-linux-x86_64-ol-7.tar.gz" | sha256sum -c - && \
|
||||||
|
tar -zxf /tmp/bitnami/pkg/cache/nats-1.1.0-4-linux-x86_64-ol-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||||
|
rm -rf /tmp/bitnami/pkg/cache/nats-1.1.0-4-linux-x86_64-ol-7.tar.gz
|
||||||
|
|
||||||
|
##################
|
||||||
|
|
||||||
|
FROM bitnami/oraclelinux-extras:7-r12
|
||||||
|
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-ol-7-r0" \
|
||||||
|
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
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
10
bitnami/nats/1/ol-7/docker-compose.yml
Normal file
10
bitnami/nats/1/ol-7/docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
nats:
|
||||||
|
image: bitnami/nats:1-ol-7
|
||||||
|
ports:
|
||||||
|
- '4222:4222'
|
||||||
|
- '6222:6222'
|
||||||
|
- '8222:8222'
|
||||||
|
|
||||||
38
bitnami/nats/1/ol-7/rootfs/entrypoint.sh
Executable file
38
bitnami/nats/1/ol-7/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"
|
||||||
@@ -31,6 +31,7 @@ $ docker-compose up
|
|||||||
# Supported tags and respective `Dockerfile` links
|
# Supported tags and respective `Dockerfile` links
|
||||||
|
|
||||||
* [`1`, `1.1.0-r27`, `latest` (1/Dockerfile)](https://github.com/bitnami/bitnami-docker-nats/blob/1.1.0-r27/1/Dockerfile)
|
* [`1`, `1.1.0-r27`, `latest` (1/Dockerfile)](https://github.com/bitnami/bitnami-docker-nats/blob/1.1.0-r27/1/Dockerfile)
|
||||||
|
* [`1-ol-7`, `1.1.0-ol-7-r0` (1/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-nats/blob/1.1.0-ol-7-r0/1/ol-7/Dockerfile)
|
||||||
|
|
||||||
Subscribe to project updates by watching the [bitnami/nats GitHub repo](https://github.com/bitnami/bitnami-docker-nats).
|
Subscribe to project updates by watching the [bitnami/nats GitHub repo](https://github.com/bitnami/bitnami-docker-nats).
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
RELEASE_SERIES_LIST: "1"
|
RELEASE_SERIES_LIST: "1"
|
||||||
LATEST_STABLE: "1"
|
LATEST_STABLE: "1"
|
||||||
DISTRIBUTIONS_LIST: "debian-8"
|
DISTRIBUTIONS_LIST: "debian-8,ol-7"
|
||||||
IMAGE_NAME: nats
|
IMAGE_NAME: nats
|
||||||
DOCKER_PROJECT: bitnami
|
DOCKER_PROJECT: bitnami
|
||||||
QUAY_PROJECT: bitnami
|
QUAY_PROJECT: bitnami
|
||||||
|
|||||||
Reference in New Issue
Block a user