Skip to content

Commit

Permalink
WIP: Attempt to import dev.env when user runs 'make starter_dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Mar 4, 2024
1 parent 8399c71 commit d0abedc
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ starter: generate-secrets
## Make a local site with codebase directory bind mounted, using cloned starter site.
starter_dev: QUOTED_CURDIR = "$(CURDIR)"
starter_dev: generate-secrets

-include dev.env
$(MAKE) starter-init ENVIRONMENT=starter_dev
if [ -z "$$(ls -A $(QUOTED_CURDIR)/codebase)" ]; then \
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone -b main https://github.com/Islandora-Devops/islandora-starter-site /home/root;'; \
Expand Down
16 changes: 15 additions & 1 deletion build/docker-compose/docker-compose.drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ services:
PHP_POST_MAX_SIZE: ${PHP_POST_MAX_SIZE}
PHP_UPLOAD_MAX_FILESIZE: ${PHP_UPLOAD_MAX_FILESIZE}
PHP_MAX_EXECUTION_TIME: ${PHP_MAX_EXECUTION_TIME}
PHP_MAX_INPUT_TIME: ${PHP_MAX_INPUT_TIME}
PHP_DEFAULT_SOCKET_TIMEOUT: ${PHP_DEFAULT_SOCKET_TIMEOUT}
PHP_PROCESS_CONTROL_TIMEOUT: ${PHP_PROCESS_CONTROL_TIMEOUT}
PHP_REQUEST_TERMINATE_TIMEOUT: ${PHP_REQUEST_TERMINATE_TIMEOUT}
NGINX_CLIENT_BODY_TIMEOUT: ${NGINX_CLIENT_BODY_TIMEOUT}
NGINX_FASTCGI_CONNECT_TIMEOUT: ${NGINX_FASTCGI_CONNECT_TIMEOUT}
NGINX_FASTCGI_READ_TIMEOUT: ${NGINX_FASTCGI_READ_TIMEOUT}
NGINX_FASTCGI_SEND_TIMEOUT: ${NGINX_FASTCGI_SEND_TIMEOUT}
NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT}
NGINX_LINGERING_TIMEOUT: ${NGINX_LINGERING_TIMEOUT}
NGINX_PROXY_CONNECT_TIMEOUT: ${NGINX_PROXY_CONNECT_TIMEOUT}
NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT}
NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT}
NGINX_SEND_TIMEOUT: ${NGINX_SEND_TIMEOUT}
labels:
- traefik.enable=${EXPOSE_DRUPAL:-true}
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-drupal.loadbalancer.server.port=80
Expand All @@ -41,4 +55,4 @@ services:
limits:
memory: ${DRUPAL_MEMORY_LIMIT:-512M}
reservations:
memory: 256M
memory: 256M
14 changes: 14 additions & 0 deletions dev.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PHP_MAX_INPUT_TIME=3600
PHP_DEFAULT_SOCKET_TIMEOUT=3600
PHP_PROCESS_CONTROL_TIMEOUT=3600
PHP_REQUEST_TERMINATE_TIMEOUT=3600
NGINX_CLIENT_BODY_TIMEOUT=3600s
NGINX_FASTCGI_CONNECT_TIMEOUT=3600s
NGINX_FASTCGI_READ_TIMEOUT=3600s
NGINX_FASTCGI_SEND_TIMEOUT=3600s
NGINX_KEEPALIVE_TIMEOUT=3600s
NGINX_LINGERING_TIMEOUT=5s
NGINX_PROXY_CONNECT_TIMEOUT=3600s
NGINX_PROXY_READ_TIMEOUT=3600s
NGINX_PROXY_SEND_TIMEOUT=3600s
NGINX_SEND_TIMEOUT=3600s
19 changes: 18 additions & 1 deletion sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ EXPOSE_ACTIVEMQ=false
ACTIVEMQ_PORT=8161

# Expose SOLR over the given port - DO NOT EXPOSE THIS IN PRODUCTION
EXPOSE_SOLR=false
EXPOSE_SOLR=true
SOLR_PORT=8983

# Expose Code Server over the given port - DO NOT EXPOSE THIS IN PRODUCTION
Expand Down Expand Up @@ -203,3 +203,20 @@ CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY=BasicLookupStrategy
# when running make drupal-public-files-import
# If set to anything else, that path will be added to DEST
PUBLIC_FILES_TAR_DUMP_PATH=.


PHP_MAX_EXECUTION_TIME=30
PHP_MAX_INPUT_TIME=60
PHP_DEFAULT_SOCKET_TIMEOUT=60
PHP_PROCESS_CONTROL_TIMEOUT=60
PHP_REQUEST_TERMINATE_TIMEOUT=60
NGINX_CLIENT_BODY_TIMEOUT=60s
NGINX_FASTCGI_CONNECT_TIMEOUT=60s
NGINX_FASTCGI_READ_TIMEOUT=60s
NGINX_FASTCGI_SEND_TIMEOUT=60s
NGINX_KEEPALIVE_TIMEOUT=60s
NGINX_LINGERING_TIMEOUT=5s
NGINX_PROXY_CONNECT_TIMEOUT=60s
NGINX_PROXY_READ_TIMEOUT=60s
NGINX_PROXY_SEND_TIMEOUT=60s
NGINX_SEND_TIMEOUT=60s

0 comments on commit d0abedc

Please sign in to comment.