Hello World scenario fixed #67
oliverbarnes
started this conversation in
Show and tell
Replies: 2 comments
-
Update: the new They will be mirrored on Docker Hub but there's some configuration pending in order to do so. |
Beta Was this translation helpful? Give feedback.
0 replies
-
#78 now adds a docker-compose "Hello World" as well: git clone [email protected]:decidim/docker.git decidim-docker
cd decidim-docker
docker-compose up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As it was discussed a while back, the decidim/decidim:latest image up on Docker Hub isn't working with the proposed "Hello World" docker-compose flow, because the image is an app generator, and not an app instance. The details are discussed thoroughly on that thread, so I'll skip them.
With the recent changes that were merged (#50), the generator image is now called
decidim-generator
, to avoid this confusion, and thedecidim
image is now based on Dockerfile-deploy. Dockerfile-deploy itself was updated to fix the following error:The update and fix was to generate the Decidim app within the build process, and remove the
ONBUILD
commands. I'm now able to get the app up and running smoothly locally. Here are the steps with an existing local postgres database, without using docker-compose so it's transparent what's going on. I'm not posting the output, but db setup, migrations and seeding all run smoothly.Notes:
host.docker.internal
is just how Docker for mac accesses localhost on the host machine, this wouldn't be needed on linux.To sum it up
The Hello World scenario is fixed, but with a different dev experience. We'll need to update documentation, and decide we want to use docker-compose to also offer to spin up the db for the dev user.
Beta Was this translation helpful? Give feedback.
All reactions