Compare commits

...

12 Commits

Author SHA1 Message Date
Muhamad Aditya Prima 1213c4f47a Updated php7 dockerfile and workflows 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima ec6be2f286 Updated builder setup 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima 95d5a2feee Added builder image for all build 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima 638f4af575 Updated apache alpine dockerfile 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima b1a69912fe Fixed docker command on php 7 apache 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima ddeb4e058e Fixed entrypoint permission 2024-12-27 14:38:16 +07:00
Muhamad Aditya Prima 3d4a2537b1 Added user php with uid 10000 2024-12-27 14:38:15 +07:00
Muhamad Aditya Prima 8cd2e3e04b Removed debug flavor 2024-12-27 14:38:15 +07:00
Muhamad Aditya Prima 8e66514189 Added missing iconv and mbstring for composer to run 2024-12-27 14:38:15 +07:00
Muhamad Aditya Prima c61bbd0775 Fixed wrong chmod compsoer command 2024-12-27 14:38:15 +07:00
Muhamad Aditya Prima 0c1f193aaf Added php 7.2 and 7.3 flavor 2024-12-27 14:38:15 +07:00
Muhamad Aditya Prima b40a6b9038 Added composer for all php7 image 2024-12-27 14:38:15 +07:00
7 changed files with 215 additions and 210 deletions

View File

@ -6,77 +6,137 @@ on:
- php7-alpine
jobs:
build:
name: Build PHP 7 container images
builder:
name: Build PHP 7 builder container images
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
strategy:
matrix:
flavors:
- os: "alpine"
os_version: "3.9"
php_version: "7.2"
php_ver_short: "7"
- os: "alpine"
os_version: "3.12"
php_version: "7.3"
php_ver_short: "7"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: cli
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_SECRET }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push php7 builder
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 7/Dockerfile.${{ matrix.flavors.os }}-builder
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-builder-${{ matrix.flavors.os }}
flavors:
name: Build PHP 7 container images
runs-on: ubuntu-latest
needs:
- builder
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
strategy:
matrix:
flavors:
- os: "alpine"
os_version: "3.9"
php_version: "7.2"
php_ver_short: "7"
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.12"
php_version: "7.3"
php_ver_short: "7"
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: full
with_server: "false"
with_database: "false"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
os_version: "3.9"
php_version: "7.2"
php_ver_short: "7"
mode: debug
with_server: "false"
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
os_version: "3.12"
php_version: "7.3"
php_ver_short: "7"
mode: full
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: full
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.9"
php_version: "7.2"
php_ver_short: "7"
with_server: "apache"
with_database: "mysql"
- os: "alpine"
os_version: "3.12"
php_version: "7.3"
php_ver_short: "7"
with_server: "apache"
with_database: "mysql"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: full
with_server: "apache"
with_database: "postgresql"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: debug
with_server: "apache"
with_database: "false"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: debug
with_server: "apache"
with_database: "mysql"
- os: "alpine"
os_version: "3.9"
php_version: "7.2"
php_ver_short: "7"
with_server: "apache"
with_database: "postgresql"
- os: "alpine"
os_version: "3.12"
php_version: "7.3"
php_ver_short: "7"
with_server: "apache"
with_database: "postgresql"
- os: "alpine"
os_version: "3.15"
php_version: "7.4"
php_ver_short: "7"
mode: debug
with_server: "apache"
with_database: "postgresql"
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -99,69 +159,36 @@ jobs:
file: 7/Dockerfile.${{ matrix.flavors.os }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.os }}
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.os }}
- if: ${{ matrix.flavors.with_server != 'false' && matrix.flavors.with_database == 'false' }}
name: Build and push php7 with webserver
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 7/Dockerfile.${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
file: 7/Dockerfile.${{ matrix.flavors.os }}-${{ matrix.flavors.with_server }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
WITH_APACHE=true
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
- if: ${{ matrix.flavors.with_server != 'false' && matrix.flavors.with_database != 'false' }}
name: Build and push php7 with apache2 and database connector library
name: Build and push php7 with webserver and database connector library
uses: docker/build-push-action@v5
with:
push: true
context: .
file: 7/Dockerfile.${{ matrix.flavors.with_server }}-${{ matrix.flavors.os }}
file: 7/Dockerfile.${{ matrix.flavors.os }}-${{ matrix.flavors.with_server }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
FLAVOR=${{ matrix.flavors.mode }}
PHP_VERSION=${{ matrix.flavors.php_version }}
PHP_VER_SHORT=${{ matrix.flavors.php_ver_short }}
WITH_APACHE=true
WITH_DATABASE=${{ matrix.flavors.with_database }}
tags: |
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.mode }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.with_database }}-${{ matrix.flavors.os }}
# build-latest:
# name: Build latest nginx alpine based container images
# runs-on: ubuntu-latest
# needs:
# - build
# container:
# image: ghcr.io/catthehacker/ubuntu:act-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v4
# - name: Login to quay.io
# uses: docker/login-action@v3
# with:
# registry: quay.io
# username: ${{ vars.QUAY_USERNAME }}
# password: ${{ secrets.QUAY_SECRET }}
# # - name: Set up QEMU
# # uses: docker/setup-qemu-action@v3
# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@v3
# - name: Build and push latest nginx
# uses: docker/build-push-action@v5
# with:
# # platforms: linux/amd64,linux/arm64
# push: true
# context: .
# file: Dockerfile.alpine
# tags: |
# quay.io/sindigilive/nginx:alpine
# quay.io/sindigilive/nginx:latest
quay.io/sindigilive/php:${{ matrix.flavors.php_version }}-${{ matrix.flavors.with_server }}-${{ matrix.flavors.with_database }}-${{ matrix.flavors.os }}

