Docker from source code stuck on Configuring static files
Summary
Hi,
As the official docker image uses the Debian package, and I want to customize the source, so I need to set up a docker image that runs from source code.
I use the attached Docker file. flectra-development.tar.gz
The built docker image returns an empty response for requests, and only shows the following message for the first request and then nothing happened:
flectra.http: HTTP Configuring static files
Also, I can run Flectra from source using the same commands from Dockerfile, in a ubuntu 20.04 virtual machine.
My Docker Host running CentOS 7 1908
, Docker version 19.03.11, build 42e35e61f3
, docker-compose version 1.25.5, build 8a1c60f6
.
Steps to reproduce
-
Download and extract flectra-development.tar.gz.
tar -xzvf flectra-development.tar.gz cd flectra-development
-
Clone Flectra source code into ``:
git clone https://gitlab.com/flectra-hq/flectra.git flectra-repo
-
Build the Docker image
docker-compose build
-
Run
docker-compose up
-
Send a request to the server using a web browser or command line
curl -v http://127.0.0.1:7073 curl -v http://127.0.0.1:7073/web
What is the current bug behavior?
It returns an empty response and prints flectra.http: HTTP Configuring static files
in the logs for the first request
What is the expected correct behavior?
It should return <html><head><script>window.location = '/web' + location.hash;</script></head></html>
for http://127.0.0.1:7073
.
official image output:
or shows setup page for http://127.0.0.1:7073/web
Relevant logs and/or screenshots
web_1 | 2020-06-13 07:36:07,366 1 INFO ? flectra: Flectra version 1.7
web_1 | 2020-06-13 07:36:07,366 1 INFO ? flectra: Using configuration file at /code/.flectrarc
web_1 | 2020-06-13 07:36:07,366 1 INFO ? flectra: addons paths: ['/code/flectra/addons', '/code/flectra/flectra/addons', '/mnt/extra-addons']
web_1 | 2020-06-13 07:36:07,366 1 INFO ? flectra: database: flectra@db:5432
web_1 | 2020-06-13 07:36:07,438 1 INFO ? flectra.service.server: HTTP service (werkzeug) running on 27e92f79bbf5:7073
web_1 | 2020-06-13 07:36:07,662 1 INFO ? flectra.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
web_1 | 2020-06-13 07:36:27,288 1 INFO ? flectra.http: HTTP Configuring static files