Skip to content

Commit 7c7a6b9

Browse files
committed
clarify code command
1 parent 2a7609f commit 7c7a6b9

File tree

1 file changed

+7
-3
lines changed
  • documentation/modules/ROOT/pages

1 file changed

+7
-3
lines changed

documentation/modules/ROOT/pages/env.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
Environment variables keep your app secure, flexible and organized. Let's take a look at how to pass environment variables to containers.
44

5-
== Using an environment variable with your container
5+
== Changing your application to use an environment variable
66

7-
Let's edit the Java application you created using Quarkus:
7+
Edit the _Java Quarkus_ application you created using _Visual Studio Code_ (alternatively you can use your preferred text editor):
88

99
[.console-input]
1010
[source,bash,subs="+macros,+attributes"]
1111
----
1212
code .
1313
----
1414

15-
Now edit the `GreetingResource.java` class like this:
15+
Open the `GreetingResource.java` class and change it like this:
1616

1717
[.console-input]
1818
[source,java]
@@ -55,6 +55,10 @@ Now, back to terminal, package your project:
5555
mvn package -DskipTests=true
5656
----
5757

58+
== Building the container image
59+
60+
To build an image with an environment variable, you need to add the `ENV` directive to the Containerfile.
61+
5862
Rebuild our image to get the new version of the application:
5963

6064
[.console-input]

0 commit comments

Comments
 (0)