Skip to content

Commit

Permalink
✨ Use official image env var by default
Browse files Browse the repository at this point in the history
Signed-off-by: mathieu.brunot <[email protected]>
  • Loading branch information
madmath03 committed May 7, 2021
1 parent a4e87cb commit e2cebf0
Show file tree
Hide file tree
Showing 10 changed files with 165 additions and 145 deletions.
26 changes: 15 additions & 11 deletions images/4.2/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN set -ex; \

## Runtime environment variables
# Taiga nginx, back, front and events properties
ENV TAIGA_HOSTNAME=localhost \
ENV TAIGA_SITES_DOMAIN=localhost \
TAIGA_SSL=False \
TAIGA_SSL_BY_REVERSE_PROXY=False \
TAIGA_BACKEND_SSL=False \
Expand All @@ -49,20 +49,24 @@ ENV TAIGA_HOSTNAME=localhost \
TAIGA_DEFAULT_LANGUAGE=en \
TAIGA_THEMES= \
TAIGA_DEFAULT_THEME=taiga \
TAIGA_PUBLIC_REGISTER_ENABLED=false \
TAIGA_FEEDBACK_ENABLED=false \
TAIGA_SUPPORT_URL=https://tree.taiga.io/support \
TAIGA_PRIVACY_POLICY_URL= \
TAIGA_TOS_URL= \
TAIGA_GDPR_URL= \
TAIGA_MAX_UPLOAD_SIZE=104857600 \
PUBLIC_REGISTER_ENABLED=false \
FEEDBACK_ENABLED=false \
SUPPORT_URL=https://resources.taiga.io/ \
PRIVACY_POLICY_URL= \
TOS_URL= \
GDPR_URL= \
MAX_UPLOAD_SIZE=104857600 \
TAIGA_CONTRIB_PLUGINS= \
TAIGA_IMPORTERS= \
TAIGA_GRAVATAR=true \
TAIGA_LOGIN_FORM_TYPE=normal \
ENABLE_GITHUB_IMPORTER= \
ENABLE_JIRA_IMPORTER= \
ENABLE_TRELLO_IMPORTER= \
ENABLE_ASANA_IMPORTER= \
ENABLE_GRAVATAR=true \
LOGIN_FORM_TYPE=normal \
TAIGA_BACK_HOST=taigaback \
TAIGA_BACK_PORT=8001 \
TAIGA_EVENTS_ENABLED= \
EVENTS_ENABLED= \
TAIGA_EVENTS_HOST=taigaevents \
TAIGA_EVENTS_PORT=8888

Expand Down
36 changes: 18 additions & 18 deletions images/4.2/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ if [ -n "${TAIGA_FEEDBACK_ENABLED:-$FEEDBACK_ENABLED}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL}"
if [ -n "${TAIGA_SUPPORT_URL:-$SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL:-$SUPPORT_URL}"
sed -i \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL}\",|g" \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL:-$SUPPORT_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front support URL"
Expand All @@ -129,10 +129,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL}"
if [ -n "${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}"
sed -i \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL}\",|g" \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front privacy policy URL"
Expand All @@ -141,10 +141,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL}"
if [ -n "${TAIGA_TOS_URL:-$TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL:-$TOS_URL}"
sed -i \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL}\",|g" \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL:-$TOS_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front terms of services URL"
Expand All @@ -153,10 +153,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL}"
if [ -n "${TAIGA_GDPR_URL:-$GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL:-$GDPR_URL}"
sed -i \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL}\",|g" \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL:-$GDPR_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR compliance URL"
Expand All @@ -165,10 +165,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE}"
if [ -n "${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}"
sed -i \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE},|g" \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE},|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR URL"
Expand Down Expand Up @@ -244,10 +244,10 @@ if [ -n "${TAIGA_GRAVATAR:-$ENABLE_GRAVATAR}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE}"
if [ -n "${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}"
sed -i \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE}\"|g" \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}\"|g" \
/taiga/conf.json
else
log "Reset Taiga Front login form type"
Expand Down
26 changes: 15 additions & 11 deletions images/5.0/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN set -ex; \

