Remove debian 9 in favor of debian 10

This commit is contained in:
Carlos Rodriguez Hernandez 2020-01-24 18:42:03 +00:00
parent 65aabe1b62
commit a5a3a80ec8
3 changed files with 0 additions and 70 deletions

View File

@ -1,23 +0,0 @@
FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages ca-certificates curl procps sudo unzip wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/nats-2.1.2-0-linux-amd64-debian-9.tar.gz && \
echo "1af8c1fe5c20f28bcbe7f226a5fd5f7948413648a6b899c08e08ca103e09ef50 /tmp/bitnami/pkg/cache/nats-2.1.2-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/nats-2.1.2-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/nats-2.1.2-0-linux-amd64-debian-9.tar.gz
RUN apt-get update && apt-get upgrade && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
COPY rootfs /
RUN chown -R 1001:root /opt/bitnami/nats && chmod g+rwX /opt/bitnami/nats
ENV BITNAMI_APP_NAME="nats" \
BITNAMI_IMAGE_VERSION="2.1.2-debian-9-r48" \
PATH="/opt/bitnami/nats/bin:$PATH"
EXPOSE 4222 6222 8222
WORKDIR /opt/bitnami/nats
USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]

View File

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

View File

@ -1,38 +0,0 @@
#!/bin/bash
CONF_FILE='/opt/bitnami/nats/nats-server.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 nats-server 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 nats-server -c "$CONF_FILE"