From 8287438dbafb80894c30ea7bbb024c33c478ba71 Mon Sep 17 00:00:00 2001 From: Anthony Lai Date: Mon, 14 Jan 2019 18:48:13 -0800 Subject: [PATCH 1/3] add section on building operator docker image --- site/developer.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/site/developer.md b/site/developer.md index d123931c577..d165fde6a53 100644 --- a/site/developer.md +++ b/site/developer.md @@ -64,6 +64,21 @@ $ mvn javadoc:javadoc The Javadoc is also available in the GitHub repository [here](https://oracle.github.io/weblogic-kubernetes-operator/apidocs/index.html). +## Building the operator Docker image + +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: + +``` +docker login +docker build --build-arg VERSION= -t weblogic-kubernetes-operator:some-tag --no-cache=true . +``` + +Replace with the version of the project found in the `pom.xml` file in the project root directory. + +**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. + +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. + ## Running the operator from an IDE 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. From 4335db900c1bb60bbf9b64e69523621ced56caec Mon Sep 17 00:00:00 2001 From: Anthony Lai Date: Mon, 14 Jan 2019 18:51:14 -0800 Subject: [PATCH 2/3] add section on building operator docker image --- site/developer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/developer.md b/site/developer.md index d165fde6a53..b03df7fe8eb 100644 --- a/site/developer.md +++ b/site/developer.md @@ -73,7 +73,7 @@ docker login docker build --build-arg VERSION= -t weblogic-kubernetes-operator:some-tag --no-cache=true . ``` -Replace with the version of the project found in the `pom.xml` file in the project root directory. +Replace `` with the version of the project found in the `pom.xml` file in the project root directory. **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. From 95ce67e9121380bdbaefb9d18398d8539c87854a Mon Sep 17 00:00:00 2001 From: Anthony Lai Date: Tue, 15 Jan 2019 14:15:52 -0800 Subject: [PATCH 3/3] add $ at the head of lines with shell commands --- site/developer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/developer.md b/site/developer.md index e8163e41f22..38c189221f8 100644 --- a/site/developer.md +++ b/site/developer.md @@ -69,8 +69,8 @@ The Javadoc is also available in the GitHub repository [here](https://oracle.git 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: ``` -docker login -docker build --build-arg VERSION= -t weblogic-kubernetes-operator:some-tag --no-cache=true . +$ docker login +$ docker build --build-arg VERSION= -t weblogic-kubernetes-operator:some-tag --no-cache=true . ``` Replace `` with the version of the project found in the `pom.xml` file in the project root directory.