Skip to content

Commit b6d4588

Browse files
committed
Merge branch 'main' into develop-v2
# Conflicts: # imagetool/pom.xml # imagetool/src/main/java/com/oracle/weblogic/imagetool/inspect/InspectOutput.java # imagetool/src/main/java/com/oracle/weblogic/imagetool/inspect/OperatingSystemProperties.java # installer/pom.xml # pom.xml # tests/pom.xml
2 parents a89f4d1 + 9f04084 commit b6d4588

38 files changed

+400
-72
lines changed

.github/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
authors:
8+
- dependabot
9+
categories:
10+
- title: Major Changes
11+
labels:
12+
- breaking-change
13+
- title: Additional Features
14+
labels:
15+
- enhancement
16+
- title: Bug Fixes
17+
labels:
18+
- "*"

Jenkinsfile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pipeline {
1717
// variables for SystemTest stages (integration tests)
1818
STAGING_DIR = "/scratch/artifacts/imagetool"
1919
DB_IMAGE = "phx.ocir.io/weblogick8s/database/enterprise:12.2.0.1-slim"
20+
GITHUB_API_TOKEN = credentials('encj_github_token')
21+
GH_TOOL = tool name: 'github-cli', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'
2022
}
2123

2224
stages {
@@ -92,7 +94,6 @@ pipeline {
9294
when {
9395
anyOf {
9496
triggeredBy 'TimerTrigger'
95-
tag 'release-*'
9697
changelog '\\[full-mats\\].*'
9798
}
9899
}
@@ -118,7 +119,7 @@ pipeline {
118119
}
119120
}
120121
}
121-
stage ('Save Nightly Installer'){
122+
stage ('Save Nightly Installer') {
122123
when {
123124
allOf {
124125
triggeredBy 'TimerTrigger'
@@ -131,6 +132,23 @@ pipeline {
131132
'''
132133
}
133134
}
135+
stage ('Create Draft Release') {
136+
when {
137+
tag 'release-*'
138+
}
139+
steps {
140+
sh """
141+
echo '${env.GITHUB_API_TOKEN}' | ${GH_TOOL}/bin/gh auth login --with-token
142+
TAG_VERSION_NUMBER=sh("echo ${TAG_NAME} | sed 's/release-//'"), returnStdout: true).trim(),
143+
${GH_TOOL}/bin/gh release create ${TAG_NAME} \
144+
--draft \
145+
--generate-notes \
146+
--title 'WebLogic Image Tool ${TAG_VERSION_NUMBER}' \
147+
--repo https://github.com/oracle/weblogic-image-tool \
148+
installer/target/imagetool.zip
149+
"""
150+
}
151+
}
134152
}
135153
}
136154

build_spec.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
2+
3+
version: 0.1
4+
component: build
5+
timeoutInSeconds: 1000
6+
shell: bash
7+
8+
steps:
9+
- type: Command
10+
name: "compress the repo"
11+
command: |
12+
tar -cvzf ${OCI_WORKSPACE_DIR}/repo.tgz ./
13+
outputArtifacts:
14+
- name: artifact
15+
type: BINARY
16+
location: ${OCI_WORKSPACE_DIR}/repo.tgz

documentation/1.11/content/developer/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ an issue too.
1717
### Contributing to the WebLogic Image Tool repository
1818

1919
Pull requests can be made under
20-
[The Oracle Contributor Agreement](https://www.oracle.com/technetwork/community/oca-486395.html) (OCA).
20+
[The Oracle Contributor Agreement](https://oca.opensource.oracle.com/) (OCA).
2121

2222
For pull requests to be accepted, the bottom of your commit message must have
2323
the following line using your name and e-mail address as it appears in the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The parameter mappings between the Image Tool and the WebLogic Deploy Tool are:
3939

4040
**Note**: If you are creating a JRF domain and want WebLogic Deploy Tool to create the RCU schemas for you, you can
4141
specify the connection information in the model. See [Specifying RCU
42-
information in the model](https://github.com/oracle/weblogic-deploy-tooling/blob/master/site/rcuinfo.md).
42+
information in the model](https://oracle.github.io/weblogic-deploy-tooling/rcuinfo/).

documentation/1.11/content/userguide/tools/create-aux-image.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: "The createAuxImage command creates a new container image with WDT
99

1010
The `createAuxImage` command helps build a container image from a given base OS image.
1111
Auxiliary images are very small images providing the WDT install files with WDT models, archives, and variables
12-
for [WebLogic Kubernetes Operator - Auxiliary Images](https://oracle.github.io/weblogic-kubernetes-operator/userguide/managing-domains/model-in-image/auxiliary-images/).
12+
for [WebLogic Kubernetes Operator - Auxiliary Images](https://oracle.github.io/weblogic-kubernetes-operator/managing-domains/model-in-image/auxiliary-images/).
1313
These images are an alternative approach for including Model-in-Image model files, application archive files, WebLogic Deploying Tooling installation files, or other types of files,
1414
in your WebLogic Server Kubernetes Operator environment.
1515

@@ -24,7 +24,7 @@ Usage: imagetool createAuxImage [OPTIONS]
2424
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/mydomain:1` | |
2525
| `--additionalBuildCommands` | Path to a file with additional build commands. For more details, see [Additional information](#--additionalbuildcommands). |
2626
| `--additionalBuildFiles` | Additional files that are required by your `additionalBuildCommands`. A comma separated list of files that should be copied to the build context. See [Additional information](#--additionalbuildfiles). |
27-
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | `docker` |
27+
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | Defaults to `docker`, or, when set, to the value in environment variable `WLSIMG_BUILDER`. |
2828
| `--buildNetwork` | Networking mode for the RUN instructions during the image build. See `--network` for Docker `build`. | |
2929
| `--chown` | `userid:groupid` for JDK/Middleware installs and patches. | `oracle:oracle` |
3030
| `--dryRun` | Skip Docker build execution and print the Dockerfile to stdout. | |
@@ -52,6 +52,7 @@ Valid sections for `createAuxImage` are:
5252

5353
| Section | Available Variables | Build Stage | Timing |
5454
| --- | --- | --- | --- |
55+
| `initial-build-commands` | None | All | As root, and before any Image Tool actions. |
5556
| `package-manager-packages` | None | All | A list of OS packages, such as `ftp gzip`, separated by line or space. |
5657
| `final-build-commands` | `AUXILIARY_IMAGE_PATH` `WDT_HOME` `WDT_MODEL_HOME`| Final image | After all Image Tool actions are complete, and just before the container image is finalized. |
5758

documentation/1.11/content/userguide/tools/create-image.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Usage: imagetool create [OPTIONS]
2121
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
2222
| `--additionalBuildCommands` | Path to a file with additional build commands. For more details, see [Additional information](#--additionalbuildcommands). |
2323
| `--additionalBuildFiles` | Additional files that are required by your `additionalBuildCommands`. A comma separated list of files that should be copied to the build context. See [Additional information](#--additionalbuildfiles). |
24-
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | `docker` |
24+
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | Defaults to `docker`, or, when set, to the value in environment variable `WLSIMG_BUILDER`. |
2525
| `--buildNetwork` | Networking mode for the RUN instructions during the image build. See `--network` for Docker `build`. | |
2626
| `--chown` | `userid:groupid` for JDK/Middleware installs and patches. | `oracle:oracle` |
2727
| `--docker` | (DEPRECATED) Path to the Docker executable. Use `--builder` instead. | `docker` |
@@ -75,6 +75,7 @@ Valid sections for create are:
7575

7676
| Section | Available Variables | Build Stage | Timing |
7777
| --- | --- | --- | --- |
78+
| `initial-build-commands` | None | All | As root, and before any Image Tool actions. |
7879
| `package-manager-packages` | None | All | A list of OS packages, such as `ftp gzip`, separated by line or space. |
7980
| `before-jdk-install` | `JAVA_HOME` | Intermediate (JDK_BUILD) | Before the JDK is installed. |
8081
| `after-jdk-install` | `JAVA_HOME` | Intermediate (JDK_BUILD) | After the JDK is installed. |

documentation/1.11/content/userguide/tools/inspect-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Usage: imagetool inspect [OPTIONS]
1616
| Parameter | Definition | Default |
1717
| --- | --- | --- |
1818
| `--image`, `-i` | (Required) The image ID or image name to be inspected. | |
19-
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | `docker` |
19+
| `--builder`, `-b` | Executable to inspect Docker images. Use the full path of the executable if not on your path. | Defaults to `docker`, or, when set, to the value in environment variable `WLSIMG_BUILDER`. |
2020
| `--format` | The output format. Supported values: `JSON` | `JSON` |
2121
| `--patches` | Include OPatch information in the output, including a list of WebLogic patches that are applied. | |
2222

documentation/1.11/content/userguide/tools/rebase-image.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Usage: imagetool rebase [OPTIONS]
2121
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
2222
| `--additionalBuildCommands` | Path to a file with additional build commands. For more details, see [Additional information](#--additionalbuildcommands). |
2323
| `--additionalBuildFiles` | Additional files that are required by your `additionalBuildCommands`. A comma separated list of files that should be copied to the build context. See [Additional information](#--additionalbuildfiles). |
24-
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | `docker` |
24+
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | Defaults to `docker`, or, when set, to the value in environment variable `WLSIMG_BUILDER`. |
2525
| `--buildNetwork` | Networking mode for the RUN instructions during the image build. See `--network` for Docker `build`. | |
2626
| `--chown` | `userid:groupid` for JDK/Middleware installs and patches. | `oracle:oracle` |
2727
| `--dryRun` | Skip Docker build execution and print the Dockerfile to stdout. | |
@@ -58,6 +58,7 @@ The input for this parameter is a simple text file that contains one or more of
5858

5959
| Section | Available Variables | Build Stage | Timing |
6060
| --- | --- | --- | --- |
61+
| `initial-build-commands` | None | All | As root, and before any Image Tool actions. |
6162
| `before-jdk-install` | `JAVA_HOME` `DOMAIN_HOME`| Intermediate (JDK_BUILD) | Before the JDK is installed. |
6263
| `after-jdk-install` | `JAVA_HOME` `DOMAIN_HOME` | Intermediate (JDK_BUILD) | After the JDK is installed. |
6364
| `before-fmw-install` | `JAVA_HOME` `ORACLE_HOME` `DOMAIN_HOME` | Intermediate (WLS_BUILD) | Before the Oracle Home is created. |

documentation/1.11/content/userguide/tools/update-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Update WebLogic Docker image with selected patches
2929
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
3030
| `--additionalBuildCommands` | Path to a file with additional build commands. For more details, see [Additional information](#--additionalbuildcommands). | |
3131
| `--additionalBuildFiles` | Additional files that are required by your `additionalBuildCommands`. A comma separated list of files that should be copied to the build context. See [Additional information](#--additionalbuildfiles). | |
32-
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | `docker` |
32+
| `--builder`, `-b` | Executable to process the Dockerfile. Use the full path of the executable if not on your path. | Defaults to `docker`, or, when set, to the value in environment variable `WLSIMG_BUILDER`. |
3333
| `--buildNetwork` | Networking mode for the RUN instructions during the image build. See `--network` for Docker `build`. | |
3434
| `--chown` | `userid:groupid` for middleware patches and other operations. | Owner:Group of the Oracle Home |
3535
| `--dryRun` | Skip Docker build execution and print the Dockerfile to stdout. | |

0 commit comments

Comments
 (0)