From 728f621c57b1d9fe1f3521fcc49061b32115ceb9 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Fri, 24 Sep 2021 13:54:31 +0000 Subject: [PATCH] 2.7.8-debian-10-r18 release --- bitnami/discourse/2/debian-10/Dockerfile | 4 +- .../opt/bitnami/.bitnami_components.json | 4 +- bitnami/discourse/README.md | 66 +++++++++++++------ 3 files changed, 50 insertions(+), 24 deletions(-) diff --git a/bitnami/discourse/2/debian-10/Dockerfile b/bitnami/discourse/2/debian-10/Dockerfile index 7754c1e9506a..0eb0183a85e7 100644 --- a/bitnami/discourse/2/debian-10/Dockerfile +++ b/bitnami/discourse/2/debian-10/Dockerfile @@ -9,7 +9,7 @@ ENV HOME="/" \ COPY prebuildfs / # Install required system packages and dependencies RUN install_packages acl advancecomp ca-certificates curl file ghostscript gifsicle gzip hostname imagemagick jhead jpegoptim libbsd0 libbz2-1.0 libc6 libcom-err2 libcurl4 libedit2 libffi6 libgcc1 libgcrypt20 libgmp-dev libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu63 libidn2-0 libjpeg-turbo-progs libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblzma5 libncurses6 libncursesw6 libnettle6 libnghttp2-14 libp11-kit0 libpq5 libpsl5 libreadline-dev libreadline7 librtmp1 libsasl2-2 libsqlite3-0 libssh2-1 libssl-dev libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxml2-dev libxslt1-dev libxslt1.1 optipng pngcrush pngquant procps rsync sqlite3 tar zlib1g zlib1g-dev -RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.8.12-1" --checksum db3c9f6e2c8be68a22d4fb3b6eadeea842790bb77bb9ff481456bb309e9dc941 +RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.8.12-2" --checksum e00677f5209d9426daff2db54cf00e04c46718bbdbc0717aee07e6a727ef05ad RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.0-3" --checksum 7521d9a4f9e4e182bf32977e234026caa7b03759799868335bccb1edd8f8fd12 RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "uglify-js" "3.14.2-0" --checksum 9a13413877669f8aed9936297a2240da5ff422085bba5b78cf28ff95cd78bde8 RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ruby" "2.7.4-1" --checksum c0f9bcb452ea0833b81159c1e1656ab0174131930157659875309be2fed2d57c @@ -25,7 +25,7 @@ RUN /opt/bitnami/ruby/bin/gem install --force bundler -v '< 2' COPY rootfs / RUN /opt/bitnami/scripts/discourse/postunpack.sh ENV BITNAMI_APP_NAME="discourse" \ - BITNAMI_IMAGE_VERSION="2.7.8-debian-10-r17" \ + BITNAMI_IMAGE_VERSION="2.7.8-debian-10-r18" \ PATH="/opt/bitnami/python/bin:/opt/bitnami/common/bin:/opt/bitnami/ruby/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/node/bin:/opt/bitnami/git/bin:/opt/bitnami/brotli/bin:$PATH" \ POSTGRESQL_CLIENT_CREATE_DATABASE_NAME="" \ POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD="" \ diff --git a/bitnami/discourse/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/discourse/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json index 92a215e149c8..2ed8c75b90b5 100644 --- a/bitnami/discourse/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/discourse/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json @@ -43,10 +43,10 @@ }, "python": { "arch": "amd64", - "digest": "db3c9f6e2c8be68a22d4fb3b6eadeea842790bb77bb9ff481456bb309e9dc941", + "digest": "e00677f5209d9426daff2db54cf00e04c46718bbdbc0717aee07e6a727ef05ad", "distro": "debian-10", "type": "NAMI", - "version": "3.8.12-1" + "version": "3.8.12-2" }, "ruby": { "arch": "amd64", diff --git a/bitnami/discourse/README.md b/bitnami/discourse/README.md index 3efb93d8b35f..d1283ee97ccc 100644 --- a/bitnami/discourse/README.md +++ b/bitnami/discourse/README.md @@ -31,7 +31,7 @@ $ docker-compose up -d Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -- [`2`, `2-debian-10`, `2.7.8`, `2.7.8-debian-10-r17`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-discourse/blob/2.7.8-debian-10-r17/2/debian-10/Dockerfile) +- [`2`, `2-debian-10`, `2.7.8`, `2.7.8-debian-10-r18`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-discourse/blob/2.7.8-debian-10-r18/2/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/discourse GitHub repo](https://github.com/bitnami/bitnami-docker-discourse). @@ -320,8 +320,8 @@ Available environment variables: - `POSTGRESQL_CLIENT_DATABASE_HOST`: Hostname for the PostgreSQL server. Default: **postgresql** - `POSTGRESQL_CLIENT_DATABASE_PORT_NUMBER`: Port used by the PostgreSQL server. Default: **5432** -- `POSTGRESQL_CLIENT_DATABASE_POSTGRES_USER`: Database admin user. Default: **root** -- `POSTGRESQL_CLIENT_DATABASE_POSTGRES_PASSWORD`: Database password for the database admin user. No defaults. +- `POSTGRESQL_CLIENT_POSTGRES_USER`: Database admin user. Default: **root** +- `POSTGRESQL_CLIENT_POSTGRES_PASSWORD`: Database password for the database admin user. No defaults. - `POSTGRESQL_CLIENT_CREATE_DATABASE_NAME`: New database to be created by the mysql client module. No defaults. - `POSTGRESQL_CLIENT_CREATE_DATABASE_USER`: New database user to be created by the mysql client module. No defaults. - `POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD`: Database password for the `POSTGRESQL_CLIENT_CREATE_DATABASE_USER` user. No defaults. @@ -345,15 +345,23 @@ To configure Discourse to send email using SMTP you can set the following enviro This would be an example of SMTP configuration using a Gmail account: -- Modify the [`docker-compose.yml`](https://github.com/bitnami/bitnami-docker-discourse/blob/master/docker-compose.yml) file present in this repository: +- Modify the environment variables used for the `discourse` and `sidekiq` containers in the [`docker-compose.yml`](https://github.com/bitnami/bitnami-docker-discourse/blob/master/docker-compose.yml) file present in this repository: ```yaml discourse: ... environment: - - DISCOURSE_DATABASE_USER=bn_discourse - - DISCOURSE_DATABASE_NAME=bitnami_discourse - - ALLOW_EMPTY_PASSWORD=yes + ... + - DISCOURSE_SMTP_HOST=smtp.gmail.com + - DISCOURSE_SMTP_PORT=587 + - DISCOURSE_SMTP_USER=your_email@gmail.com + - DISCOURSE_SMTP_PASSWORD=your_password + - DISCOURSE_SMTP_PROTOCOL=tls + ... + sidekiq: + ... + environment: + ... - DISCOURSE_SMTP_HOST=smtp.gmail.com - DISCOURSE_SMTP_PORT=587 - DISCOURSE_SMTP_USER=your_email@gmail.com @@ -364,19 +372,37 @@ This would be an example of SMTP configuration using a Gmail account: - For manual execution: - ```console - $ docker run -d --name discourse -p 80:8080 -p 443:8443 \ - --env DISCOURSE_DATABASE_USER=bn_discourse \ - --env DISCOURSE_DATABASE_NAME=bitnami_discourse \ - --env DISCOURSE_SMTP_HOST=smtp.gmail.com \ - --env DISCOURSE_SMTP_PORT=587 \ - --env DISCOURSE_SMTP_USER=your_email@gmail.com \ - --env DISCOURSE_SMTP_PASSWORD=your_password \ - --env DISCOURSE_SMTP_PROTOCOL=tls \ - --network discourse-tier \ - --volume /path/to/discourse-persistence:/bitnami \ - bitnami/discourse:latest - ``` + - First, create the Discourse container: + + ```console + $ docker run -d --name discourse -p 80:8080 -p 443:8443 \ + --env DISCOURSE_DATABASE_USER=bn_discourse \ + --env DISCOURSE_DATABASE_NAME=bitnami_discourse \ + --env DISCOURSE_SMTP_HOST=smtp.gmail.com \ + --env DISCOURSE_SMTP_PORT=587 \ + --env DISCOURSE_SMTP_USER=your_email@gmail.com \ + --env DISCOURSE_SMTP_PASSWORD=your_password \ + --env DISCOURSE_SMTP_PROTOCOL=tls \ + --network discourse-tier \ + --volume /path/to/discourse-persistence:/bitnami \ + bitnami/discourse:latest + ``` + + - Then, create the Sidekiq container: + + ```console + $ docker run -d --name sidekiq \ + --env DISCOURSE_DATABASE_USER=bn_discourse \ + --env DISCOURSE_DATABASE_NAME=bitnami_discourse \ + --env DISCOURSE_SMTP_HOST=smtp.gmail.com \ + --env DISCOURSE_SMTP_PORT=587 \ + --env DISCOURSE_SMTP_USER=your_email@gmail.com \ + --env DISCOURSE_SMTP_PASSWORD=your_password \ + --env DISCOURSE_SMTP_PROTOCOL=tls \ + --network discourse-tier \ + --volume /path/to/discourse-persistence:/bitnami \ + bitnami/discourse:latest + ``` In order to verify your configuration works properly, you can test your configuration parameters from the container itself.