From 7d21ecf1e3aa4d34abb0d0d1bbb31b09d81017bb Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sat, 11 Sep 2021 12:14:02 +0200 Subject: [PATCH] first commit --- .drone.yml | 9 +++++++++ Dockerfile | 17 +++++++++++++++++ README.md | 2 -- supervisord.conf | 30 ++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .drone.yml create mode 100644 Dockerfile delete mode 100644 README.md create mode 100644 supervisord.conf diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7d60335 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +kind: pipeline +name: default + +steps: +- name: build monica docker image + image: plugins/docker + settings: + repo: registry.sikorski.cloud/monica + tags: latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c86b479 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM monica:apache + +# Use the default production configuration +RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" + +# supervisord dependencies +RUN set -ex; \ + \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + supervisor \ + ; \ + rm -rf /var/lib/apt/lists/* + +COPY supervisord.conf /etc/supervisord.conf + +CMD ["supervisord", "-c", "/etc/supervisord.conf"] \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index ab9a21b..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Docker-monica - diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..077843e --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,30 @@ +[supervisord] +nodaemon=true +user=root + +[program:cron] +command=cron.sh +autostart=true +autorestart=true + +[program:queue] +process_name=%(program_name)s_%(process_num)02d +command=queue.sh +numprocs=1 +stdout_logfile=/proc/1/fd/1 +stdout_logfile_maxbytes=0 +stderr_logfile=/proc/1/fd/2 +stderr_logfile_maxbytes=0 +autostart=true +autorestart=true +startretries=0 + +[program:httpd] +process_name=%(program_name)s_%(process_num)02d +command=entrypoint.sh apache2-foreground +stdout_logfile=/proc/1/fd/1 +stdout_logfile_maxbytes=0 +stderr_logfile=/proc/1/fd/2 +stderr_logfile_maxbytes=0 +autostart=true +autorestart=true \ No newline at end of file