## Runtime environment variables
# Taiga nginx, back, front and events properties
ENV TAIGA_HOSTNAME=localhost \
ENV TAIGA_SITES_DOMAIN=localhost \
TAIGA_SSL=False \
TAIGA_SSL_BY_REVERSE_PROXY=False \
TAIGA_BACKEND_SSL=False \
Expand All @@ -49,20 +49,24 @@ ENV TAIGA_HOSTNAME=localhost \
TAIGA_DEFAULT_LANGUAGE=en \
TAIGA_THEMES= \
TAIGA_DEFAULT_THEME=taiga \
TAIGA_PUBLIC_REGISTER_ENABLED=false \
TAIGA_FEEDBACK_ENABLED=false \
TAIGA_SUPPORT_URL=https://tree.taiga.io/support \
TAIGA_PRIVACY_POLICY_URL= \
TAIGA_TOS_URL= \
TAIGA_GDPR_URL= \
TAIGA_MAX_UPLOAD_SIZE=104857600 \
PUBLIC_REGISTER_ENABLED=false \
FEEDBACK_ENABLED=false \
SUPPORT_URL=https://resources.taiga.io/ \
PRIVACY_POLICY_URL= \
TOS_URL= \
GDPR_URL= \
MAX_UPLOAD_SIZE=104857600 \
TAIGA_CONTRIB_PLUGINS= \
TAIGA_IMPORTERS= \
TAIGA_GRAVATAR=true \
TAIGA_LOGIN_FORM_TYPE=normal \
ENABLE_GITHUB_IMPORTER= \
ENABLE_JIRA_IMPORTER= \
ENABLE_TRELLO_IMPORTER= \
ENABLE_ASANA_IMPORTER= \
ENABLE_GRAVATAR=true \
LOGIN_FORM_TYPE=normal \
TAIGA_BACK_HOST=taigaback \
TAIGA_BACK_PORT=8001 \
TAIGA_EVENTS_ENABLED= \
EVENTS_ENABLED= \
TAIGA_EVENTS_HOST=taigaevents \
TAIGA_EVENTS_PORT=8888

Expand Down
36 changes: 18 additions & 18 deletions images/5.0/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ if [ -n "${TAIGA_FEEDBACK_ENABLED:-$FEEDBACK_ENABLED}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL}"
if [ -n "${TAIGA_SUPPORT_URL:-$SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL:-$SUPPORT_URL}"
sed -i \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL}\",|g" \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL:-$SUPPORT_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front support URL"
Expand All @@ -129,10 +129,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL}"
if [ -n "${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}"
sed -i \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL}\",|g" \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front privacy policy URL"
Expand All @@ -141,10 +141,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL}"
if [ -n "${TAIGA_TOS_URL:-$TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL:-$TOS_URL}"
sed -i \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL}\",|g" \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL:-$TOS_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front terms of services URL"
Expand All @@ -153,10 +153,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL}"
if [ -n "${TAIGA_GDPR_URL:-$GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL:-$GDPR_URL}"
sed -i \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL}\",|g" \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL:-$GDPR_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR compliance URL"
Expand All @@ -165,10 +165,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE}"
if [ -n "${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}"
sed -i \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE},|g" \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE},|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR URL"
Expand Down Expand Up @@ -244,10 +244,10 @@ if [ -n "${TAIGA_GRAVATAR:-$ENABLE_GRAVATAR}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE}"
if [ -n "${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}"
sed -i \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE}\"|g" \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}\"|g" \
/taiga/conf.json
else
log "Reset Taiga Front login form type"
Expand Down
26 changes: 15 additions & 11 deletions images/5.5/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN set -ex; \

