Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java liberty stack update feb2022 #95

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 59 additions & 4 deletions stacks/java-openliberty-gradle/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
schemaVersion: 2.1.0
schemaVersion: 2.2.0
metadata:
name: java-openliberty-gradle
version: 0.3.1
version: 0.4.0
displayName: 'Open Liberty Gradle'
description: Java application Gradle-built stack using the Open Liberty runtime
icon: https://raw.githubusercontent.com/OpenLiberty/logos/7fbb132949b9b2589e18c8d5665c1b107028a21d/logomark/svg/OL_logomark.svg
tags: ['Java', 'Gradle']
architectures: ['amd64', 'ppc64le', 's390x']
language: 'java'
projectType: 'openliberty'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.3.1/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.3.1/app-deploy.yaml'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.4.0/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.4.0/app-deploy.yaml'
starterProjects:
- name: rest
git:
Expand All @@ -36,6 +36,8 @@ variables:
# Liberty runtime version. Minimum recommended: 21.0.0.9
liberty-version: '22.0.0.1'
gradle-cmd: 'gradle'
CONTAINER_IMAGE: 'demo-image:0'
COMPONENT_NAME: 'demo-app'
components:
- name: dev
container:
Expand All @@ -48,6 +50,26 @@ components:
name: ep1
targetPort: 9080
protocol: http
#
#deploy components
#
- name: outerloop-build-app
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
# eventually should be remote stack based Dockerfile: odo github issue #5450
# ie: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.4.0/Dockerfile'
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: outerloop-build-stack
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: myk8sdeploy
kubernetes:
uri: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-gradle-0.4.0/app-deploy.yaml'
commands:
- id: run
exec:
Expand Down Expand Up @@ -85,3 +107,36 @@ commands:
group:
kind: test
isDefault: true
#
# Build and Deploy cmds
#

# Build an image using the stack provided dockerfile
- id: build-image-stack-provided
apply:
component: outerloop-build-stack
# Build an app image using a developer provided dockerfile
- id: build-image-app-provided
apply:
component: outerloop-build-app
# Apply an app image using the stack provided deployment manifest file
- id: outerloop-deploy
apply:
component: myk8sdeploy
# Deploy an app image built with the stack provided dockerfile - default action
- id: deploy
composite:
commands:
- build-image-stack-provided
- outerloop-deploy
group:
kind: deploy
isDefault: true
# Deploy an app image built with a developer provided dockerfile - non-default action
- id: deploy-app-image
composite:
commands:
- build-image-app-provided
- outerloop-deploy
group:
kind: deploy
63 changes: 59 additions & 4 deletions stacks/java-openliberty/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
schemaVersion: 2.1.0
schemaVersion: 2.2.0
metadata:
name: java-openliberty
version: 0.8.1
version: 0.9.0
displayName: 'Open Liberty Maven'
description: Java application Maven-built stack using the Open Liberty runtime
icon: https://raw.githubusercontent.com/OpenLiberty/logos/7fbb132949b9b2589e18c8d5665c1b107028a21d/logomark/svg/OL_logomark.svg
tags: ['Java', 'Maven']
architectures: ['amd64', 'ppc64le', 's390x']
language: 'java'
projectType: 'openliberty'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.8.1/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.8.1/app-deploy.yaml'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.9.0/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.9.0/app-deploy.yaml'
starterProjects:
- name: rest
git:
Expand All @@ -37,6 +37,8 @@ variables:
liberty-version: '22.0.0.1'
liberty-plugin-version: '3.5.1'
mvn-cmd: 'mvn'
CONTAINER_IMAGE: 'demo-image:0'
COMPONENT_NAME: 'demo-app'
components:
- name: dev
container:
Expand All @@ -50,6 +52,26 @@ components:
name: ep1
targetPort: 9080
protocol: http
#
#deploy components
#
- name: outerloop-build-app
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: outerloop-build-stack
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
# eventually should be remote stack based Dockerfile: odo github issue #5450
# ie: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.9.0/Dockerfile'
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: myk8sdeploy
kubernetes:
uri: 'https://github.com/OpenLiberty/devfile-stack/releases/download/open-liberty-maven-0.9.0/app-deploy.yaml'
commands:
- id: run
exec:
Expand Down Expand Up @@ -88,3 +110,36 @@ commands:
group:
kind: test
isDefault: true
#
# Build and Deploy cmds
#

