andrewwhitehead / schemaspy-docker

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

Error on the build step #7

Open colinkingswood opened 1 year ago

colinkingswood commented 1 year ago

Running the command to build the image, I get an error.

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

wget: bad address 'central.maven.org'
The command '/bin/sh -c apk --no-cache add      busybox-extras      graphviz ttf-ubuntu-font-family java-postgresql-jdbc &&     mkdir lib &&     wget -O lib/schemaspy.jar      https://github.com/schemaspy/schemaspy/releases/download/v${SCHEMA_SPY_VERSION}/schemaspy-${SCHEMA_SPY_VERSION}.jar &&     wget -O lib/mysql-connector-java.jar         http://central.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_VERSION}/mysql-connector-java-${MYSQL_VERSION}.jar &&     wget -O lib/sqlite-jdbc.jar        http://central.maven.org/maven2/org/xerial/sqlite-jdbc/${SQL_LITE_VERSION}/sqlite-jdbc-${SQL_LITE_VERSION}.jar' returned a non-zero code: 1
InfiniteCheese commented 2 months ago

I was able to fix it by replacing the "http://central.maven.org" with "https://repo.maven.apache.org" in the Dockerfile. https://stackoverflow.com/questions/61483057/how-to-resolve-central-maven-org-unknown-host-central-maven-org-in-maven-projec