Skip to content

Commit

Permalink
Remote Development Mode docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
vsevel committed Jun 6, 2024
1 parent 20d3c9d commit 2a47b97
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/gradle-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Before you start Quarkus on the remote host set the environment variable `QUARKU
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.

Check warning on line 294 in docs/src/main/asciidoc/gradle-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term. Raw Output: {"message": "[Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term.", "location": {"path": "docs/src/main/asciidoc/gradle-tooling.adoc", "range": {"start": {"line": 294, "column": 152}}}, "severity": "WARNING"}

Check warning on line 295 in docs/src/main/asciidoc/gradle-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/gradle-tooling.adoc", "range": {"start": {"line": 295, "column": 1}}}, "severity": "INFO"}
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.
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`.
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.

Check warning on line 297 in docs/src/main/asciidoc/gradle-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/gradle-tooling.adoc", "range": {"start": {"line": 297, "column": 78}}}, "severity": "INFO"}

Check warning on line 297 in docs/src/main/asciidoc/gradle-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/gradle-tooling.adoc", "range": {"start": {"line": 297, "column": 278}}}, "severity": "INFO"}


NOTE: The remote side does not need to include Maven or any other development tools. The normal `fast-jar` Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/maven-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ include::{includes}/devtools/build.adoc[]
Before you start Quarkus on the remote host set the environment variable `QUARKUS_LAUNCH_DEVMODE=true`. If you are
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.

Check warning on line 239 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsSuggestions] Depending on the context, consider using 'bare metal (noun)' or 'bare-metal (adjective)' rather than 'bare metal'. Raw Output: {"message": "[Quarkus.TermsSuggestions] Depending on the context, consider using 'bare metal (noun)' or 'bare-metal (adjective)' rather than 'bare metal'.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 239, "column": 4}}}, "severity": "INFO"}

Check warning on line 239 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term. Raw Output: {"message": "[Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 239, "column": 30}}}, "severity": "WARNING"}

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.
When the application starts you should now see the following line in the logs: `Profile dev activated. Live Coding activated`.
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.

Check warning on line 241 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term. Raw Output: {"message": "[Quarkus.TermsWarnings] Consider using 'through', 'by', 'from', 'on', or 'by using' rather than 'via' unless updating existing content that uses the term.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 241, "column": 40}}}, "severity": "WARNING"}

Check warning on line 241 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 241, "column": 64}}}, "severity": "INFO"}
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.

Check warning on line 242 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 242, "column": 142}}}, "severity": "INFO"}

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

Check warning on line 244 in docs/src/main/asciidoc/maven-tooling.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'. Raw Output: {"message": "[Quarkus.Fluff] Depending on the context, consider using 'Rewrite the sentence, or use 'must', instead of' rather than 'need to'.", "location": {"path": "docs/src/main/asciidoc/maven-tooling.adoc", "range": {"start": {"line": 244, "column": 32}}}, "severity": "INFO"}
that is generated with a new Quarkus application is all you need. If you are using bare metal launch the Quarkus runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

# Remote Development Mode; do not uncomment if building prod container
# ENV QUARKUS_LAUNCH_DEVMODE=true
# RUN chmod o+rw -R /deployments

EXPOSE 8080
USER 185

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

# Remote Development Mode; do not uncomment if building prod container
# ENV QUARKUS_LAUNCH_DEVMODE=true
# RUN chmod o+rw -R /deployments

EXPOSE 8080
USER 185

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

# Remote Development Mode; do not uncomment if building prod container
# ENV QUARKUS_LAUNCH_DEVMODE=true
# RUN chmod o+rw -R /deployments

EXPOSE 8080
USER 185

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY --chown=185 target/quarkus-app/*.jar /deployments/
COPY --chown=185 target/quarkus-app/app/ /deployments/app/
COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/

# Remote Development Mode; do not uncomment if building prod container
# ENV QUARKUS_LAUNCH_DEVMODE=true
# RUN chmod o+rw -R /deployments

EXPOSE 8080
USER 185

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ ENV LANGUAGE='en_US:en'

{#insert copy /}

# Remote Development Mode; do not uncomment if building prod container
# ENV QUARKUS_LAUNCH_DEVMODE=true
# RUN chmod o+rw -R /deployments

EXPOSE 8080
USER 185
{#if java.version == '11'}
Expand Down

0 comments on commit 2a47b97

Please sign in to comment.