## Runtime environment variables
# Taiga nginx, back, front and events properties
ENV TAIGA_HOSTNAME=localhost \
ENV TAIGA_SITES_DOMAIN=localhost \
TAIGA_SSL=False \
TAIGA_SSL_BY_REVERSE_PROXY=False \
TAIGA_BACKEND_SSL=False \
Expand All @@ -49,20 +49,24 @@ ENV TAIGA_HOSTNAME=localhost \
TAIGA_DEFAULT_LANGUAGE=en \
TAIGA_THEMES= \
TAIGA_DEFAULT_THEME=taiga \
TAIGA_PUBLIC_REGISTER_ENABLED=false \
TAIGA_FEEDBACK_ENABLED=false \
TAIGA_SUPPORT_URL=https://tree.taiga.io/support \
TAIGA_PRIVACY_POLICY_URL= \
TAIGA_TOS_URL= \
TAIGA_GDPR_URL= \
TAIGA_MAX_UPLOAD_SIZE=104857600 \
PUBLIC_REGISTER_ENABLED=false \
FEEDBACK_ENABLED=false \
SUPPORT_URL=https://resources.taiga.io/ \
PRIVACY_POLICY_URL= \
TOS_URL= \
GDPR_URL= \
MAX_UPLOAD_SIZE=104857600 \
TAIGA_CONTRIB_PLUGINS= \
TAIGA_IMPORTERS= \
TAIGA_GRAVATAR=true \
TAIGA_LOGIN_FORM_TYPE=normal \
ENABLE_GITHUB_IMPORTER= \
ENABLE_JIRA_IMPORTER= \
ENABLE_TRELLO_IMPORTER= \
ENABLE_ASANA_IMPORTER= \
ENABLE_GRAVATAR=true \
LOGIN_FORM_TYPE=normal \
TAIGA_BACK_HOST=taigaback \
TAIGA_BACK_PORT=8001 \
TAIGA_EVENTS_ENABLED= \
EVENTS_ENABLED= \
TAIGA_EVENTS_HOST=taigaevents \
TAIGA_EVENTS_PORT=8888

Expand Down
36 changes: 18 additions & 18 deletions images/5.5/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ if [ -n "${TAIGA_FEEDBACK_ENABLED:-$FEEDBACK_ENABLED}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL}"
if [ -n "${TAIGA_SUPPORT_URL:-$SUPPORT_URL}" ]; then
log "Updating Taiga Front support URL: ${TAIGA_SUPPORT_URL:-$SUPPORT_URL}"
sed -i \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL}\",|g" \
-e "s|\"supportUrl\": .*,|\"supportUrl\": \"${TAIGA_SUPPORT_URL:-$SUPPORT_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front support URL"
Expand All @@ -129,10 +129,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL}"
if [ -n "${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}" ]; then
log "Updating Taiga Front privacy policy URL: ${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}"
sed -i \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL}\",|g" \
-e "s|\"privacyPolicyUrl\": .*,|\"privacyPolicyUrl\": \"${TAIGA_PRIVACY_POLICY_URL:-$PRIVACY_POLICY_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front privacy policy URL"
Expand All @@ -141,10 +141,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL}"
if [ -n "${TAIGA_TOS_URL:-$TOS_URL}" ]; then
log "Updating Taiga Front terms of services URL: ${TAIGA_TOS_URL:-$TOS_URL}"
sed -i \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL}\",|g" \
-e "s|\"termsOfServiceUrl\": .*,|\"termsOfServiceUrl\": \"${TAIGA_TOS_URL:-$TOS_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front terms of services URL"
Expand All @@ -153,10 +153,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL}"
if [ -n "${TAIGA_GDPR_URL:-$GDPR_URL}" ]; then
log "Updating Taiga Front GDPR compliance URL: ${TAIGA_GDPR_URL:-$GDPR_URL}"
sed -i \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL}\",|g" \
-e "s|\"GDPRUrl\": .*,|\"GDPRUrl\": \"${TAIGA_GDPR_URL:-$GDPR_URL}\",|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR compliance URL"
Expand All @@ -165,10 +165,10 @@ else
/taiga/conf.json
fi

if [ -n "${TAIGA_MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE}"
if [ -n "${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}" ]; then
log "Updating Taiga Front max upload file size: ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE}"
sed -i \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE},|g" \
-e "s|\"maxUploadFileSize\": .*,|\"maxUploadFileSize\": ${TAIGA_MAX_UPLOAD_SIZE:-$MAX_UPLOAD_SIZE},|g" \
/taiga/conf.json
else
log "Reset Taiga Front GDPR URL"
Expand Down Expand Up @@ -244,10 +244,10 @@ if [ -n "${TAIGA_GRAVATAR:-$ENABLE_GRAVATAR}" ]; then
/taiga/conf.json
fi

if [ -n "${TAIGA_LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE}"
if [ -n "${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}" ]; then
log "Updating Taiga Front login form type: ${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}"
sed -i \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE}\"|g" \
-e "s|\"loginFormType\": \".*\"|\"loginFormType\": \"${TAIGA_LOGIN_FORM_TYPE:-$LOGIN_FORM_TYPE}\"|g" \
/taiga/conf.json
else
log "Reset Taiga Front login form type"
Expand Down
Loading

0 comments on commit e2cebf0

Please sign in to comment.