Skip to content

Commit 924e7b8

Browse files
authored
Merge pull request #795 from oracle/developer-guide-build-image-section
Developer guide missing build operator docker image
2 parents 4276d7a + 95ce67e commit 924e7b8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

site/developer.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ $ mvn javadoc:javadoc
6464

6565
The Javadoc is also available in the GitHub repository [here](https://oracle.github.io/weblogic-kubernetes-operator/apidocs/index.html).
6666

67+
## Building the operator Docker image
68+
69+
Log in to the Docker Store so that you will be able to pull the base image and create the Docker image as follows. These commands should be executed in the project root directory:
70+
71+
```
72+
$ docker login
73+
$ docker build --build-arg VERSION=<version> -t weblogic-kubernetes-operator:some-tag --no-cache=true .
74+
```
75+
76+
Replace `<version>` with the version of the project found in the `pom.xml` file in the project root directory.
77+
78+
**Note**: If you have not used the base image (`store/oracle/serverjre:8`) before, you will need to visit the [Docker Store web interface](https://store.docker.com/images/oracle-serverjre-8) and accept the license agreement before the Docker Store will give you permission to pull that image.
79+
80+
We recommend that you use a tag other than `latest`, to make it easy to distinguish your image. In the example above, the tag could be the GitHub ID of the developer.
81+
6782
## Running the operator from an IDE
6883

6984
The operator can be run from an IDE, which is useful for debugging. In order to do so, the machine running the IDE must be configured with a Kubernetes configuration file in `~/.kube/config` or in a location pointed to by the `KUBECONFIG` environment variable.

0 commit comments

Comments
 (0)