Skip to content

Commit 5d3a952

Browse files
committed
Remote Development Mode docker permissions
1 parent 20d3c9d commit 5d3a952

File tree

7 files changed

+23
-3
lines changed

7 files changed

+23
-3
lines changed

docs/src/main/asciidoc/gradle-tooling.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Before you start Quarkus on the remote host set the environment variable `QUARKU
294294
on bare metal you can set it via the `export QUARKUS_LAUNCH_DEVMODE=true` command and then run the application with the proper `java -jar ...` command to run the application.
295295

296296
If you plan on running the application via Docker, then you'll need to add `-e QUARKUS_LAUNCH_DEVMODE=true` to the `docker run` command.
297-
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`.
297+
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`. You will also need to give the application the rights to update the deployment resources by adding `RUN chmod o+rw -R /deployments` after the `COPY` commands into your docker file.
298298

299299

300300
NOTE: The remote side does not need to include Maven or any other development tools. The normal `fast-jar` Dockerfile

docs/src/main/asciidoc/maven-tooling.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ include::{includes}/devtools/build.adoc[]
238238
Before you start Quarkus on the remote host set the environment variable `QUARKUS_LAUNCH_DEVMODE=true`. If you are
239239
on bare metal you can set it via the `export QUARKUS_LAUNCH_DEVMODE=true` command and then run the application with the proper `java -jar ...` command to run the application.
240240

241-
If you plan on running the application via Docker, then you'll need to add `-e QUARKUS_LAUNCH_DEVMODE=true` to the `docker run` command.
242-
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`.
241+
If you plan on running the application via Docker, then you'll need to add `-e QUARKUS_LAUNCH_DEVMODE=true` to the `docker run` command.
242+
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`. You will also need to give the application the rights to update the deployment resources by adding `RUN chmod o+rw -R /deployments` after the `COPY` commands into your docker file.
243243

244244
NOTE: The remote side does not need to include Maven or any other development tools. The normal `fast-jar` Dockerfile
245245
that is generated with a new Quarkus application is all you need. If you are using bare metal launch the Quarkus runner

extensions/container-image/container-image-docker-common/deployment/src/test/resources/ubi8-openjdk-17-runtime

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
1111
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
1212
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
1313

14+
# Remote Development Mode
15+
ENV QUARKUS_LAUNCH_DEVMODE=true
16+
RUN chmod o+rw -R /deployments
17+
1418
EXPOSE 8080
1519
USER 185
1620

extensions/container-image/container-image-docker-common/deployment/src/test/resources/ubi8-openjdk-21-runtime

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
1212
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
1313
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
1414

15+
# Remote Development Mode
16+
ENV QUARKUS_LAUNCH_DEVMODE=true
17+
RUN chmod o+rw -R /deployments
18+
1519
EXPOSE 8080
1620
USER 185
1721

extensions/container-image/container-image-docker-common/deployment/src/test/resources/ubi9-openjdk-17-runtime

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
1111
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
1212
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
1313

14+
# Remote Development Mode
15+
ENV QUARKUS_LAUNCH_DEVMODE=true
16+
RUN chmod o+rw -R /deployments
17+
1418
EXPOSE 8080
1519
USER 185
1620

extensions/container-image/container-image-docker-common/deployment/src/test/resources/ubi9-openjdk-21-runtime

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
1212
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
1313
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
1414

15+
# Remote Development Mode
16+
ENV QUARKUS_LAUNCH_DEVMODE=true
17+
RUN chmod o+rw -R /deployments
18+
1519
EXPOSE 8080
1620
USER 185
1721

independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ ENV LANGUAGE='en_US:en'
8383

8484
{#insert copy /}
8585

86+
# Remote Development Mode
87+
ENV QUARKUS_LAUNCH_DEVMODE=true
88+
RUN chmod o+rw -R /deployments
89+
8690
EXPOSE 8080
8791
USER 185
8892
{#if java.version == '11'}

0 commit comments

Comments
 (0)