1.1.0-ol-7-r0 release

Fix TLS configuration
This commit is contained in:
Bitnami Bot
2018-06-20 16:07:56 +00:00
parent c269df7ed0
commit 87549f00ac
5 changed files with 77 additions and 1 deletions

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

View File

@@ -0,0 +1,10 @@
version: '2'
services:
nats:
image: bitnami/nats:1-ol-7
ports:
- '4222:4222'
- '6222:6222'
- '8222:8222'

View 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"

View File

@@ -31,6 +31,7 @@ $ docker-compose up
# 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-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).

View File

@@ -7,7 +7,7 @@ jobs:
environment:
RELEASE_SERIES_LIST: "1"
LATEST_STABLE: "1"
DISTRIBUTIONS_LIST: "debian-8"
DISTRIBUTIONS_LIST: "debian-8,ol-7"
IMAGE_NAME: nats
DOCKER_PROJECT: bitnami
QUAY_PROJECT: bitnami