Skip to content

Commit 2138a69

Browse files
add command prompt (#272)
1 parent 99f0d73 commit 2138a69

File tree

14 files changed

+110
-58
lines changed

14 files changed

+110
-58
lines changed

documentation/1.9/content/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ See the [Release Notes]({{< relref "/release-notes.md" >}}) for issues and impor
3737
* Use the [Quick Start]({{< relref "/quickstart/quickstart.md" >}}) guide to create a Linux based WebLogic Docker image.
3838
* The [User Guide]({{< relref "/userguide/" >}}) contains detailed usage information, including command options and usage scenarios.
3939
* The [Samples]({{< relref "/samples/" >}}) provide typical and informative use cases.
40-
* The [Developer Guide]({{< relref "/developer/" >}}) provides details for people who want to understand how WIT is built.
40+
* The [Developer Guide]({{< relref "/developer/" >}}) provides details for people who want to understand how WIT is built. Those
41+
who wish to contribute to the WebLogic Image Tool code will find useful information [here]({{< relref "/developer/contribute.md" >}}).
4142

4243

4344
### Related projects
@@ -47,6 +48,3 @@ See the [Release Notes]({{< relref "/release-notes.md" >}}) for issues and impor
4748
* [WebLogic Monitoring Exporter](https://github.com/oracle/weblogic-monitoring-exporter)
4849
* [WebLogic Logging Exporter](https://github.com/oracle/weblogic-logging-exporter)
4950
* [WebLogic Remote Console](https://github.com/oracle/weblogic-remote-console)
50-
51-
### Contributing
52-
Those who wish to contribute to the WebLogic Image Tool code will find useful information [here](https://github.com/oracle/weblogic-image-tool/blob/main/CONTRIBUTING.md).
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: "Contribute to WIT"
3+
date: 2019-02-23T17:19:24-05:00
4+
draft: false
5+
weight: 2
6+
---
7+
8+
Oracle welcomes contributions to this repository from anyone.
9+
10+
If you want to submit a pull request to fix a bug or enhance an existing
11+
feature, please first open an issue and link to that issue when you
12+
submit your pull request.
13+
14+
If you have any questions about a possible submission, feel free to open
15+
an issue too.
16+
17+
### Contributing to the WebLogic Image Tool repository
18+
19+
Pull requests can be made under
20+
[The Oracle Contributor Agreement](https://www.oracle.com/technetwork/community/oca-486395.html) (OCA).
21+
22+
For pull requests to be accepted, the bottom of your commit message must have
23+
the following line using your name and e-mail address as it appears in the
24+
OCA Signatories list.
25+
26+
```
27+
Signed-off-by: Your Name <you@example.org>
28+
```
29+
30+
This can be automatically added to pull requests by committing with:
31+
32+
```
33+
$ git commit --signoff
34+
```
35+
36+
Only pull requests from committers that can be verified as having
37+
signed the OCA can be accepted.
38+
39+
### Pull request process
40+
41+
1. Fork this repository.
42+
2. Create a branch in your fork to implement the changes. We recommend using the issue number as part of your branch name, for example, 1234-fixes.
43+
3. Ensure that any documentation is updated with the changes that are required by your fix.
44+
4. Ensure that any samples are updated if the base image has been changed.
45+
5. Squash your branch changes into a single commit.
46+
6. Submit the pull request.
47+
48+
a. Do not leave the pull request blank.
49+
50+
b. Explain exactly what your changes are meant to do and provide simple steps on how to validate your changes.
51+
52+
c. Ensure that you reference the issue you created as well.
53+
54+
7. We will assign the pull request to 2-3 people for review before it is merged.

documentation/1.9/content/developer/source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ patches can be found. The files required in the `STAGING_DIR` depend on which t
3434

3535
**Example**: Run a set of integration tests (available groups are `cache`, `gate`, and `nightly`:
3636
```shell script
37-
mvn verify -Dtest.groups=cache
37+
$ mvn verify -Dtest.groups=cache
3838
```
3939

4040
**Example**: Run a single integration test:
4141
```shell script
42-
mvn verify -Dtest.groups=gate,nightly -Dit.test=ITImagetool#createWlsImg
42+
$ mvn verify -Dtest.groups=gate,nightly -Dit.test=ITImagetool#createWlsImg
4343
```
4444

4545
Integration Test groups:

documentation/1.9/content/quickstart/quickstart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ and save them in a directory of your choice, for example, `/home/acmeuser/wls-in
3030
2. Use the [Cache Tool]({{< relref "/userguide/tools/cache.md" >}}) to add the installers:
3131

3232
```bash
33-
imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
33+
$ imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
3434
```
3535

3636
```bash
37-
imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
37+
$ imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
3838
```
3939

4040
You can verify the cache entries by:
4141

4242
```bash
43-
imagetool cache listItems
43+
$ imagetool cache listItems
4444
```
4545

4646
```bash
@@ -52,7 +52,7 @@ and save them in a directory of your choice, for example, `/home/acmeuser/wls-in
5252
3. Run the [`imagetool create`]({{< relref "/userguide/tools/create-image.md" >}}) command:
5353

5454
```bash
55-
imagetool create --tag wls:12.2.1.3.0
55+
$ imagetool create --tag wls:12.2.1.3.0
5656
```
5757

5858
The final image will have the following structure:

documentation/1.9/content/samples/create-image-no-internet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,33 @@ and save them in a directory of your choice, for example, `/home/acmeuser/wls-in
2626
2. Use the [Cache Tool]({{< relref "/userguide/tools/cache.md" >}}) to add the installers:
2727

2828
```bash
29-
imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
29+
$ imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
3030
```
3131

3232
```bash
33-
imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
33+
$ imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
3434
```
3535

3636
3. For each WebLogic patch, download it from [Oracle Support](https://support.oracle.com/) and set up the cache.
3737

3838
For example, if you download patch number `27342434` for WebLogic Server version 12.2.1.3.0:
3939

4040
```bash
41-
imagetool cache addPatch --patchId 27342434_12.2.1.3.0 --path /home/acmeuser/cache/p27342434_122130_Generic.zip
41+
$ imagetool cache addPatch --patchId 27342434_12.2.1.3.0 --path /home/acmeuser/cache/p27342434_122130_Generic.zip
4242
```
4343

4444
**Note**: Refer to the [Cache]({{< relref "/userguide/tools/cache.md" >}}) commands for the format of ```patchId```.
4545

4646
4. Then, run the command to create the image:
4747

4848
```bash
49-
imagetool create --fromImage myosimg:latest --tag wls:12.2.1.3.0 --patches 27342434 --version 12.2.1.3.0
49+
$ imagetool create --fromImage myosimg:latest --tag wls:12.2.1.3.0 --patches 27342434 --version 12.2.1.3.0
5050
```
5151

5252
5. Occasionally, a WebLogic Server patch will require patching the OPatch binaries before applying them. We recommend downloading the latest OPatch patch and setting up the cache.
5353

5454
For example, if the latest OPatch patch is `28186730`, `13.9.4.0.0`. After downloading it from Oracle Support, you can use this command to set up the cache:
5555

5656
```bash
57-
imagetool cache addPatch --patchId 28186730_13.9.4.0.0 --path /home/acmeuser/cache/p28186730_139400_Generic.zip
57+
$ imagetool cache addPatch --patchId 28186730_13.9.4.0.0 --path /home/acmeuser/cache/p28186730_139400_Generic.zip
5858
```

documentation/1.9/content/samples/create-image-wdt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ The Image Tool lets you create a customized WebLogic domain in the image using t
1414
2. Download the [WebLogic Deploy Tool](https://github.com/oracle/weblogic-deploy-tooling/releases), and then add it to the cache store:
1515

1616
```bash
17-
imagetool cache addInstaller --type wdt --version 0.22 --path /home/acmeuser/cache/weblogic-deploy.zip
17+
$ imagetool cache addInstaller --type wdt --version 0.22 --path /home/acmeuser/cache/weblogic-deploy.zip
1818
```
1919

2020
3. Provide the command-line options for the WebLogic Deploy Tool:
2121

2222
```bash
23-
imagetool create --fromImage myosimg:latest --tag wls:12.2.1.3.0 --version 12.2.1.3.0 --wdtVersion 1.4.0 --wdtArchive /home/acmeuser/wdt/domain1.zip --wdtDomainHome /u01/domains/simple_domain
23+
$ imagetool create --fromImage myosimg:latest --tag wls:12.2.1.3.0 --version 12.2.1.3.0 --wdtVersion 1.4.0 --wdtArchive /home/acmeuser/wdt/domain1.zip --wdtDomainHome /u01/domains/simple_domain
2424
```
2525

2626
The parameter mappings between the Image Tool and the WebLogic Deploy Tool are:

documentation/1.9/content/samples/create-image-with-internet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ and save them in a directory of your choice, for example, `/home/acmeuser/wls-in
2626
2. Use the [Cache Tool]({{< relref "/userguide/tools/cache.md" >}}) to add the installers:
2727

2828
```bash
29-
imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
29+
$ imagetool cache addInstaller --type jdk --version 8u202 --path /home/acmeuser/wls-installers/jdk-8u202-linux-x64.tar.gz
3030
```
3131

3232
```bash
33-
imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
33+
$ imagetool cache addInstaller --type wls --version 12.2.1.3.0 --path /home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
3434
```
3535

3636
**Note**: The value of the version must be a valid WebLogic Server version number. This version number is used to verify and find the correct patch file to download from Oracle Support. The format of the version is a 5 digits tuple, separated by period. For example, ```12.2.1.3.0``` ```12.1.3.0.0```
3737

3838
3. Create the image using the [Create Tool]({{< relref "/userguide/tools/create-image.md" >}}) commands. For example:
3939

4040
```bash
41-
imagetool create --tag wls:12.2.1.3.0 --latestPSU --version 12.2.1.3.0 --user username@mycompany.com --passwordEnv MYPWD
41+
$ imagetool create --tag wls:12.2.1.3.0 --latestPSU --version 12.2.1.3.0 --user username@mycompany.com --passwordEnv MYPWD
4242
```
4343

4444
Where ```--user --passwordEnv``` provides the credentials for a user who is entitled to download patches from Oracle Support.
@@ -72,7 +72,7 @@ Successfully tagged wls:12.2.1.3.0
7272
3. To verify that the image was created, use the `docker images` command:
7373

7474
```bash
75-
docker images
75+
$ docker images
7676
7777
REPOSITORY TAG IMAGE ID CREATED SIZE
7878
wls 12.2.1.3.0 18d366fc3da4 About a minute ago 1.41GB

documentation/1.9/content/samples/patching-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ You can download patches using the Image Tool or by manually downloading them.
1717
For example, to download patch number `27342434` for WebLogic Server version 12.2.1.3.0:
1818

1919
```bash
20-
imagetool cache addPatch --patchId 27342434_12.2.1.3.0 --path /home/acmeuser/cache/p27342434_122130_Generic.zip
20+
$ imagetool cache addPatch --patchId 27342434_12.2.1.3.0 --path /home/acmeuser/cache/p27342434_122130_Generic.zip
2121
```
2222

2323
**Note**: Refer to the [Cache]({{< relref "/userguide/tools/cache.md" >}}) commands for the format of ```patchId```.
2424

2525
3. Use the [`imagetool update`]({{< relref "/userguide/tools/update-image.md" >}}) command to update the image:
2626

2727
```bash
28-
imagetool update --fromImage wls:12.2.1.3.0 --tag wls:12.2.1.3.4 --patches 27342434
28+
$ imagetool update --fromImage wls:12.2.1.3.0 --tag wls:12.2.1.3.4 --patches 27342434
2929
```

documentation/1.9/content/userguide/cleanup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ By default, the Image Tool creates the Docker context directory under the user's
1414
If you prefer to use a different directory for the temporary context, set the environment variable `WLSIMG_BLDDIR`.
1515

1616
```bash
17-
export WLSIMG_BLDDIR="/path/to/dir"
17+
$ export WLSIMG_BLDDIR="/path/to/dir"
1818
```
1919

2020

2121
The Image Tool will try to prune intermediate images from the Docker multi-stage build after the build step.
2222
If you see dangling images after the build (images labeled as `<none>`), use the following command to remove them:
2323

2424
```bash
25-
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
25+
$ docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
2626
```
2727

2828
If you wish to keep the Docker context directory and/or the intermediate images, using the `--skipcleanup` flag will

documentation/1.9/content/userguide/logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In `logging.properties`, comment the existing `handlers` property and uncomment
1313
line that you just commented. This should make the `logging.properties` file look something like this:
1414
```properties
1515
#handlers=java.util.logging.ConsoleHandler
16-
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
16+
$ handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
1717
```
1818
Then, change level to `FINE` or `FINER`.
1919
```properties

0 commit comments

Comments
 (0)