Skip to content

Commit

Permalink
Removed nginx logrotate and cron jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed May 1, 2024
1 parent 0f38743 commit a9d8862
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
8 changes: 0 additions & 8 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ COPY setup/default.conf.template ${NGINX_DIR}/templates/

RUN mkdir -p ${NGINX_DIR}/certs

# Install logrotate
RUN apk add logrotate
# Create logrotate config file for nginx logs
COPY setup/dbca_nginx_rotate_logs /etc/logrotate.d/dbca_nginx_rotate_logs
## Cron jobs config
COPY setup/dbca_nginx_cron_jobs /etc/crontabs/root

ENTRYPOINT \
openssl req \
-subj '/C=DE/ST=Berlin/L=Berlin/O=None/CN=localhost' \
Expand All @@ -28,5 +21,4 @@ ENTRYPOINT \
-keyout ${NGINX_DIR}/certs/ckan-local.key \
-out ${NGINX_DIR}/certs/ckan-local.crt \
-days 365 && \
/usr/sbin/crond && \
/docker-entrypoint.sh nginx -g 'daemon off;'
3 changes: 0 additions & 3 deletions nginx/setup/dbca_nginx_cron_jobs

This file was deleted.

9 changes: 0 additions & 9 deletions nginx/setup/dbca_nginx_rotate_logs

This file was deleted.

0 comments on commit a9d8862

Please sign in to comment.