andrewwhitehead / schemaspy-docker

Quickly run SchemaSpy on a database and serve the results
Apache License 2.0
10 stars 9 forks source link

Fix failing to start httpd #3

Closed IanVaughan closed 5 years ago

IanVaughan commented 6 years ago

When I attempted to use schemaspy as per the README, it failed to boot with the error:

start.sh: line 74: httpd: not found

I followed the steps:

docker build -t schemaspy https://github.com/cywolf/schemaspy-docker.git

docker run -ti --rm --name schemaspy \
        -p 8080:8080 \
        -e DATABASE_TYPE=pgsql \
        -e DATABASE_HOST=postgres \
        -e DATABASE_NAME=development \
        -e DATABASE_USER=username \
        --link postgres \
        schemaspy

To solve this I tried adding apache2 package but did not solve it, so instead opted to run a PHP server instead.

Now outputs this

...
INFO  - Started Main in 72.722 seconds (JVM running for 73.271)
Starting webserver on port 8080
PHP 5.6.37 Development Server started at Thu Aug 30 13:41:12 2018
Listening on http://0.0.0.0:8080
Document root is /app/output
Press Ctrl-C to quit.

And SchemaSpy is viewable via http://localhost:8080/

Closes #2

IanVaughan commented 6 years ago

@cywolf WDYT?

mcicolella commented 5 years ago

Hi @IanVaughan I'm using your updated Docker image at https://github.com/quiqupltd/schemaspy-docker but the server doesn't start because PHP5 is missing Starting webserver on port 8080 start.sh: line 73: php5: not found

andrewwhitehead commented 5 years ago

Hiya, thanks for the contribution. It looks like httpd support moved to the busybox-extras package, so I've added that now among other changes.