Giter Club home page Giter Club logo

Comments (9)

BitForger avatar BitForger commented on August 27, 2024 1

I believe the best solution is a script to check if the database exists with tables and if so then don't try to re-init everything.

from shlink-docker-image.

acelaya avatar acelaya commented on August 27, 2024 1

@BitForger both latest and v1.15.1 are now being rebuilt with the fix applied. They should be ready in 30min-1hour (probably less, but docker hub is slow building images, so just in case).

from shlink-docker-image.

acelaya avatar acelaya commented on August 27, 2024

Yep, you are probably right.

The operations run in the entry point should be more granular, in order to avoid trying to recreate the database when it already exists.

I will try to provide a fix.

from shlink-docker-image.

BitForger avatar BitForger commented on August 27, 2024

Yep, you are probably right.

The operations run in the entry point should be more granular, in order to avoid trying to recreate the database when it already exists.

I will try to provide a fix.

I should note that it seems to be an issue because I'm using an RDS running MariaDB. I tried to replicate it locally and it seems fine starting up and stopping using the local SQLite implementation.

from shlink-docker-image.

acelaya avatar acelaya commented on August 27, 2024

Yes, the problem will happen only when using an external database, because when using the sqlite one, a new database is created every time you create a container, so it doesn't fail.

If you try to use an existing database with a new container, you will see the error.

from shlink-docker-image.

acelaya avatar acelaya commented on August 27, 2024

Yep, that's what I had in mind :)

from shlink-docker-image.

BitForger avatar BitForger commented on August 27, 2024

I'm writing something in PHP right now, I'll send it over when I'm done.

from shlink-docker-image.

BitForger avatar BitForger commented on August 27, 2024

I'm seeing another issue when trying to redeploy using my own copies.. if it happens in those builds i'll open another ticket.

from shlink-docker-image.

acelaya avatar acelaya commented on August 27, 2024

I have just checked that both builds have finished successfully. You should be able to pull both latest and v1.15.1 with the new entry point.

from shlink-docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.