Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use isTrue function for MW_ENABLE_JOB_RUNNER and MW_ENABLE_TRANSCODER vars #96

Merged
merged 3 commits into from
Jun 9, 2022

Conversation

pastakhov
Copy link
Collaborator

No description provided.

@github-actions
Copy link

Image is built and pushed to the repository as ghcr.io/canastawiki/canasta:1.35.6-20220529-96

@pastakhov
Copy link
Collaborator Author

I tested it locally, jobrunner and transcoder are enabled, Sitemap generator is disabled
output of web docker container:

...
web_1            | Starting services..
web_1            | + jobrunner
web_1            | + transcoder
web_1            | + sleep 3
web_1            | + sleep 3
web_1            | + sitemapgen
web_1            | + rm -rf '/run/httpd/*' '/tmp/httpd*'
web_1            | + sleep 3
web_1            | + exec /usr/sbin/apachectl -DFOREGROUND
web_1            | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.27.0.4. Set the 'ServerName' directive globally to suppress this message
web_1            | + isTrue true
web_1            | + isTrue true
web_1            | + case $1 in
web_1            | + case $1 in
web_1            | + return 0
web_1            | + return 0
web_1            | + isTrue false
web_1            | + echo Run transcoder
web_1            | + case $1 in
web_1            | + echo Run Jobs
web_1            | + return 1
web_1            | Run transcoder
web_1            | Run Jobs
web_1            | + echo Sitemap generator is disabled
web_1            | + nice -n 20 runuser -c /mwtranscoder.sh -s /bin/bash www-data
web_1            | Sitemap generator is disabled
web_1            | + nice -n 20 runuser -c /mwjobrunner.sh -s /bin/bash www-data
web_1            | Starting transcoder...
web_1            | Starting job runner...
...

@pastakhov pastakhov requested a review from vedmaka May 30, 2022 06:50
@tosfos tosfos merged commit 9d5a567 into master Jun 9, 2022
@tosfos tosfos deleted the WIK-505/isTrue branch June 9, 2022 17:56
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

Image is built and pushed to the repository as ghcr.io/canastawiki/canasta:latest,ghcr.io/canastawiki/canasta:1.1.0,ghcr.io/canastawiki/canasta:1.35-latest,ghcr.io/canastawiki/canasta:1.35.6-latest,ghcr.io/canastawiki/canasta:1.35.6-20220609-9d5a567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants