Skip to content

Commit 919bdbd

Browse files
committed
Merge branch 'wallabag:master' into docker-secrets
2 parents 2e343d1 + 480d383 commit 919bdbd

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
contents: read
1414
steps:
1515
- name: Check out the repo
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717

1818
- name: Log in to Docker Hub
1919
uses: docker/login-action@v3

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525

2626
steps:
2727
- name: "Checkout"
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 2
3131

3232
- name: Set up Python
33-
uses: actions/setup-python@v5
33+
uses: actions/setup-python@v6
3434
with:
3535
python-version: 3.11
3636

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG COMPOSER_VERSION=2.5.8
1+
ARG COMPOSER_VERSION=2.8.10
22

33
FROM composer:$COMPOSER_VERSION as composer
44

@@ -7,13 +7,13 @@ FROM golang:alpine as builder
77
# envsubst from gettext can not replace env vars with default values
88
# this package is not available for ARM32 and we have to build it from source code
99
# flag -ldflags "-s -w" produces a smaller executable
10-
RUN go install -ldflags "-s -w" -v github.com/a8m/envsubst/cmd/envsubst@v1.3.0
10+
RUN go install -ldflags "-s -w" -v github.com/a8m/envsubst/cmd/envsubst@v1.4.3
1111

12-
FROM alpine:3.18
12+
FROM alpine:3.19
1313

1414
COPY --from=builder /go/bin/envsubst /usr/bin/envsubst
1515

16-
ARG WALLABAG_VERSION=2.6.12
16+
ARG WALLABAG_VERSION=2.6.14
1717

1818
RUN set -ex \
1919
&& apk add --no-cache \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ services:
144144
volumes:
145145
- /opt/wallabag/data:/var/lib/mysql
146146
healthcheck:
147-
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
147+
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--innodb_initialized"]
148148
interval: 20s
149149
timeout: 3s
150150
redis:

root/entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -e
44

55
FILE_ENV_VARS="$(env | grep '__FILE=')"
66
for env_var in $FILE_ENV_VARS; do
7-
var_name="$(echo $env_var | grep -o '.*__FILE=' | sed 's/__FILE=//g')"
8-
file_path="$(echo $env_var | grep -o '__FILE=.*' | sed 's/__FILE=//g')"
9-
file_content="$(cat $file_path)"
10-
[[ ! $? -eq 0 ]] && exit 1 # Exit if last command failed
11-
new_var="$(echo $var_name=$file_content)"
12-
export $(echo $new_var | xargs)
7+
var_name="$(echo "$env_var" | grep -o '.*__FILE=' | sed 's/__FILE=//g')"
8+
file_path="$(echo "$env_var" | grep -o '__FILE=.*' | sed 's/__FILE=//g')"
9+
file_content="$(cat "$file_path")"
10+
[ ! $? -eq 0 ] && exit 1 # Exit if last command failed
11+
new_var="$(echo "$var_name=$file_content")"
12+
export $(echo "$new_var" | xargs)
1313
done
1414

1515
COMMAND_ARG1="$1"

root/etc/wallabag/parameters.template.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ parameters:
3636
rss_limit: 50
3737

3838
# RabbitMQ processing
39-
rabbitmq_host: localhost
40-
rabbitmq_port: 5672
41-
rabbitmq_user: guest
42-
rabbitmq_password: guest
43-
rabbitmq_prefetch_count: 10
39+
rabbitmq_host: ${SYMFONY__ENV__RABBITMQ_HOST:-localhost}
40+
rabbitmq_port: ${SYMFONY__ENV__RABBITMQ_PORT:-5672}
41+
rabbitmq_user: ${SYMFONY__ENV__RABBITMQ_USER:-guest}
42+
rabbitmq_password: ${SYMFONY__ENV__RABBITMQ_PASSWORD:-guest}
43+
rabbitmq_prefetch_count: ${SYMFONY__ENV__RABBITMQ_PREFETCH_COUNT:-10}
4444

4545
# Redis processing
4646
redis_scheme: ${SYMFONY__ENV__REDIS_SCHEME:-tcp}

0 commit comments

Comments
 (0)