goryn-clade / pathfinder-containers

A Docker-compose solution for Pathfinder mapping tool using Traefik
Other
62 stars 66 forks source link

[BUG] Update docker base images | alpine/mariadb images are eol/very old #35

Open fleischsalatinspace opened 2 years ago

fleischsalatinspace commented 2 years ago

The used alpine base image is end of life, so Trivy scans fail.

2022-01-06T04:29:47.307Z    WARN    This OS version is no longer supported by the distribution: alpine 3.8.2
2022-01-06T04:29:47.307Z    WARN    The vulnerability detection may be insufficient because security updates are not provided

Began working on this in https://github.com/fleischsalatinspace/pathfinder-containers/pull/9

fleischsalatinspace commented 2 years ago

Used mariadb image is 2 years old https://github.com/bianjp/docker-mariadb-alpine . https://hub.docker.com/r/bianjp/mariadb-alpine. We should switch to official mariadb image

fleischsalatinspace commented 2 years ago

Used mariadb image is 2 years old https://github.com/bianjp/docker-mariadb-alpine . https://hub.docker.com/r/bianjp/mariadb-alpine. We should switch to official mariadb image

https://github.com/goryn-clade/pathfinder-containers/issues/27#issuecomment-967751399

samoneilll commented 2 years ago

@fleischsalatinspace I tried updating to the official mariadb:latest today and ran into a few problems:

  1. Maria was unable to load the db from the volume due to some combatability issues between versions. We could try to solve this, but it seems like dumping and restoring the db would be safer
  2. The official image based on ubunut:focal does not have zip installed, so our normal setup process of unzipping the sql dump with exec won't work without first installing zip somehow.

Otherwise, it seems to be working just fine, php mysql adapter has no problems using latest official image.