View File

@ -2,45 +2,25 @@
# PHP 7.3 == 3.12
# PHP 7.4 == 3.15
ARG OS_VERSION=3.15
ARG PHP_VERSION=7.4
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
FROM quay.io/sindigilive/php:${PHP_VERSION}-builder-alpine AS builder
ARG FLAVOR=cli
ARG WITH_APACHE=false
ARG WITH_DATABASE=false
ARG PHP_VERSION=7.4
ARG PHP_VER_SHORT=7
ENV FLAVOR=${FLAVOR}
ENV WITH_APACHE=${WITH_APACHE}
ENV WITH_DATABASE=${WITH_DATABASE}
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
WORKDIR /root
ADD 7/scripts/alpine-setup.sh /tmp/setup.sh
# Create directory, and install required php app
RUN /bin/mkdir -p /app ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli ; \
/bin/chmod +x /tmp/setup.sh; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*
RUN /bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh; \
rm -vrf /var/cache/apk/*
FROM scratch
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ARG PHP_VERSION=7.4
ARG PHP_VER_SHORT=7
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
@ -60,6 +40,8 @@ COPY --from=builder / /
WORKDIR /app
USER php
STOPSIGNAL SIGQUIT
CMD ["/usr/bin/php", "-v"]

View File

@ -0,0 +1,47 @@
# PHP 7.2 == 3.9
# PHP 7.3 == 3.12
# PHP 7.4 == 3.15
ARG OS_VERSION=3.15
ARG PHP_VERSION=7.4
FROM quay.io/sindigilive/php:${PHP_VERSION}-builder-alpine AS builder
ARG WITH_APACHE=false
ARG WITH_DATABASE=false
ENV WITH_APACHE=${WITH_APACHE}
ENV WITH_DATABASE=${WITH_DATABASE}
# Create directory, and install required php app
RUN /bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh; \
rm -vrf /var/cache/apk/*
FROM scratch
ARG PHP_VERSION=7.4
ARG PHP_VER_SHORT=7
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
LABEL name="php"
LABEL version="${PHP_VERSION}"
LABEL distribution-scope="public"
#labels for container catalog
LABEL summary="PHP ${PHP_VERSION} on alpine based container image"
LABEL description="Provide php on alpine based container base image"
LABEL io.k8s.description="Very small alpine linux container image"
LABEL io.k8s.display-name="PHP ${PHP_VERSION}"
COPY --from=builder / /
USER apache
WORKDIR /app/htdocs
STOPSIGNAL SIGQUIT
CMD ["/usr/local/bin/entrypoint.sh"]

View File

@ -0,0 +1,39 @@
# PHP 7.2 == 3.9
# PHP 7.3 == 3.12
# PHP 7.4 == 3.15
ARG OS_VERSION=3.15
FROM quay.io/sindigilive/alpine:${OS_VERSION}
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG PHP_VERSION=7.4
ARG PHP_VER_SHORT=7
ARG COMPOSER_VERSION=2.8.4
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
ENV COMPOSER_VERSION=${COMPOSER_VERSION}
ENV SERVER_ROOT=/app
WORKDIR ${SERVER_ROOT}
ADD 7/scripts/alpine-setup.sh /tmp/setup.sh
ADD https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar /usr/local/bin/composer
# Create directory, and install required php app
RUN /bin/mkdir -p /app ; \
/usr/sbin/addgroup -g 10000 php ; \
/usr/sbin/adduser -D -u 10000 -G php -s /bin/sh -h $SERVER_ROOT php ; \
/bin/chown -R php:php /app ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli php${PHP_VER_SHORT}-phar \
php${PHP_VER_SHORT}-iconv php${PHP_VER_SHORT}-mbstring \
php${PHP_VER_SHORT}-json ; \
/bin/chmod +x /tmp/setup.sh /usr/local/bin/composer ;
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*

View File

@ -1,78 +0,0 @@
# PHP 7.2 == 3.9
# PHP 7.3 == 3.12
# PHP 7.4 == 3.15
ARG OS_VERSION=3.15
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG FLAVOR=cli
ARG WITH_APACHE=false
ARG WITH_DATABASE=false
ARG PHP_VERSION=7.4
ARG PHP_VER_SHORT=7
ENV FLAVOR=${FLAVOR}
ENV WITH_APACHE=${WITH_APACHE}
ENV WITH_DATABASE=${WITH_DATABASE}
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
ENV SERVER_ROOT=/app
WORKDIR /root
ADD 7/scripts/alpine-setup.sh /tmp/setup.sh
ADD scripts/entrypoint.sh /usr/local/bin/
# Create directory, and install required php app
RUN /bin/mkdir -p /app ; \
/sbin/apk add --update --no-cache \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli ; \
/bin/chmod +x /tmp/setup.sh /usr/local/bin/entrypoint.sh ; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;
ADD htdocs ${SERVER_ROOT}/htdocs
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
# CLEAN APK CACHES
RUN sed -i "s|#version#|${PHP_VERSION}|" /app/htdocs/index.html ; \
sed -i "s|#os#|alpine|" /app/htdocs/index.html ; \
sed -i "s|#flavor#|${FLAVOR}|" /app/htdocs/index.html ; \
mkdir -p ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
ln -s /usr/lib/apache2 ${SERVER_ROOT}/modules ; \
chmod -R 755 ${SERVER_ROOT}/logs ${SERVER_ROOT/run} ; \
chown -R apache:apache ${SERVER_ROOT}/htdocs ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
rm -vrf /var/cache/apk/*
FROM scratch
ARG PHP_VERSION=5.6
ARG PHP_VER_SHORT=5
ENV PHP_VERSION=${PHP_VERSION}
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
LABEL name="php"
LABEL version="${PHP_VERSION}"
LABEL distribution-scope="public"
#labels for container catalog
LABEL summary="PHP ${PHP_VERSION} on alpine based container image"
LABEL description="Provide php on alpine based container base image"
LABEL io.k8s.description="Very small alpine linux container image"
LABEL io.k8s.display-name="PHP ${PHP_VERSION}"
COPY --from=builder / /
USER apache
WORKDIR /app/htdocs
STOPSIGNAL SIGQUIT
CMD ["/usr/bin/php", "-v"]

View File

@ -1,11 +1,11 @@
#!/bin/sh
PHP_LIST="bcmath,brotli,bz2,calendar,cgi,
PHP_LIST="bcmath,bz2,calendar,cgi,
ctype,curl,dba,dom,embed,
enchant,exif,fileinfo,ftp,gd,
gettext,gmp,iconv,imap,intl,
json,ldap,mbstring,opcache,openssl,
pcntl,pdo,pear,phar,posix,
gettext,gmp,imap,intl,
ldap,opcache,openssl,
pcntl,pdo,pear,posix,
pspell,shmop,snmp,soap,sockets,
sysvmsg,sysvsem,sysvshm,tidy,tokenizer,
xml,xmlreader,xmlrpc,xsl,zip"
@ -15,45 +15,33 @@ SERVER_ROOT="/app"
APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info"
# Setup php flavor
if [[ "$FLAVOR" == "debug" ]]; then
LOG_LEVEL="debug"
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-dbg \
php$PHP_VER_SHORT-phpdbg php$PHP_VER_SHORT-dev;
fi
if [ "$FLAVOR" == "full" ] || [ "$FLAVOR" == "debug" ]; then
for i in $(echo $PHP_LIST | tr "," "\n"); do
PHP_DEPS="${PHP_DEPS} php$PHP_VER_SHORT-$i ";
done
for i in $(echo $PHP_LIST | tr "," "\n"); do
PHP_DEPS="${PHP_DEPS} php$PHP_VER_SHORT-$i ";
done
/sbin/apk add --update --no-cache $PHP_DEPS;
fi
# Only setup apache with full flavor parameters
# Setup apache2
if [ "$WITH_APACHE" == "true" ]; then
if [ "$FLAVOR" == "full" ] || [ "$FLAVOR" == "debug" ]; then
/usr/sbin/addgroup -g 10001 apache ;
/usr/sbin/adduser -D -u 10001 -G apache -s /bin/sh -h $APP_ROOT apache ;
/sbin/apk add --update --no-cache apache2 php$PHP_VER_SHORT-apache2 ;
/usr/sbin/addgroup -g 10001 apache ;
/usr/sbin/adduser -D -u 10001 -G apache -s /bin/sh -h $APP_ROOT apache ;
/sbin/apk add --update --no-cache apache2 php$PHP_VER_SHORT-apache2 ;
sed -i "s|ServerRoot /var/www|ServerRoot ${SERVER_ROOT}|" /etc/apache2/httpd.conf ;
sed -i "s|ServerAdmin you@example.com| ServerAdmin map@sindigilive.com|" /etc/apache2/httpd.conf ;
sed -i "s|DocumentRoot \"/var/www/localhost/htdocs\"|DocumentRoot \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|Directory \"/var/www/localhost/htdocs\"|Directory \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|AllowOverride None|AllowOverride All|" /etc/apache2/httpd.conf ;
sed -i "s|ErrorLog .*|ErrorLog /dev/stderr \nTransferLog /dev/stdout|" /etc/apache2/httpd.conf ;
sed -i "s|CustomLog .* combined|CustomLog /dev/stdout combined|" /etc/apache2/httpd.conf ;
sed -i "s|LogLevel .*|LogLevel ${LOG_LEVEL}|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule rewrite_module|LoadModule rewrite_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule deflate_module|LoadModule deflate_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule expires_module|LoadModule expires_module|" /etc/apache2/httpd.conf ;
sed -i "s|/var/www/localhost/cgi-bin/|/app/cgi-bin/|" /etc/apache2/httpd.conf ;
sed -i "s|Require host .example.com|#Require host .example.com|" /etc/apache2/conf.d/info.conf ;
sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf ;
sed -i "s|/run/apache2/httpd.pid|${SERVER_ROOT}/run/httpd.pid|" /etc/apache2/conf.d/mpm.conf ;
fi
sed -i "s|ServerRoot /var/www|ServerRoot ${SERVER_ROOT}|" /etc/apache2/httpd.conf ;
sed -i "s|ServerAdmin you@example.com| ServerAdmin map@sindigilive.com|" /etc/apache2/httpd.conf ;
sed -i "s|DocumentRoot \"/var/www/localhost/htdocs\"|DocumentRoot \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|Directory \"/var/www/localhost/htdocs\"|Directory \"${APP_ROOT}\"|" /etc/apache2/httpd.conf ;
sed -i "s|AllowOverride None|AllowOverride All|" /etc/apache2/httpd.conf ;
sed -i "s|ErrorLog .*|ErrorLog /dev/stderr \nTransferLog /dev/stdout|" /etc/apache2/httpd.conf ;
sed -i "s|CustomLog .* combined|CustomLog /dev/stdout combined|" /etc/apache2/httpd.conf ;
sed -i "s|LogLevel .*|LogLevel ${LOG_LEVEL}|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule rewrite_module|LoadModule rewrite_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule deflate_module|LoadModule deflate_module|" /etc/apache2/httpd.conf ;
sed -i "s|#LoadModule expires_module|LoadModule expires_module|" /etc/apache2/httpd.conf ;
sed -i "s|/var/www/localhost/cgi-bin/|/app/cgi-bin/|" /etc/apache2/httpd.conf ;
sed -i "s|Require host .example.com|#Require host .example.com|" /etc/apache2/conf.d/info.conf ;
sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf ;
sed -i "s|/run/apache2/httpd.pid|${SERVER_ROOT}/run/httpd.pid|" /etc/apache2/conf.d/mpm.conf ;
fi
if [ "$WITH_DATABASE" == "postgresql" ]; then