i try to run confluence plugin inside docker.
my docker file (part of it) look like this:
(importing jdk, installing atlassian plugin sdk, ...)
.
.
.
EXPOSE 1990
ENV JAVA_HOME /opt/jdk
ENV PATH ${PATH}:/opt/atlassian-plugin-sdk-${ATLS_VERSION}/bin/:/opt/jdk/bin/
WORKDIR /opt/atlas/
VOLUME ["/opt/atlas/"]
RUN atlas-clean
RUN atlas-run
When i run this container / image, it is shutted down right after that (after 1 second).
Expected behavior:
- container started and running
- confluence with our plugin accessible on localhost:1990
thank you very much
So finally solved it by combination of advice from @Edwin Kyalangalilwaand running container with -it flag.
So:
- changing
RUN atlas-run
to
CMD atlas-run
and then -> docker run -it -p 1990:1990 image_name
Thank you
Yes sorry. This issue occure only in docker. On local machine it works as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Petr Bláha,
When run locally, do you see your app running on 1990?
You can try running the container as a daemon.
For example:
docker run -d -p 1990:1990 plugin:image
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well app is running on desired port, but for just like second. It is immediately exited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Inside the Docker or locally on your machine?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Change
RUN atlas-run
to
CMD atlas-run
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.