WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
170 stars 190 forks source link

using image for a java build server #249

Closed r1ddl3m37h15 closed 2 years ago

r1ddl3m37h15 commented 2 years ago

I'd like to use the image to run ANT builds (also see issue #188), especially for EJB and wsdeploy. Anyway, I don't need the server to start. Is there a way to prevent that?

How i'm planning on doing it now: docker run --rm -v "%CD%":/usr/src/myapp -w /usr/src/myapp ibmcom/websphere-traditional:9.0.5.8-ubi8-amd64 ws_ant.sh %*

Is there something that i can add to that command that would prevent the server from starting?

r1ddl3m37h15 commented 2 years ago

Nevermind. I figured it out.

I created an empty file .\work-config\001-was-config.props

and changed the command to docker run --rm -v "%CD%":/usr/src/myapp -v "%CD%\work-config":/work/config -w /usr/src/myapp ibmcom/websphere-traditional:9.0.5.8-ubi8-amd64 ws_ant.sh %*

I have a little refactoring to do but I'm on my way.