sogis / oereb-web-service-docker

MIT License
0 stars 1 forks source link

docker image does not work #2

Closed edigonzales closed 5 years ago

edigonzales commented 5 years ago

docker run sogis/oereb-web-service

Unable to find image 'sogis/oereb-web-service:latest' locally
latest: Pulling from sogis/oereb-web-service
5b7339215d1d: Pull complete
14ca88e9f672: Pull complete
a31c3b1caad4: Pull complete
b054a26005b7: Pull complete
25f18346d76c: Pull complete
c7ba1f0aed69: Pull complete
a3dd7f69db79: Pull complete
3f8634b9e6f6: Pull complete
7d9799cbec74: Pull complete
Digest: sha256:6f2536845e314e110e1ae354b268639925d89cae5eba4a0e0f112713d70628fa
Status: Downloaded newer image for sogis/oereb-web-service:latest
15:05:47.457 [background-preinit] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider
15:05:47.461 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.16.Final
15:05:47.469 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
15:05:47.476 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration.
15:05:47.477 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via TCCL
15:05:47.478 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via Hibernate Validator's class loader
15:05:47.479 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only.
15:05:47.612 [background-preinit] DEBUG org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator - Loaded expression factory via original TCCL
15:05:47.616 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator as ValidatorFactory-scoped message interpolator.
15:05:47.616 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.resolver.TraverseAllTraversableResolver as ValidatorFactory-scoped traversable resolver.
15:05:47.616 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.util.ExecutableParameterNameProvider as ValidatorFactory-scoped parameter name provider.
15:05:47.616 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.DefaultClockProvider as ValidatorFactory-scoped clock provider.
15:05:47.617 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory as ValidatorFactory-scoped script evaluator factory.
15:05:48.500 [main] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: unknown
15:05:48.505 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.IllegalArgumentException: Invalid argument syntax: --spring.datasource.url=
    at org.springframework.core.env.SimpleCommandLineArgsParser.parse(SimpleCommandLineArgsParser.java:75)
    at org.springframework.core.env.SimpleCommandLinePropertySource.<init>(SimpleCommandLinePropertySource.java:90)
    at org.springframework.boot.DefaultApplicationArguments$Source.<init>(DefaultApplicationArguments.java:76)
    at org.springframework.boot.DefaultApplicationArguments.<init>(DefaultApplicationArguments.java:42)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
    at ch.ehi.oereb.webservice.Application.main(Application.java:10)
edigonzales commented 5 years ago

Wenn ich im build/dist Ordner java -jar oereb-web-service-docker.jar starte, funktionert es, bis zum Zeitpunkt, wo wegen fehlender dbUrl gemeckert wird.

edigonzales commented 5 years ago

Ok, wenn man die ENV-Variablen setzt, funktioniert es. Soweit ist auch die Fehlermeldung nachvollziehbar. Ohne Wert aus der fehlenden ENV-Variable ist die Syntax der Startparameter falsch, die im Image eingebrannt sind.