Skip to content

Commit 1462f7c

Browse files
committed
Varnish container config fixes
Removed debug output from entrypoint
1 parent cf35c12 commit 1462f7c

2 files changed

Lines changed: 3 additions & 20 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ services:
113113
depends_on:
114114
- linkeddatahub
115115
tmpfs: /var/lib/varnish/varnishd:exec
116-
environment:
117-
- VARNISH_HTTP_PORT=6060
118-
- VARNISH_SIZE=1G
119-
command: [ "-t", "86400" ] # time to live
116+
command: [ "-a", "http=:6060,HTTP", "-a", "proxy=:8443,PROXY", "-p", "feature=+http2", "-s", "file,/var/lib/varnish/storage.bin,3G", "-t", "86400" ] # HTTP and PROXY listeners, http2 support, 3GB disk storage, 86400s TTL
120117
varnish-admin:
121118
image: varnish:7.3.0
122119
user: root # otherwise the varnish user does not have permissions to the mounted folder which is owner by root
@@ -126,9 +123,7 @@ services:
126123
depends_on:
127124
- linkeddatahub
128125
tmpfs: /var/lib/varnish/varnishd:exec
129-
environment:
130-
- VARNISH_SIZE=1G
131-
command: [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
126+
command: [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
132127
varnish-end-user:
133128
image: varnish:7.3.0
134129
user: root # otherwise varnish user does not have permissions to the mounted folder which is owner by root
@@ -138,9 +133,7 @@ services:
138133
depends_on:
139134
- linkeddatahub
140135
tmpfs: /var/lib/varnish/varnishd:exec
141-
environment:
142-
- VARNISH_SIZE=1G
143-
command: [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
136+
command: [ "-p", "feature=+http2", "-s", "malloc,1G", "-t", "86400", "-p", "timeout_idle=60s" ] # 1GB malloc storage, 86400s TTL, 60s idle timeout
144137
email-server:
145138
image: namshi/smtp
146139
environment:

platform/entrypoint.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,6 @@ OWNER_KEY_URI=$(echo "$owner_metadata" | xmlstarlet sel -N srx="http://www.w3.or
493493
OWNER_KEY_DOC_URI=$(echo "$OWNER_KEY_URI" | sed 's|#this$||')
494494
OWNER_KEY_URI="${OWNER_KEY_DOC_URI}#this"
495495

496-
printf "\n### Extracted OWNER_URI: %s\n" "$OWNER_URI"
497-
printf "\n### Extracted OWNER_DOC_URI: %s\n" "$OWNER_DOC_URI"
498-
printf "\n### Extracted OWNER_KEY_URI: %s\n" "$OWNER_KEY_URI"
499-
printf "\n### Extracted OWNER_KEY_DOC_URI: %s\n" "$OWNER_KEY_DOC_URI"
500-
501496
printf "\n### Reading secretary metadata from existing file: %s\n" /var/linkeddatahub/based-datasets/root-secretary.nq
502497

503498
trig --base="$ADMIN_BASE_URI" --output=nq "$SECRETARY_DATASET_PATH" > /var/linkeddatahub/based-datasets/root-secretary.nq
@@ -510,11 +505,6 @@ SECRETARY_KEY_URI=$(echo "$secretary_metadata" | xmlstarlet sel -N srx="http://w
510505
SECRETARY_KEY_DOC_URI=$(echo "$SECRETARY_KEY_URI" | sed 's|#this$||')
511506
SECRETARY_KEY_URI="${SECRETARY_KEY_DOC_URI}#this"
512507

513-
printf "\n### Extracted SECRETARY_URI: %s\n" "$SECRETARY_URI"
514-
printf "\n### Extracted SECRETARY_DOC_URI: %s\n" "$SECRETARY_DOC_URI"
515-
printf "\n### Extracted SECRETARY_KEY_URI: %s\n" "$SECRETARY_KEY_URI"
516-
printf "\n### Extracted SECRETARY_KEY_DOC_URI: %s\n" "$SECRETARY_KEY_DOC_URI"
517-
518508
# Note: LOAD_DATASETS check is now done per-app inside the loop
519509

520510
# base the $CONTEXT_DATASET

0 commit comments

Comments
 (0)