Skip to content

Commit 7fdc43a

Browse files
committed
README: documents shareWorkspace task
1 parent bce44f4 commit 7fdc43a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.markdown

+21
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ To shut down the environment, run `./gradlew composeDown`.
4040
- [Export container data to a timestamped directory](#export-container-data-to-a-timestamped-directory)
4141
- [Import data for various containers](#import-data-for-various-containers)
4242

43+
### Sharing features overview
44+
- [Zip up the workspace to share the setup](#zip-up-the-workspace-to-share-the-setup)
45+
4346
### Docker features overview
4447

4548
- [Build a custom Liferay image with custom modules and configs included](#build-a-custom-liferay-image-with-custom-modules-and-configs-included)
@@ -202,6 +205,18 @@ data_folder (directory in their repsective container)
202205
lr.docker.environment.data.directory=exported_data/data_20241206.175343
203206
```
204207

208+
### Sharing Features
209+
210+
#### Zip up the workspace to share the setup
211+
212+
```
213+
./gradlew shareWorkspace
214+
```
215+
216+
This will zip up the workspace as-is, including the declared data folder, into a shareable `zip` file. The zipped workspace will be timestamped and placed in the `./shared_workspaces` directory. It will omit unnecessary files such as the `.gradle` and `.git` directories, as well as other exported data folders and shared workspaces in the `exported_data` and `shared_workspaces` directories.
217+
218+
The shared workspace should be immediately usable by simply unzipping the archive, `cd` to the unzipped folder, and starting up with `./gradlew composeUp`.
219+
205220
### Gradle tasks
206221

207222
#### Start up environment
@@ -222,6 +237,12 @@ lr.docker.environment.data.directory=exported_data/data_20241206.175343
222237
./gradlew exportContainerData
223238
```
224239

240+
#### Zip the workspace for sharing
241+
242+
```
243+
./gradlew shareWorkspace
244+
```
245+
225246
#### Clean up prepared hotfixes
226247

227248
```

0 commit comments

Comments
 (0)