mirror of
https://github.com/bitnami/containers.git
synced 2026-02-21 07:17:26 +08:00
3.2.2-ol-7-r0 release
Update phpbb to 3.2.2
This commit is contained in:
46
bitnami/phpbb/3/ol-7/Dockerfile
Normal file
46
bitnami/phpbb/3/ol-7/Dockerfile
Normal file
@@ -0,0 +1,46 @@
|
||||
FROM bitnami/oraclelinux-extras:7-r3
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages bzip2-libs cyrus-sasl-lib expat freetype glibc gmp keyutils-libs krb5-libs libcom_err libcurl libgcc libgcrypt libgpg-error libicu libidn libjpeg-turbo libpng libselinux libssh2 libstdc++ libxml2 libxslt ncurses-libs nspr nss nss-softokn-freebl nss-util openldap openssl-libs pcre postgresql-libs readline sqlite xz-libs zlib
|
||||
RUN bitnami-pkg unpack apache-2.4.33-3 --checksum 0611709446389dbf1b9a08ee4b8b447443e356e286a9c6dee312d55f72e465d6
|
||||
RUN bitnami-pkg unpack php-7.0.30-3 --checksum 1de72790ae78f941b400212bba9f04201373b7573e679818a7f06edbb65cf473
|
||||
RUN bitnami-pkg unpack mysql-client-10.1.33-0 --checksum 250e5cd0f6f256fb39e8d8b703856dbc0257f3da9659b8565398173a3119dd9c
|
||||
RUN bitnami-pkg install libphp-7.0.30-6 --checksum 31cf8fe7e06aee8a9954e5205b9d49e7ec8c8eef4d260a9ed21e1955ec10a9f9
|
||||
RUN bitnami-pkg unpack phpbb-3.2.2-0 --checksum 7da238943d46d1d79f1eb1f23f93674f3889f25f40edb5d5c3cc8816a34b6c2b
|
||||
|
||||
COPY rootfs /
|
||||
ENV ALLOW_EMPTY_PASSWORD="no" \
|
||||
APACHE_HTTPS_PORT_NUMBER="443" \
|
||||
APACHE_HTTP_PORT_NUMBER="80" \
|
||||
BITNAMI_APP_NAME="phpbb" \
|
||||
BITNAMI_IMAGE_VERSION="3.2.2-ol-7-r0" \
|
||||
MARIADB_HOST="mariadb" \
|
||||
MARIADB_PORT_NUMBER="3306" \
|
||||
MARIADB_ROOT_PASSWORD="" \
|
||||
MARIADB_ROOT_USER="root" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_NAME="" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES="ALL" \
|
||||
MYSQL_CLIENT_CREATE_DATABASE_USER="" \
|
||||
PATH="/opt/bitnami/apache/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:$PATH" \
|
||||
PHPBB_DATABASE_NAME="bitnami_phpbb" \
|
||||
PHPBB_DATABASE_PASSWORD="" \
|
||||
PHPBB_DATABASE_USER="bn_phpbb" \
|
||||
PHPBB_EMAIL="user@example.com" \
|
||||
PHPBB_FIRST_NAME="User" \
|
||||
PHPBB_FORUM_DESCRIPTION="A little text to describe your forum" \
|
||||
PHPBB_FORUM_NAME="My forum" \
|
||||
PHPBB_HOST="" \
|
||||
PHPBB_LAST_NAME="Name" \
|
||||
PHPBB_PASSWORD="bitnami" \
|
||||
PHPBB_USERNAME="user" \
|
||||
SMTP_HOST="" \
|
||||
SMTP_PASSWORD="" \
|
||||
SMTP_PORT="" \
|
||||
SMTP_USER=""
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
ENTRYPOINT ["/app-entrypoint.sh"]
|
||||
CMD ["nami","start","--foreground","apache"]
|
||||
30
bitnami/phpbb/3/ol-7/docker-compose.yml
Normal file
30
bitnami/phpbb/3/ol-7/docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: '2'
|
||||
services:
|
||||
mariadb:
|
||||
image: 'bitnami/mariadb:10.1-ol-7'
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- MARIADB_USER=bn_phpbb
|
||||
- MARIADB_DATABASE=bitnami_phpbb
|
||||
volumes:
|
||||
- 'mariadb_data:/bitnami'
|
||||
phpbb:
|
||||
image: 'bitnami/phpbb:3-ol-7'
|
||||
environment:
|
||||
- MARIADB_HOST=mariadb
|
||||
- MARIADB_PORT_NUMBER=3306
|
||||
- PHPBB_DATABASE_USER=bn_phpbb
|
||||
- PHPBB_DATABASE_NAME=bitnami_phpbb
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- 'phpbb_data:/bitnami'
|
||||
depends_on:
|
||||
- mariadb
|
||||
volumes:
|
||||
mariadb_data:
|
||||
driver: local
|
||||
phpbb_data:
|
||||
driver: local
|
||||
4
bitnami/phpbb/3/ol-7/rootfs/apache-inputs.json
Normal file
4
bitnami/phpbb/3/ol-7/rootfs/apache-inputs.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"httpPort": "{{$global.env.APACHE_HTTP_PORT_NUMBER}}",
|
||||
"httpsPort": "{{$global.env.APACHE_HTTPS_PORT_NUMBER}}"
|
||||
}
|
||||
14
bitnami/phpbb/3/ol-7/rootfs/app-entrypoint.sh
Executable file
14
bitnami/phpbb/3/ol-7/rootfs/app-entrypoint.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. /opt/bitnami/base/functions
|
||||
. /opt/bitnami/base/helpers
|
||||
|
||||
print_welcome_page
|
||||
|
||||
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||
. /init.sh
|
||||
nami_initialize apache php mysql-client phpbb
|
||||
info "Starting phpbb... "
|
||||
fi
|
||||
|
||||
exec tini -- "$@"
|
||||
29
bitnami/phpbb/3/ol-7/rootfs/init.sh
Normal file
29
bitnami/phpbb/3/ol-7/rootfs/init.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
##
|
||||
## @brief Helper function to show an error when a password is empty and exit
|
||||
## param $1 Input name
|
||||
##
|
||||
empty_password_error() {
|
||||
error "The $1 environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development."
|
||||
exit 1
|
||||
}
|
||||
|
||||
##
|
||||
## @brief Helper function to show a warning when the ALLOW_EMPTY_PASSWORD flag is enabled
|
||||
##
|
||||
empty_password_enabled_warn() {
|
||||
warn "You set the environment variable ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD}. For safety reasons, do not use this flag in a production environment."
|
||||
}
|
||||
|
||||
# Validate passwords
|
||||
if [[ "$ALLOW_EMPTY_PASSWORD" =~ ^(yes|Yes|YES)$ ]]; then
|
||||
empty_password_enabled_warn
|
||||
else
|
||||
# Database creation by MySQL client
|
||||
if [[ -n "$MYSQL_CLIENT_CREATE_DATABASE_USER" && -z "$MYSQL_CLIENT_CREATE_DATABASE_PASSWORD" ]]; then
|
||||
empty_password_error MYSQL_CLIENT_CREATE_DATABASE_PASSWORD
|
||||
fi
|
||||
# phpBB database
|
||||
if [[ -z "$PHPBB_DATABASE_PASSWORD" ]]; then
|
||||
empty_password_error PHPBB_DATABASE_PASSWORD
|
||||
fi
|
||||
fi
|
||||
11
bitnami/phpbb/3/ol-7/rootfs/mysql-client-inputs.json
Normal file
11
bitnami/phpbb/3/ol-7/rootfs/mysql-client-inputs.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"allowEmptyPassword": "{{$global.env.ALLOW_EMPTY_PASSWORD}}",
|
||||
"createDatabaseName": "{{$global.env.MYSQL_CLIENT_CREATE_DATABASE_NAME}}",
|
||||
"createDatabasePassword": "{{$global.env.MYSQL_CLIENT_CREATE_DATABASE_PASSWORD}}",
|
||||
"createDatabasePrivileges": "{{$global.env.MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES}}",
|
||||
"createDatabaseUser": "{{$global.env.MYSQL_CLIENT_CREATE_DATABASE_USER}}",
|
||||
"host": "{{$global.env.MARIADB_HOST}}",
|
||||
"port": "{{$global.env.MARIADB_PORT_NUMBER}}",
|
||||
"rootPassword": "{{$global.env.MARIADB_ROOT_PASSWORD}}",
|
||||
"rootUser": "{{$global.env.MARIADB_ROOT_USER}}"
|
||||
}
|
||||
19
bitnami/phpbb/3/ol-7/rootfs/phpbb-inputs.json
Normal file
19
bitnami/phpbb/3/ol-7/rootfs/phpbb-inputs.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"databaseName": "{{$global.env.PHPBB_DATABASE_NAME}}",
|
||||
"databasePassword": "{{$global.env.PHPBB_DATABASE_PASSWORD}}",
|
||||
"databaseServerHost": "{{$global.env.MARIADB_HOST}}",
|
||||
"databaseServerPort": "{{$global.env.MARIADB_PORT_NUMBER}}",
|
||||
"databaseUser": "{{$global.env.PHPBB_DATABASE_USER}}",
|
||||
"email": "{{$global.env.PHPBB_EMAIL}}",
|
||||
"firstName": "{{$global.env.PHPBB_FIRST_NAME}}",
|
||||
"forumDescription": "{{$global.env.PHPBB_FORUM_DESCRIPTION}}",
|
||||
"forumName": "{{$global.env.PHPBB_FORUM_NAME}}",
|
||||
"host": "{{$global.env.PHPBB_HOST}}",
|
||||
"lastName": "{{$global.env.PHPBB_LAST_NAME}}",
|
||||
"password": "{{$global.env.PHPBB_PASSWORD}}",
|
||||
"smtpHost": "{{$global.env.SMTP_HOST}}",
|
||||
"smtpPassword": "{{$global.env.SMTP_PASSWORD}}",
|
||||
"smtpPort": "{{$global.env.SMTP_PORT}}",
|
||||
"smtpUser": "{{$global.env.SMTP_USER}}",
|
||||
"username": "{{$global.env.PHPBB_USERNAME}}"
|
||||
}
|
||||
@@ -23,6 +23,13 @@ $ docker-compose up -d
|
||||
* Bitnami images are built on CircleCI and automatically pushed to the Docker Hub.
|
||||
* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading linux distribution.
|
||||
|
||||
# Supported tags and respective `Dockerfile` links
|
||||
|
||||
* [`3`, `3.2.2-r23`, `latest` (3/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.2.2-r23/3/Dockerfile)
|
||||
* [`3-ol-7`, `3.2.2-ol-7-r0` (3/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-phpbb/blob/3.2.2-ol-7-r0/3/ol-7/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/phpbb GitHub repo](https://github.com/bitnami/bitnami-docker-phpbb).
|
||||
|
||||
# Prerequisites
|
||||
|
||||
To run this application you need Docker Engine 1.10.0. Docker Compose is recomended with a version 1.6.0 or later.
|
||||
|
||||
@@ -7,6 +7,7 @@ jobs:
|
||||
environment:
|
||||
RELEASE_SERIES_LIST: "3"
|
||||
LATEST_STABLE: "3"
|
||||
DISTRIBUTIONS_LIST: "debian-8,ol-7"
|
||||
IMAGE_NAME: phpbb
|
||||
CHART_NAME: phpbb
|
||||
CHART_REPO: https://github.com/kubernetes/charts
|
||||
@@ -63,4 +64,4 @@ workflows:
|
||||
branches:
|
||||
only: /.*/
|
||||
tags:
|
||||
only: /^[0-9].*-r[0-9]+$/
|
||||
only: /^[0-9].*-r[0-9]+(-(?!rhel).*)?$/
|
||||
|
||||
Reference in New Issue
Block a user