Content
Development Environment with Docker
Added by sanji bukai over 6 years ago
Hi everyone,
I saw this tutorial https://www.openproject.org/development/setting-up-development-environment/ but I wanted to be able to run OpenProject within docker..
In fact I’m able to run a fresh OpenProject Docker container using the “official” container with docker pull openproject/community
..
However, I wanted to be able to run container when having the ability to access (and modify) the code..
I thought that simply by cloning the github repository and since it has some Dockerfile
and even docker-compose
file, it would be easy, but I cannot be able to lauch a working container..
Is it possible to get a guide on how to launch a development container?
Or if it is easier, how can I build a Docker container (like the one available in the docker hub), from the cloned repo (and where I made some modifications)?
A simple docker build
is it enough?
Replies (2)
I have tried to follow the same path, but failed to make it work.
Then tried to follow a different approach.
initially started with :
Then copy the APP_PATH content to local folder:
Starting container now taking longer time and it is failing to app loader timeout from Apache --> Passenger --> App start (Load Application).
It suggests: "increase the spawn timeout (currently configured at 90 sec), or find a way to lower the server's resource utilization."
But failed to find how to increase it to meet the need.
Any suggestions or success in making other way work?
For future users who may stumble upon this through google: There now is a way to develop OpenProject using docker.
It's simply a matter of
bin/compose up
now and you're done. Code can be modified locally and will be reloaded automatically.See: https://docs.openproject.org/development/development-environment-docker/