mirror of
https://github.com/bitnami/containers.git
synced 2026-03-05 07:29:11 +08:00
2.4.35-rhel-7-r1 release
Allow using custom SSL certificates since the first initialization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM gcr.io/helm-publish-ci/redhat-extras:7-r111
|
||||
FROM gcr.io/helm-publish-ci/redhat-extras:7-r130
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
||||
@@ -7,7 +7,7 @@ ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages cyrus-sasl-lib expat glibc keyutils-libs krb5-libs libcom_err libselinux nspr nss nss-softokn-freebl nss-util openldap openssl-libs pcre zlib
|
||||
RUN bitnami-pkg unpack apache-2.4.35-0 --checksum 27c21bf58f3de5f36aab8db3ccba8b8075c05a7c9ac5e4d26343fd6906cf29e1
|
||||
RUN bitnami-pkg unpack apache-2.4.35-1 --checksum bf85455ff569b2c0353b7e01053ea5a2b9d6e253d93ef69c064c914c78e3089c
|
||||
RUN ln -sf /opt/bitnami/apache/htdocs /app
|
||||
RUN ln -sf /dev/stdout /opt/bitnami/apache/logs/access_log
|
||||
RUN ln -sf /dev/stdout /opt/bitnami/apache/logs/error_log
|
||||
@@ -16,7 +16,7 @@ COPY rootfs /
|
||||
ENV APACHE_HTTPS_PORT_NUMBER="8443" \
|
||||
APACHE_HTTP_PORT_NUMBER="8080" \
|
||||
BITNAMI_APP_NAME="apache" \
|
||||
BITNAMI_IMAGE_VERSION="2.4.35-rhel-7-r0" \
|
||||
BITNAMI_IMAGE_VERSION="2.4.35-rhel-7-r1" \
|
||||
PATH="/opt/bitnami/apache/bin:$PATH"
|
||||
|
||||
EXPOSE 8080 8443
|
||||
|
||||
@@ -50,7 +50,7 @@ Non-root container images add an extra layer of security and are generally recom
|
||||
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
* [`2.4-rhel-7`, `2.4.35-rhel-7-r0` (2.4/rhel-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-apache/blob/2.4.35-rhel-7-r0/2.4/rhel-7/Dockerfile)
|
||||
* [`2.4-rhel-7`, `2.4.35-rhel-7-r1` (2.4/rhel-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-apache/blob/2.4.35-rhel-7-r1/2.4/rhel-7/Dockerfile)
|
||||
* [`2.4-ol-7`, `2.4.35-ol-7-r17` (2.4/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-apache/blob/2.4.35-ol-7-r17/2.4/ol-7/Dockerfile)
|
||||
* [`2.4-debian-9`, `2.4.35-debian-9-r15`, `2.4`, `2.4.35`, `2.4.35-r15`, `latest` (2.4/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-apache/blob/2.4.35-debian-9-r15/2.4/debian-9/Dockerfile)
|
||||
|
||||
@@ -218,9 +218,9 @@ This container comes with SSL support already pre-configured and with a dummy ce
|
||||
In your local computer, create a folder called `certs` and put your certificates files. Make sure you rename both files to `server.crt` and `server.key` respectively:
|
||||
|
||||
```bash
|
||||
$ mkdir /path/to/apache-persistence/apache/conf/bitnami/certs -p
|
||||
$ cp /path/to/certfile.crt /path/to/apache-persistence/apache/conf/bitnami/certs/server.crt
|
||||
$ cp /path/to/keyfile.key /path/to/apache-persistence/apache/conf/bitnami/certs/server.key
|
||||
$ mkdir /path/to/apache-certs -p
|
||||
$ cp /path/to/certfile.crt /path/to/apache-certs/server.crt
|
||||
$ cp /path/to/keyfile.key /path/to/apache-certs/server.key
|
||||
```
|
||||
|
||||
### Step 2: Run the Apache image
|
||||
@@ -229,7 +229,7 @@ Run the Apache image, mounting the certificates directory from your host.
|
||||
|
||||
```bash
|
||||
$ docker run --name apache \
|
||||
-v /path/to/apache-persistence/apache/conf/bitnami/certs:/bitnami/apache/conf/bitnami/certs \
|
||||
-v /path/to/apache-certs:/opt/bitnami/apache/certs \
|
||||
bitnami/apache:latest
|
||||
```
|
||||
|
||||
@@ -245,7 +245,7 @@ services:
|
||||
- '80:8080'
|
||||
- '443:8443'
|
||||
volumes:
|
||||
- /path/to/apache-persistence/apache/conf/bitnami/certs:/bitnami/apache/conf/bitnami/certs
|
||||
- /path/to/apache-certs:/opt/bitnami/apache/certs
|
||||
```
|
||||
|
||||
## Full configuration
|
||||
|
||||
Reference in New Issue
Block a user