mautic/docker-mautic

Mautic latest docker image is two years old

ramonchu opened this issue · 4 comments

Mautic Version

4.2.x series

PHP version

7.3.27

What browsers are you seeing the problem on?

Not relevant

What happened?

Docker latest image is obsolete.

latest
docker pull mautic/mautic:latest
Last pushed 2 years ago by mautic

How can we reproduce this issue?

Please, confirm navigating to page: https://hub.docker.com/r/mautic/mautic/tags

Relevant log output

No response

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct

When I changed the mautic version from latest to v4 the container keeps restarting.

Here is my docker-compose file.

version: '3.9'

services:

  mauticdb:
    restart: always
    image: percona/percona-server:5.7
    container_name: mauticdb
    volumes:
      - mysql_data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=mypassword
    command:
      --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
    networks:
      - mautic-net

  mautic:
    restart: always
    image: mautic/mautic:v4
    container_name: mautic
    links:
      - mauticdb:mysql
    depends_on:
      - mauticdb
    ports:
      - 4005:80
    volumes:
      - mautic_data:/var/www/html
    environment:
      - MAUTIC_DB_HOST=mauticdb
      - MYSQL_PORT_3306_TCP=3306
      - MAUTIC_DB_USER=root
      - MAUTIC_DB_PASSWORD=mypassword
      - MAUTIC_DB_NAME=mautic
      - MAUTIC_RUN_CRON_JOBS=true
    networks:
      - mautic-net

volumes:
  mysql_data:
    driver: local
  mautic_data:
    driver: local
networks:
  mautic-net:
    driver: bridge

I can reproduce this,

MySQL Database Created

This server is now configured to run Mautic!
The following information will be prefilled into the installer (keep password field empty):
Host Name: mauticdb
Database Name: mautic
Database Username: root
Database Password: Wng@5hQKu%tw5T7vls

========================================================================
Updating existing mautic config

Could not open input file: /var/www/html/bin/console

Then I found this :

https://stackoverflow.com/questions/34016449/could-not-open-input-file-bin-console-error-comes-when-try-to-run-the-symfony

this needs to be ran i think

php app/console server:run

The latest refers also to an old version while we are at v5 as release candidate.

@vinyll @cyberfab007 @ramonchu

It's indeed correct that latest doesn't point to the last build of the Docker images for this repo, see also https://github.com/mautic/docker-mautic/tree/mautic4?tab=readme-ov-file#pulling-mautic-images-from-docker-hub

Regarless of the stale tag, for this repo (and many many others) It's not a good practice to depend on the latest tag for multiple reasons (a quick search on docker latest tag should give some pointers).
You should use at least an image pointing to the major version of Mautic, to ensure you're pulling the correct version.

Please see #238 that was recently merged, and https://hub.docker.com/r/mautic/mautic for the most recent images.

I'll create a separate issue to suggest to remove the latest tag, or have a better definition of where it should point to