-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mii-auxiliary-image' into 'main'
Modify AKS mii sample to use auxiliary image. See merge request weblogic-cloud/weblogic-kubernetes-operator!4788 (cherry picked from commit 2c6a2d5) b7c8596 modify mii sample to use auxiliary image. 05784ac On branch edburns-msft-o-483
- Loading branch information
1 parent
19179cd
commit 4624720
Showing
12 changed files
with
328 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...tion/site/content/samples/azure-kubernetes-service/includes/auxiliary-image-directory.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The goal of image creation is to demonstrate using the WebLogic Image Tool to create an image tagged as `wdt-domain-image:WLS-v1` from files that you will stage to `${WDT_MODEL_FILES_PATH}/WLS-v1/`. | ||
|
||
- The directory where the WebLogic Deploy Tooling software is installed (also known as WDT Home) is expected in an image’s `/auxiliary/weblogic-deploy` directory. | ||
- WDT model YAML (model), WDT variable (property), and WDT archive ZIP (archive) files are expected in directory `/auxiliary/models`. |
40 changes: 40 additions & 0 deletions
40
...e/content/samples/azure-kubernetes-service/includes/run-mii-to-create-auxiliary-image.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
At this point, you have all of the files needed for `image wdt-domain-image:WLS-v1` staged; they include: | ||
|
||
- `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/model.10.yaml` | ||
- `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/model.10.properties` | ||
- `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/archive.zip` | ||
|
||
Now, you use the Image Tool to create an image named `wdt-domain-image:WLS-v1`. You’ve already set up this tool during the prerequisite steps. | ||
|
||
Run the following commands to create the image and verify that it worked. | ||
|
||
```shell | ||
$ ${WDT_MODEL_FILES_PATH}/imagetool/bin/imagetool.sh createAuxImage \ | ||
--tag wdt-domain-image:WLS-v1 \ | ||
--wdtModel ${WDT_MODEL_FILES_PATH}/WLS-v1/model.10.yaml \ | ||
--wdtVariables ${WDT_MODEL_FILES_PATH}/WLS-v1/model.10.properties \ | ||
--wdtArchive ${WDT_MODEL_FILES_PATH}/WLS-v1/archive.zip | ||
``` | ||
|
||
This command runs the WebLogic Image Tool to create the domain creation image and does the following: | ||
|
||
- Builds the final container image as a layer on a small `busybox` base image. | ||
- Copies the WDT ZIP file that's referenced in the WIT cache into the image. | ||
- Note that you cached WDT in WIT using the keyword `latest` when you set up the cache during the sample prerequisites steps. | ||
- This lets WIT implicitly assume it's the desired WDT version and removes the need to pass a `-wdtVersion` flag. | ||
- Copies the specified WDT model, properties, and application archives to image location `/auxiliary/models`. | ||
|
||
When the command succeeds, it should end with output like the following: | ||
|
||
``` | ||
[INFO ] Build successful. Build time=70s. Image tag=wdt-domain-image:WLS-v1 | ||
``` | ||
|
||
Verify the image is available in the local Docker server with the following command. | ||
|
||
```shell | ||
$ docker images | grep WLS-v1 | ||
``` | ||
``` | ||
wdt-domain-image WLS-v1 012d3bfa3536 5 days ago 1.13GB | ||
``` |
26 changes: 26 additions & 0 deletions
26
documentation/site/content/samples/azure-kubernetes-service/includes/sign-in-azure.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
##### Sign in with Azure CLI | ||
|
||
The steps in this section show you how to sign in to the Azure CLI. | ||
|
||
1. Open a Bash shell. | ||
|
||
1. Sign out and delete some authentication files to remove any lingering credentials. | ||
|
||
```shell | ||
$ az logout | ||
$ rm ~/.azure/accessTokens.json | ||
$ rm ~/.azure/azureProfile.json | ||
``` | ||
|
||
1. Sign in to your Azure CLI. | ||
|
||
```shell | ||
$ az login | ||
``` | ||
|
||
1. Set the subscription ID. Be sure to replace the placeholder with the appropriate value. | ||
|
||
```shell | ||
$ export SUBSCRIPTION_ID="<your-sub-id>" | ||
$ az account set -s $SUBSCRIPTION_ID | ||
``` |
Oops, something went wrong.