You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -312,13 +333,37 @@ Another useful feature of dev mode with a container is the ability to pass addit
312
333
If the Dockerfile isn't located in the directory that the `devc` goal is being run from, you can add the `dockerfile` tag to specify the location. Using this parameter sets the context for building the Docker image to the directory that contains this file.
313
334
314
335
Additionally, both of these options can be passed from the command line when running the `devc` goal by adding `-D` as such:
336
+
include::{common-includes}/os-tabs.adoc[]
315
337
338
+
[.tab_content.windows_section]
339
+
--
316
340
[role="no_copy"]
317
-
----
318
-
mvn liberty:devc \
341
+
```
342
+
mvnw.cmd liberty:devc ^
343
+
-DdockerRunOpts="-e ENV_VAR=exampleValue" ^
344
+
-Ddockerfile=".\path\to\file"
345
+
```
346
+
--
347
+
348
+
[.tab_content.mac_section]
349
+
--
350
+
[role="no_copy"]
351
+
```
352
+
./mvnw liberty:devc \
319
353
-DdockerRunOpts="-e ENV_VAR=exampleValue" \
320
354
-Ddockerfile="./path/to/file"
321
-
----
355
+
```
356
+
--
357
+
358
+
[.tab_content.linux_section]
359
+
--
360
+
[role="no_copy"]
361
+
```
362
+
./mvnw liberty:devc \
363
+
-DdockerRunOpts="-e ENV_VAR=exampleValue" \
364
+
-Ddockerfile="./path/to/file"
365
+
```
366
+
--
322
367
323
368
To learn more about dev mode with a container and its different features, check out the http://github.com/OpenLiberty/ci.maven/blob/main/docs/dev.md#devc-container-mode[Documentation^].
0 commit comments