V8-archive: Deploying without running the installer

Created on 7 Jan 2020  路  4Comments  路  Source: directus/v8-archive

Hi, I'm trying to deploy the new v8 images under CapRover, which lets you quickly deploy docker containers. I was able to get the older versions of Directus working by modifying the sample docker compose files and 7.2 is available as a one click app for CapRover.

It looks like the v8 images require you to run installer scripts, though. I got v8 to deploy without errors under CapRover, but I have no way to run the docker compose install command to actually get it running. Is there a way to do this setup in the docker compose file itself? Or another way to do the install?

docker

Most helpful comment

still haven't implemented it yet, but it's on my todo list. I'll check if there's enough time to get it done this week.

as for workarounds:

  • if you have access to the database, you can run the container locally pointing to the database
  • if you can restore the database, you can install it locally, make a backup and restore on the remote database
  • if you can bash into the container, that should work too but be careful to point to the correct script

All 4 comments

I ended up deciding to not implement "auto installations" after having some trouble with directus 7 images - it's hard to detect when to run install or not.

Anyways, I'll add a commandline flag for auto installation to cover those cases - at least is user-controlled

I would also be very lucky about this feature. Is there a workaround at the moment? Something like bashing into the running container and run the installer from there?

still haven't implemented it yet, but it's on my todo list. I'll check if there's enough time to get it done this week.

as for workarounds:

  • if you have access to the database, you can run the container locally pointing to the database
  • if you can restore the database, you can install it locally, make a backup and restore on the remote database
  • if you can bash into the container, that should work too but be careful to point to the correct script

Closing this as it's been updated in Directus which was my use case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Varulv1997 picture Varulv1997  路  3Comments

metalmarco picture metalmarco  路  3Comments

24js picture 24js  路  3Comments

Nitwel picture Nitwel  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments