[FOLIO-346] Add Dockerfiles for each module in the mod-auth repo Created: 05/Oct/16  Updated: 12/Nov/18  Resolved: 27/Oct/16

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P3
Reporter: John Malconian Assignee: John Malconian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 6 hours
Original estimate: Not Specified

Sprint:

 Description   

Each module in mod-auth should have it's own Dockerfile. The existing top-level Dockerfile should be removed as it appears no longer relevant.



 Comments   
Comment by John Malconian [ 05/Oct/16 ]

Getting the following error starting up mod-authentication in a Docker container:

[malc@jenkins-aws authentication_module]$ docker run -it --rm mod-authentication
Oct 05, 2016 8:39:52 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
Oct 05, 2016 8:39:52 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Exception in monitor thread while connecting to server localhost:27017
com.mongodb.MongoSocketOpenException: Exception opening socket
	at com.mongodb.connection.AsynchronousSocketChannelStream$OpenCompletionHandler.failed(AsynchronousSocketChannelStream.java:253)
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:128)
	at sun.nio.ch.Invoker$2.run(Invoker.java:218)
	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelImpl.java:252)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:198)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)
	at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)
	... 1 more

Oct 05, 2016 8:39:53 PM io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer
INFO: Succeeded in deploying verticle

Seems like the module is expecting a local instance of Mongo to be running. Are there any runtime parameters for these modules?

Comment by John Malconian [ 27/Oct/16 ]

mod-auth modules officially added to Jenkins for regular builds. New Dockerfiles added for each mod-auth module, module images are built and pushed to Docker Hub. Old Dockerfile removed.

https://hub.docker.com/r/folioci/

Generated at Thu Feb 08 23:05:04 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.