-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot start docker container #48
Comments
same here...2 years later |
Perhaps there is a mistake in docker-entrypoint.sh.
I had to change it to the following
The string "database" must be changed to $BACKDROP_DB_HOST. |
Same issue... using the following config (for Docker Swarm with Traefik):
|
Still not working the container. |
This does not work with any configuration, it is obviously broken. I see this issue has been open for a long time with no response or changes. I assume this container project has been abandoned. Too bad, I thought backdrop might be usable this way, as Drupal is now a hopeless mess, I wanted to move to this fork. |
@Wylbur Are you still maintaining this repo? If not maybe we can draft somebody in Zulip to take it on. |
@laryn Thanks for the heads up, I will dig into this! |
This looks to be completely broken, maybe it should be marked as such so people don't waste time trying to use it. Here is my general observation after trying to get it to work. I think it has a basic design flaw, it forces you to set your database info, e.g. Database, Host, User and then tries to run an existing site. Unfortunately this is broken and does not work. You should be able to start it up with a normal web bootstrap just like on a VM or physical machine. You would get the normal setup.php and then enter your info. You could then set up a site and save the results so that you can start it up with just docker or docker/compose if you want to move it, etc. This is the simple use case for a simple web site and makes for a really easy config, etc. I was able to make an image using the PHP image and just some simple compose to configure PHP and load Backdrop. I noticed that installing Backdrop via Git cause the same problems as you have here, it knows it's Docker and messes up. Installing from an archive works just fine. I'm just starting to really learn Docker so I'm still at hacker level so I can't really express the best way forward. Hope this helps. |
@jungle-guy I assume that you have seen the other threads on this topic? #20 (comment) I cannot attest that this problem is completely sovled, but a few custom tweaks to .env and entrypoints and this seems to be working acceptably for dev environments. I have yet to take any of this to production at this time, but I do run many other websites on docker in production. |
same here another 2 years later |
As a temporary solution. to connect other mysql server set docker CMD tag: apache tag: fpm by the way: |
Fixed in 1.28 backdrop/backdrop-issues#6499 but for some reason the official Docker images stopped at 1.26 lol |
This is odd, modified the Dockerfile to use release 1.29.0 instead but I am still seeing the same error. |
The docker image will need a champion volunteer to keep it updated. Any takers? |
I fixed it, created a pull request #69 and uploaded it to docker hub in both major architectures: Just a word of caution that you may still see error screen, in which case, just try to refresh the browser. For the So as far as I can see, you need to use a compose configuration that looks like this (will add this to the pull request): services:
backdrop:
image: orwa84/backdrop
ports:
- 8080:80
environment:
BACKDROP_DB_HOST: db
BACKDROP_DB_USER: backdrop
BACKDROP_DB_PASSWORD: backdrop
db:
image: mysql
environment:
MYSQL_USER: backdrop
MYSQL_PASSWORD: backdrop
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: backdrop |
Updates have been pushed, marking this as resolved. |
when I try to start a docker container, using the latest pull from dockerhub for backdrop:latest, being sure to point ENV variables to the proper host, port, db, username, and password, to an existing empty db:
Exception: The configuration directory in settings.php is specified as './files/config_a1614e81308b9e6b86be181ef0914335/active', but this directory is either empty or missing crucial files. Check that the $config_directories variable is correct in settings.php. in _backdrop_bootstrap_configuration() (line 3011 of /var/www/html/core/includes/bootstrap.inc).
The text was updated successfully, but these errors were encountered: