Skip to content

Commit 9dc9a0c

Browse files
authored
Merge pull request #161 from OpenLiberty/staging
Merge staging to prod - add devc workaround (#160)
2 parents 9360e99 + 82ee842 commit 9dc9a0c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.adoc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, 2022 IBM Corporation and others.
1+
// Copyright (c) 2017, 2023 IBM Corporation and others.
22
// Licensed under Creative Commons Attribution-NoDerivatives
33
// 4.0 International (CC BY-ND 4.0)
44
// https://creativecommons.org/licenses/by-nd/4.0/
@@ -76,6 +76,14 @@ Make sure to start your Docker daemon before you proceed.
7676
[role='command']
7777
include::{common-includes}/gitclone.adoc[]
7878

79+
// Cloud hosted guide instruction
80+
ifdef::cloud-hosted[]
81+
In this IBM Cloud environment, you need to change the user home to ***/home/project*** by running the following command:
82+
```bash
83+
sudo usermod -d /home/project theia
84+
```
85+
endif::[]
86+
7987
// =================================================================================================
8088
// Creating the Dockerfile
8189
// =================================================================================================
@@ -132,6 +140,16 @@ A [hotspot file=0]`.dockerignore` file is available to you in the `start` direct
132140

133141
The Open Liberty Maven plug-in includes a `devc` goal that builds a Docker image, mounts the required directories, binds the required ports, and then runs the application inside of a container. This development mode, known as dev mode, also listens for any changes in the application source code or configuration and rebuilds the image and restarts the container as necessary.
134142

143+
ifdef::cloud-hosted[]
144+
In this IBM Cloud environment, you need to pre-create the ***logs*** directory by running the following commands:
145+
146+
```bash
147+
mkdir -p /home/project/guide-docker/start/target/liberty/wlp/usr/servers/defaultServer/logs
148+
chmod 777 /home/project/guide-docker/start/target/liberty/wlp/usr/servers/defaultServer/logs
149+
```
150+
endif::[]
151+
152+
135153
Build and run the container by running the `devc` goal from the `start` directory:
136154

137155
[role='command']

0 commit comments

Comments
 (0)