# Build an image using the stack provided dockerfile
- id: build-image-stack-provided
apply:
component: outerloop-build-stack
# Build an app image using a developer provided dockerfile
- id: build-image-app-provided
apply:
component: outerloop-build-app
# Apply an app image using the stack provided deployment manifest file
- id: outerloop-deploy
apply:
component: myk8sdeploy
# Deploy an app image built with the stack provided dockerfile - default action
- id: deploy
composite:
commands:
- build-image-stack-provided
- outerloop-deploy
group:
kind: deploy
isDefault: true
# Deploy an app image built with a developer provided dockerfile - non-default action
- id: deploy-app-image
composite:
commands:
- build-image-app-provided
- outerloop-deploy
group:
kind: deploy
63 changes: 59 additions & 4 deletions stacks/java-websphereliberty-gradle/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
schemaVersion: 2.1.0
schemaVersion: 2.2.0
metadata:
name: java-websphereliberty-gradle
version: 0.3.1
version: 0.4.0
displayName: 'WebSphere Liberty Gradle'
description: Java application Gradle-built stack using the WebSphere Liberty runtime
icon: https://raw.githubusercontent.com/OpenLiberty/logos/7fbb132949b9b2589e18c8d5665c1b107028a21d/logomark/svg/OL_logomark.svg
tags: ['Java', 'Gradle']
architectures: ['amd64', 'ppc64le', 's390x']
language: 'java'
projectType: 'websphereliberty'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.3.1/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.3.1/app-deploy.yaml'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.4.0/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.4.0/app-deploy.yaml'
starterProjects:
- name: rest
git:
Expand All @@ -36,6 +36,8 @@ variables:
# Liberty runtime version. Minimum recommended: 21.0.0.9
liberty-version: '22.0.0.1'
gradle-cmd: 'gradle'
CONTAINER_IMAGE: 'demo-image:0'
COMPONENT_NAME: 'demo-app'
components:
- name: dev
container:
Expand All @@ -48,6 +50,26 @@ components:
name: ep1
targetPort: 9080
protocol: http
#
#deploy components
#
- name: outerloop-build-app
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
# eventually should be remote stack based Dockerfile: odo github issue #5450
# ie: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.4.0/Dockerfile'
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: outerloop-build-stack
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: myk8sdeploy
kubernetes:
uri: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-gradle-0.4.0/app-deploy.yaml'
commands:
- id: run
exec:
Expand Down Expand Up @@ -85,3 +107,36 @@ commands:
group:
kind: test
isDefault: true
#
# Build and Deploy cmds
#

# Build an image using the stack provided dockerfile
- id: build-image-stack-provided
apply:
component: outerloop-build-stack
# Build an app image using a developer provided dockerfile
- id: build-image-app-provided
apply:
component: outerloop-build-app
# Apply an app image using the stack provided deployment manifest file
- id: outerloop-deploy
apply:
component: myk8sdeploy
# Deploy an app image built with the stack provided dockerfile - default action
- id: deploy
composite:
commands:
- build-image-stack-provided
- outerloop-deploy
group:
kind: deploy
isDefault: true
# Deploy an app image built with a developer provided dockerfile - non-default action
- id: deploy-app-image
composite:
commands:
- build-image-app-provided
- outerloop-deploy
group:
kind: deploy
63 changes: 59 additions & 4 deletions stacks/java-websphereliberty/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
schemaVersion: 2.1.0
schemaVersion: 2.2.0
metadata:
name: java-websphereliberty
version: 0.8.1
version: 0.9.0
displayName: 'WebSphere Liberty Maven'
description: Java application Maven-built stack using the WebSphere Liberty runtime
icon: https://raw.githubusercontent.com/OpenLiberty/logos/7fbb132949b9b2589e18c8d5665c1b107028a21d/logomark/svg/OL_logomark.svg
tags: ['Java', 'Maven']
architectures: ['amd64', 'ppc64le', 's390x']
language: 'java'
projectType: 'websphereliberty'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.8.1/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.8.1/app-deploy.yaml'
alpha.build-dockerfile: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.9.0/Dockerfile'
alpha.deployment-manifest: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.9.0/app-deploy.yaml'
starterProjects:
- name: rest
git:
Expand All @@ -37,6 +37,8 @@ variables:
liberty-version: '22.0.0.1'
liberty-plugin-version: '3.5.1'
mvn-cmd: 'mvn'
CONTAINER_IMAGE: 'demo-image:0'
COMPONENT_NAME: 'demo-app'
components:
- name: dev
container:
Expand All @@ -50,6 +52,26 @@ components:
name: ep1
targetPort: 9080
protocol: http
#
#deploy components
#
- name: outerloop-build-app
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: outerloop-build-stack
image:
imageName: "{{CONTAINER_IMAGE}}"
dockerfile:
# eventually should be remote stack based Dockerfile: odo github issue #5450
# ie: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.9.0/Dockerfile'
uri: ./Dockerfile
buildContext: ${PROJECTS_ROOT}
- name: myk8sdeploy
kubernetes:
uri: 'https://github.com/OpenLiberty/devfile-stack/releases/download/websphere-liberty-maven-0.9.0/app-deploy.yaml'
commands:
- id: run
exec:
Expand Down Expand Up @@ -88,3 +110,36 @@ commands:
group:
kind: test
isDefault: true
#
# Build and Deploy cmds
#

# Build an image using the stack provided dockerfile
- id: build-image-stack-provided
apply:
component: outerloop-build-stack
# Build an app image using a developer provided dockerfile
- id: build-image-app-provided
apply:
component: outerloop-build-app
# Apply an app image using the stack provided deployment manifest file
- id: outerloop-deploy
apply:
component: myk8sdeploy
# Deploy an app image built with the stack provided dockerfile - default action
- id: deploy
composite:
commands:
- build-image-stack-provided
- outerloop-deploy
group:
kind: deploy
isDefault: true
# Deploy an app image built with a developer provided dockerfile - non-default action
- id: deploy-app-image
composite:
commands:
- build-image-app-provided
- outerloop-deploy
group:
kind: deploy