fjudith / docker-squash-tm Goto Github PK
View Code? Open in Web Editor NEWDockerized Squash-TM based on Tomcat:8-jre7 official image with LDAP and Reverse-Proxy support.
License: GNU General Public License v3.0
Dockerized Squash-TM based on Tomcat:8-jre7 official image with LDAP and Reverse-Proxy support.
License: GNU General Public License v3.0
hello,
i ran squash with :
-e LDAP_ENABLED=true
-e LDAP_PROVIDER="ldap"
-e LDAP_URL=ldap://x.x.x.x:389
-e LDAP_SECURITY_MANAGERDN="uid=usquash,ou=People,dc=exemple,dc=local"
-e LDAP_SECURITY_MANAGERPASSWORD="passwd"
-e LDAP_FETCH_ATTRIBUTES=true
-e LDAP_USER_DNPATTERNS="example=uid={0},ou=people" \
but i got :
[17-04-24 11:37:28.911] SquashTM - 95 ERROR [localhost-startStop-1] [] --- org.springframework.boot.SpringApplication: Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdministrationController': Unsatisfied dependency expressed through field 'authenticationProviderContext': Error creating bean with name 'authenticationProviderContext': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Features for authentication provider named 'ldap' not available; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationProviderContext': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Features for authentication provider named 'ldap' not available
Hi,
with a MySQL configuration, I have this trace:
02-Feb-2018 15:03:06.360 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/squash-tm]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:629)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:552)
at java.lang.Long.valueOf(Long.java:803)
at org.squashtest.tm.web.internal.fileupload.SquashMultipartResolver.updateConfig(SquashMultipartResolver.java:63)
at org.squashtest.tm.web.internal.fileupload.MultipartResolverDispatcher.onContextReady(MultipartResolverDispatcher.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:226)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:143)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:105)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:150)
at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:130)
at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
02-Feb-2018 15:03:06.361 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor [/usr/local/tomcat/conf/Catalina/localhost/squash-tm.xml]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/squash-tm]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:756)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:629)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
init of postgresql failed because the entrypoint's missing some parameters
i had to add the $DB_PORT
psql postgresql://$DB_USERNAME:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_NAME -f ../database-scripts/postgresql-full-install-version-$SQUASH_TM_VERSION.RELEASE.sql
to make the db working
and the docker run working with this parameters :
docker run --name norsys-squash-squash-tm -e DB_TYPE=postgresql -e DB_HOST=myhost -e DB_PORT=32316 -e DB_USERNAME=squashtm -e DB_PASSWORD=Ch4ng3M3 -p 0.0.0.0:32317:8080 fjudith/squash-tm:1.17.0
After running
docker run --name='squash-tm' -it --rm -p 8080:8080 fjudith/squash-tm
I get the following output:
Unable to find image 'fjudith/squash-tm:latest' locally
latest: Pulling from fjudith/squash-tm
cd8eada9c7bb: Pull complete
c2677faec825: Pull complete
fcce419a96b1: Pull complete
00d7fcb5828a: Pull complete
f8c860563d60: Pull complete
46f754145d12: Pull complete
bff15a87739e: Pull complete
6b5d3f0336b9: Pull complete
1d858972966c: Pull complete
4f2dc2e148d0: Pull complete
db18a2f7d48d: Pull complete
e8f5a1ceed71: Pull complete
4c40795c7376: Pull complete
091a19ddb429: Pull complete
0253ac13b898: Pull complete
56d988961c7a: Pull complete
5eafb752400e: Pull complete
0ddac17737cf: Pull complete
e6ed809aee79: Pull complete
Digest: sha256:be78ee0c364b7d4d0c42443b17c26aacc6368e95ca55bd4f42eac364bb152db0
Status: Downloaded newer image for fjudith/squash-tm:latest
Using MysQL
mysql: forward host lookup failed: Unknown host
waiting for mysql
mysql: forward host lookup failed: Unknown host
waiting for mysql
mysql: forward host lookup failed: Unknown host
waiting for mysql
And it just keeps repeating and logging the mysql: forward host lookup failed: Unknown host waiting for mysql
message
Any ideas?
Hello, i don't get why when i try to use your docker-compose exemple, and go to ip:port, tomcat send me a 404 not found error...
but if i do "docker run..." all work just fine.
Xavier
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.