2.2.1-r1 release

Fully integrated version
This commit is contained in:
Bitnami Bot
2018-04-13 11:35:07 +00:00
parent e5956366f4
commit 9548273d6d
4 changed files with 27 additions and 24 deletions

View File

@@ -1,32 +1,26 @@
FROM bitnami/minideb:jessie as development
FROM bitnami/minideb:jessie as buildenv
ARG PROMETHEUS_VERSION=2.2.1
ARG PROMETHEUS_DIR=prometheus-$PROMETHEUS_VERSION.linux-amd64
RUN install_packages ca-certificates wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/prometheus-2.2.1-1-linux-x64-debian-8.tar.gz && \
echo "c71eb93fc3573c5213d6ab1c762bad0add5f6d98ee0ccbff62a43494e5dd1ebf /tmp/bitnami/pkg/cache/prometheus-2.2.1-1-linux-x64-debian-8.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/prometheus-2.2.1-1-linux-x64-debian-8.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/prometheus-2.2.1-1-linux-x64-debian-8.tar.gz
RUN install_packages wget ca-certificates
RUN wget -nc https://github.com/prometheus/prometheus/releases/download/v$PROMETHEUS_VERSION/$PROMETHEUS_DIR.tar.gz && \
tar -xzf $PROMETHEUS_DIR.tar.gz
##################
FROM bitnami/minideb:jessie
LABEL maintainer "Bitnami <containers@bitnami.com>"
ARG PROMETHEUS_VERSION=2.2.1
ARG PROMETHEUS_DIR=prometheus-$PROMETHEUS_VERSION.linux-amd64
COPY --from=development /$PROMETHEUS_DIR/prometheus /$PROMETHEUS_DIR/promtool /opt/bitnami/prometheus/bin/
COPY --from=development /$PROMETHEUS_DIR/prometheus.yml /$PROMETHEUS_DIR/console_libraries /$PROMETHEUS_DIR/consoles /opt/bitnami/prometheus/conf/
COPY --from=development /$PROMETHEUS_DIR/LICENSE /opt/bitnami/prometheus/LICENSE
COPY --from=buildenv /opt/bitnami/prometheus /opt/bitnami/prometheus
ENV BITNAMI_APP_NAME="prometheus" \
BITNAMI_IMAGE_VERSION="2.2.1-r1" \
PATH="/opt/bitnami/prometheus/bin:$PATH"
RUN mkdir -p /opt/bitnami/prometheus/data/ && chmod g+rwX /opt/bitnami/prometheus/data/
ENV PATH="/opt/bitnami/prometheus/bin:$PATH"
EXPOSE 9090
USER 1001
EXPOSE 9090
WORKDIR /opt/bitnami/prometheus/data
ENTRYPOINT [ "/opt/bitnami/prometheus/bin/prometheus" ]
CMD [ "--config.file=/opt/bitnami/prometheus/conf/prometheus.yml", \
"--storage.tsdb.path=/opt/bitnami/prometheus/data", \
"--web.console.libraries=/opt/bitnami/prometheus/conf/console_libraries", \
"--web.console.templates=/opt/bitnami/prometheus/conf/consoles" ]
WORKDIR /opt/bitnami/prometheus
USER 1001
ENTRYPOINT ["/opt/bitnami/prometheus/bin/prometheus"]
CMD ["--config.file=/opt/bitnami/prometheus/conf/prometheus.yml","--storage.tsdb.path=/opt/bitnami/prometheus/data","--web.console.libraries=/opt/bitnami/prometheus/conf/console_libraries","--web.console.templates=/opt/bitnami/prometheus/conf/consoles"]

View File

@@ -0,0 +1,7 @@
version: '2'
services:
prometheus:
image: bitnami/prometheus:2
ports:
- '9090:9090'

View File

@@ -73,9 +73,9 @@ Use the `--network <NETWORK>` argument to the `docker run` command to attach the
$ docker run --name prometheus-node1 --network prometheus-network bitnami/prometheus:latest
```
### Step 3: Run another containers
### Step 3: Run other containers
We can launch another containers using the same flag (`--network NETWORK`) in the `docker run` command. If you also set a name to your container, you will be able to use it as hostname in your network.
We can launch other containers using the same flag (`--network NETWORK`) in the `docker run` command. If you also set a name to your container, you will be able to use it as hostname in your network.
# Configuration

View File

@@ -9,6 +9,8 @@ jobs:
LATEST_STABLE: "2"
IMAGE_NAME: prometheus
DOCKER_PROJECT: bitnami
QUAY_PROJECT: bitnami
GCLOUD_PROJECT: bitnami-containers
steps:
- checkout