WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
171 stars 192 forks source link

Unable to start server automatically when the container starts. #129

Closed shareauto closed 5 years ago

shareauto commented 5 years ago

The final step in my Docker file is

CMD ["/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1"]

It's not kicking off when I run the container. I have to log in to the container and have to start the server manually.

Is there anything I am missing?

arturdzm commented 5 years ago

You should user /work/start_server script, it does some extra steps such piping output to docker logs

shareauto commented 5 years ago

@arturdzm I did use "USER was" but even though it not kicking off the server. And I did change the CMD as

CMD /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1

but no luck.... :(

arturdzm commented 5 years ago

Here very simple docker file, no need to override CMD, unless you are changing to completely different script

FROM ibmcom/websphere-traditional
COPY hello.ear /work/config/app.ear
COPY script.py /work/config/script.py
COPY was-config.props /work/config/was-config.props
RUN /work/configure.sh
arturdzm commented 5 years ago

Closing for now, re-open if needed