Skip to content

Commit

Permalink
Merge pull request #7 from LibreCodeCoop/fix/default-tag
Browse files Browse the repository at this point in the history
fix: default tag
  • Loading branch information
vitormattos authored Dec 11, 2024
2 parents 4d1b492 + c6117ed commit 2dde2df
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .docker/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ elif [ "$DOCKER_MAUTIC_ROLE" = "mautic_web" ]; then
nvm use default

cd /var/www || { echo "Directory not found /var/www"; exit 1; }
COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:"${MAUTIC_VERSION}" html --no-interaction
COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PROCESS_TIMEOUT=10000 composer create-project mautic/recommended-project:"${MAUTIC_VERSION:-5.x-dev}" html --no-interaction
chown -R www-data: html
cd html || { echo "Directory not found /var/www/html"; exit 1; }
rm -rf var/cache/js
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-mautic-volumes: &mautic-volumes
- ./volumes/cron:/opt/mautic/cron:z

x-mautic-environments: &mautic-environments
MAUTIC_VERSION: 5.x-dev
MAUTIC_VERSION: ${MAUTIC_VERSION:-5.x-dev}
TZ: ${TZ:-CET}
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
Expand All @@ -19,7 +19,7 @@ x-mautic-environments: &mautic-environments

services:
mautic_web:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -36,7 +36,7 @@ services:
retries: 100

mautic_cron:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -49,7 +49,7 @@ services:
condition: service_healthy

mautic_worker:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand Down
1 change: 1 addition & 0 deletions examples/basic/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MAUTIC_VERSION=5.2.0
8 changes: 4 additions & 4 deletions examples/basic/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-mautic-volumes: &mautic-volumes
- ./volumes/cron:/opt/mautic/cron

x-mautic-environments: &mautic-environments
MAUTIC_VERSION: 5.x-dev
MAUTIC_VERSION: ${MAUTIC_VERSION:-5.x-dev}
TZ: ${TZ:-CET}
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
Expand Down Expand Up @@ -40,7 +40,7 @@ services:
retries: 10

mautic_web:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -62,7 +62,7 @@ services:
- 127.0.0.1:80:80

mautic_cron:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -75,7 +75,7 @@ services:
condition: service_healthy

mautic_worker:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand Down
1 change: 1 addition & 0 deletions examples/fpm-nginx/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MAUTIC_VERSION=5.2.0
8 changes: 4 additions & 4 deletions examples/fpm-nginx/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-mautic-volumes: &mautic-volumes
- ./volumes/cron:/opt/mautic/cron:z

x-mautic-environments: &mautic-environments
MAUTIC_VERSION: 5.x-dev
MAUTIC_VERSION: ${MAUTIC_VERSION:-5.x-dev}
TZ: ${TZ:-CET}
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
Expand Down Expand Up @@ -40,7 +40,7 @@ services:
retries: 10

mautic_web:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-fpm}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-fpm}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-fpm}
Expand All @@ -62,7 +62,7 @@ services:
- 127.0.0.1:80:80

mautic_cron:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-fpm}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-fpm}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-fpm}
Expand All @@ -75,7 +75,7 @@ services:
condition: service_healthy

mautic_worker:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-fpm}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-fpm}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-fpm}
Expand Down
1 change: 1 addition & 0 deletions examples/rabbitmq-worker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MAUTIC_VERSION=5.2.0
8 changes: 4 additions & 4 deletions examples/rabbitmq-worker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-mautic-volumes: &mautic-volumes
- ./volumes/cron:/opt/mautic/cron

x-mautic-environments: &mautic-environments
MAUTIC_VERSION: 5.x-dev
MAUTIC_VERSION: ${MAUTIC_VERSION:-5.x-dev}
TZ: ${TZ:-CET}
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
Expand Down Expand Up @@ -40,7 +40,7 @@ services:
retries: 10

mautic_web:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -63,7 +63,7 @@ services:
- 127.0.0.1:80:80

mautic_cron:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand All @@ -77,7 +77,7 @@ services:
condition: service_healthy

mautic_worker:
image: ghcr.io/librecodecoop/mautic:${IMAGE_TYPE:-apache}
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: ../../.docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
Expand Down

0 comments on commit 2dde2df

Please sign in to comment.