Skip to content

Commit 16da3f4

Browse files
authored
update sample to reference Oracle Container Registry (#393)
* updated sample Dockerfile and documentation to reference the Oracle Container Registry instead of Docker Hub * switched base image to weblogic:12.2.1.3 generic instead of dev to match samples in operator project
1 parent 6a2ed17 commit 16da3f4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

samples/docker-domain/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
#
4040
# Pull base image
4141
# ---------------
42-
# FROM store/oracle/weblogic:12.2.1.3
43-
FROM store/oracle/weblogic:12.2.1.3-dev
42+
FROM container-registry.oracle.com/middleware/weblogic:12.2.1.3
4443

4544
# Maintainer
4645
# ----------

samples/docker-domain/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Care should be taken to secure the credentials that are present in the model. Th
1818

1919
See the README file for more information on using property and file tokens in the WDT model.
2020

21-
The ADMIN credentials are necessary to start the Admin or Managed Server in a docker container. The sample provides security.properties in the properties/docker-run directory. This file contains the admin credentials and additional properties used to customize the Weblogic Server start.
21+
The ADMIN credentials are necessary to start the Admin or Managed Server in a docker container. The sample provides security.properties in the properties/docker-run directory. This file contains the admin credentials and additional properties used to customize the WebLogic Server start.
2222

2323
Note: Oracle recommends that the adminpass.properties, adminuser.properties and security.properties files be deleted or secured after the image is built and the WebLogic Server are started so that the user name and password are not inadvertently exposed.
2424

@@ -28,7 +28,9 @@ When the WDT `discoverDomain` tool is used on an existing domain, a ZIP archive
2828

2929
### How to Build and Run
3030

31-
**NOTE:** The image is based on a WebLogic Server image in the docker-images project: `oracle/weblogic:12.2.1.3-developer`. Build that image to your local repository before building this sample.
31+
**NOTE:** The image is based on a WebLogic Server image in the Oracle Container Registry: `container-registry.oracle.com/middleware/weblogic:12.2.1.3`. You will need to log in and accept the license agreement on the [Oracle Container Registry](https://container-registry.oracle.com/) before you can use Docker to pull the image.
32+
Also, don't forget to log in with Docker, `docker login container-registry.oracle.com`, before you try to pull the image, `docker pull container-registry.oracle.com/middleware/weblogic:12.2.1.3`.
33+
If you prefer, you may want to build your own base image, using the docker-images project for Oracle WebLogic on GitHub as a starting point, [https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.3](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.3).
3234

3335
The WebLogic Deploy Tool installer is required to build this image. Add `weblogic-deploy.zip` to the sample directory.
3436

@@ -67,7 +69,7 @@ To build this sample taking the defaults, run:
6769
--build-arg WDT_ARCHIVE=archive.zip \
6870
--build-arg WDT_VARIABLE=properties/docker-build/domain.properties \
6971
--force-rm=true \
70-
-t 12213-domain-wdt .
72+
-t 12213-domain1-wdt:1.0 .
7173

7274
This will use the model, variable and archive files in the sample directory.
7375

@@ -86,7 +88,7 @@ To parse the sample variable file and build the sample, run:
8688
--build-arg WDT_ARCHIVE=archive.zip \
8789
--build-arg WDT_VARIABLE=properties/docker-build/domain.properties \
8890
--force-rm=true \
89-
-t 12213-domain-wdt .
91+
-t 12213-domain1-wdt:1.0 .
9092

9193
This sample provides a Derby Data Source that is targeted to the Managed Server cluster. The Derby database is created
9294
in the Admin Server container when the container is run. To turn off the database create, set DERBY_FLAG="false" in the
@@ -111,7 +113,7 @@ To start an additional Managed Server (in this example managed-server-2), run:
111113

112114
The above scenario from this sample will give you a WebLogic domain with a dynamic cluster set up on a single host environment.
113115

114-
You may create more containerized Managed Servers by calling the `docker` command above for `startManagedServer.sh` as long you link properly with the Administration Server. For an example of a multihost environment, see the sample `1221-multihost`.
116+
You may create more containerized Managed Servers by calling the `docker` command above for `startManagedServer.sh` as long you link properly with the Administration Server. For an example of a multi-host environment, see the sample `1221-multihost`.
115117

116118
# Copyright
117119
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

0 commit comments

Comments
 (0)