diff --git a/Dockerfile b/Dockerfile index ce083583..03508573 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,9 +54,9 @@ RUN mkdir /bubble COPY bin/install_packer.sh /usr/local/bin/ RUN /usr/local/bin/install_packer.sh -# Install API jar and env file. Make sure we get the regular jar and not the full jar -COPY bubble-server/target/bubble-server-*-SNAPSHOT.jar /bubble/bubble.jar -COPY docker/bubble.env /bubble/bubble.env +# Install API jar, touch env file. Make sure we get the regular jar and not the full jar +COPY bubble-server/target/bubble-server-*-prod.jar /bubble/bubble.jar +RUN touch /bubble/bubble.env # Setup Bubble service RUN mkdir /etc/service/bubble diff --git a/Dockerfile.slim b/Dockerfile.slim index e68208ed..0438ee5d 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -54,9 +54,9 @@ RUN mkdir /bubble COPY bin/install_packer.sh /usr/local/bin/ #RUN /usr/local/bin/install_packer.sh -# Install env file only -#COPY bubble-server/target/bubble-server-*-SNAPSHOT.jar /bubble/bubble.jar -COPY docker/bubble.env /bubble/bubble.env +# Touch env file only +#COPY bubble-server/target/bubble-server-*-prod.jar /bubble/bubble.jar +RUN touch /bubble/bubble.env # Setup Bubble service RUN mkdir /etc/service/bubble diff --git a/docker/bubble.sh b/bin/bdocker similarity index 99% rename from docker/bubble.sh rename to bin/bdocker index 70aea9c9..e74c0a49 100755 --- a/docker/bubble.sh +++ b/bin/bdocker @@ -4,7 +4,7 @@ # # Build, run or push a docker container for a Bubble launcher. Intended for developer use. # -# bubble.sh [mode] [version] +# bdocker [mode] [version] # # mode : build, run or push # build - build the docker images diff --git a/bubble-server/pom.xml b/bubble-server/pom.xml index 6f002cab..b6ab59d3 100644 --- a/bubble-server/pom.xml +++ b/bubble-server/pom.xml @@ -386,6 +386,7 @@ production + bubble-server-${project.version}-prod.jar src/main/resources diff --git a/docker/bubble.env b/docker/bubble.env deleted file mode 100644 index e69de29b..00000000 diff --git a/docs/docker-launcher.md b/docs/docker-launcher.md index 60eef448..421e8977 100644 --- a/docs/docker-launcher.md +++ b/docs/docker-launcher.md @@ -6,7 +6,7 @@ The Bubble Docker Launcher makes it easy to run a Bubble launcher. If you're running Linux or Mac OS X, try the automatic setup script first. This script will automatically install docker, pull the Bubble docker image and run it. - /bin/bash -c "$(curl -sL https://git.bubblev.org/bubblev/bubble/raw/branch/master/docker/launcher.sh)" + /bin/bash -c "$(curl -sL https://git.bubblev.org/bubblev/bubble/raw/branch/master/launcher.sh)" ## Docker Installation If you're running Windows, or if the above script has problems installing Docker, diff --git a/docker/launcher.sh b/launcher.sh similarity index 98% rename from docker/launcher.sh rename to launcher.sh index fc9fbf47..14d98ece 100644 --- a/docker/launcher.sh +++ b/launcher.sh @@ -4,7 +4,9 @@ # # Run bubble launcher in a docker container. Works on Linux or Mac OS. # -# /bin/bash -c "$(curl -sL https://git.bubblev.org/bubblev/bubble/raw/branch/master/docker/launcher.sh)" +# Intended to be "run from anywhere" like this: +# +# /bin/bash -c "$(curl -sL https://git.bubblev.org/bubblev/bubble/raw/branch/master/launcher.sh)" # # This command will: # - install docker if no "docker" command found