Skip to content
Snippets Groups Projects
Verified Commit 6376f585 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Cron v2

parent 5e7d8761
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ image: docker:20.10.9
variables:
DOCKER_TLS_CERTDIR: "/certs"
BUILD_VERSION: p8
BUILD_VERSION: p9
services:
- docker:20.10.9-dind
......
......@@ -4,7 +4,8 @@ MAINTAINER Andrej Ramašeuski <andrej.ramaseuski@pirati.cz>
USER 0
RUN install_packages cron
COPY crontab /etc/cron.d/
COPY run.sh /opt/bitnami/scripts/apache/
USER 1001
COPY phpbb /opt/bitnami/phpbb
CMD [ ( cron -f -l 8 & ) & "/opt/bitnami/scripts/apache/run.sh" ]
CMD [ "/opt/bitnami/scripts/apache/run.sh" ]
run.sh 0 → 100755
#!/bin/bash
# shellcheck disable=SC1091
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purpose
# Load libraries
. /opt/bitnami/scripts/libapache.sh
. /opt/bitnami/scripts/liblog.sh
# Load Apache environment
. /opt/bitnami/scripts/apache-env.sh
info "** Starting Apache **"
exec cron -l -f && "${APACHE_BIN_DIR}/httpd" -f "$APACHE_CONF_FILE" -D "FOREGROUND"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment