Compare commits
4 Commits
54c42acf29
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
020b730c13 | ||
|
|
440c3cb3db | ||
|
|
8fa5f0ea21 | ||
|
|
23b73cf7f1 |
@@ -1,11 +1,10 @@
|
|||||||
FROM icr.io/appcafe/open-liberty:kernel-slim-java17-openj9-ubi
|
FROM icr.io/appcafe/open-liberty:kernel-slim-java17-openj9-ubi
|
||||||
#FROM harbor-dev.alldcs.nl/allard/openliberty-java17
|
|
||||||
|
|
||||||
ARG VERSION=1.0
|
ARG VERSION=1.0
|
||||||
ARG REVISION=SNAPSHOT
|
ARG REVISION=SNAPSHOT
|
||||||
|
|
||||||
LABEL \
|
LABEL \
|
||||||
org.opencontainers.image.authors="Your Name" \
|
org.opencontainers.image.authors="Allard Krings" \
|
||||||
org.opencontainers.image.vendor="IBM" \
|
org.opencontainers.image.vendor="IBM" \
|
||||||
org.opencontainers.image.url="local" \
|
org.opencontainers.image.url="local" \
|
||||||
org.opencontainers.image.source="https://github.com/OpenLiberty/guide-getting-started" \
|
org.opencontainers.image.source="https://github.com/OpenLiberty/guide-getting-started" \
|
||||||
|
|||||||
128
buildah.yaml
Normal file
128
buildah.yaml
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
apiVersion: tekton.dev/v1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: buildah
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
description: |-
|
||||||
|
Buildah task builds source into a container image and then pushes it to a container registry.
|
||||||
|
Buildah Task builds source into a container image using Project Atomic's Buildah build tool.It uses Buildah's support for building from Dockerfiles, using its buildah bud command.This command executes the directives in the Dockerfile to assemble a container image, then pushes that image to a container registry.
|
||||||
|
params:
|
||||||
|
- description: Reference of the image buildah will produce.
|
||||||
|
name: IMAGE
|
||||||
|
type: string
|
||||||
|
- default: quay.io/buildah/stable:v1
|
||||||
|
description: The location of the buildah builder image.
|
||||||
|
name: BUILDER_IMAGE
|
||||||
|
type: string
|
||||||
|
- default: overlay
|
||||||
|
description: Set buildah storage driver
|
||||||
|
name: STORAGE_DRIVER
|
||||||
|
type: string
|
||||||
|
- default: ./Dockerfile
|
||||||
|
description: Path to the Dockerfile to build.
|
||||||
|
name: DOCKERFILE
|
||||||
|
type: string
|
||||||
|
- default: .
|
||||||
|
description: Path to the directory to use as context.
|
||||||
|
name: CONTEXT
|
||||||
|
type: string
|
||||||
|
- default: "true"
|
||||||
|
description: Verify the TLS on the registry endpoint (for push/pull to a non-TLS
|
||||||
|
registry)
|
||||||
|
name: TLSVERIFY
|
||||||
|
type: string
|
||||||
|
- default: oci
|
||||||
|
description: The format of the built container, oci or docker
|
||||||
|
name: FORMAT
|
||||||
|
type: string
|
||||||
|
- default: ""
|
||||||
|
description: Extra parameters passed for the build command when building images.
|
||||||
|
WARNING - must be sanitized to avoid command injection
|
||||||
|
name: BUILD_EXTRA_ARGS
|
||||||
|
type: string
|
||||||
|
- default: ""
|
||||||
|
description: Extra parameters passed for the push command when pushing images.
|
||||||
|
WARNING - must be sanitized to avoid command injection
|
||||||
|
name: PUSH_EXTRA_ARGS
|
||||||
|
type: string
|
||||||
|
- default: "false"
|
||||||
|
description: Skip pushing the built image
|
||||||
|
name: SKIP_PUSH
|
||||||
|
type: string
|
||||||
|
- default:
|
||||||
|
- ""
|
||||||
|
description: Dockerfile build arguments, array of key=value
|
||||||
|
name: BUILD_ARGS
|
||||||
|
type: array
|
||||||
|
results:
|
||||||
|
- description: Digest of the image just built.
|
||||||
|
name: IMAGE_DIGEST
|
||||||
|
type: string
|
||||||
|
- description: Image repository where the built image would be pushed to
|
||||||
|
name: IMAGE_URL
|
||||||
|
type: string
|
||||||
|
steps:
|
||||||
|
- args:
|
||||||
|
- $(params.BUILD_ARGS[*])
|
||||||
|
computeResources: {}
|
||||||
|
env:
|
||||||
|
- name: PARAM_IMAGE
|
||||||
|
value: $(params.IMAGE)
|
||||||
|
- name: PARAM_STORAGE_DRIVER
|
||||||
|
value: $(params.STORAGE_DRIVER)
|
||||||
|
- name: PARAM_DOCKERFILE
|
||||||
|
value: $(params.DOCKERFILE)
|
||||||
|
- name: PARAM_CONTEXT
|
||||||
|
value: $(params.CONTEXT)
|
||||||
|
- name: PARAM_TLSVERIFY
|
||||||
|
value: $(params.TLSVERIFY)
|
||||||
|
- name: PARAM_FORMAT
|
||||||
|
value: $(params.FORMAT)
|
||||||
|
- name: PARAM_BUILD_EXTRA_ARGS
|
||||||
|
value: $(params.BUILD_EXTRA_ARGS)
|
||||||
|
- name: PARAM_PUSH_EXTRA_ARGS
|
||||||
|
value: $(params.PUSH_EXTRA_ARGS)
|
||||||
|
- name: PARAM_SKIP_PUSH
|
||||||
|
value: $(params.SKIP_PUSH)
|
||||||
|
image: $(params.BUILDER_IMAGE)
|
||||||
|
name: build-and-push
|
||||||
|
script: |
|
||||||
|
BUILD_ARGS=()
|
||||||
|
for buildarg in "$@"
|
||||||
|
do
|
||||||
|
BUILD_ARGS+=("--build-arg=$buildarg")
|
||||||
|
done
|
||||||
|
[ "$(workspaces.sslcertdir.bound)" = "true" ] && CERT_DIR_FLAG="--cert-dir=$(workspaces.sslcertdir.path)"
|
||||||
|
[ "$(workspaces.dockerconfig.bound)" = "true" ] && DOCKER_CONFIG="$(workspaces.dockerconfig.path)" && export DOCKER_CONFIG
|
||||||
|
# build the image (CERT_DIR_FLAG should be omitted if empty and BUILD_EXTRA_ARGS can contain multiple args)
|
||||||
|
# shellcheck disable=SC2046,SC2086
|
||||||
|
buildah ${CERT_DIR_FLAG} "--storage-driver=${PARAM_STORAGE_DRIVER}" bud "${BUILD_ARGS[@]}" ${PARAM_BUILD_EXTRA_ARGS} \
|
||||||
|
"--format=${PARAM_FORMAT}" "--tls-verify=${PARAM_TLSVERIFY}" \
|
||||||
|
-f "${PARAM_DOCKERFILE}" -t "${PARAM_IMAGE}" "${PARAM_CONTEXT}"
|
||||||
|
[ "${PARAM_SKIP_PUSH}" = "true" ] && echo "Push skipped" && exit 0
|
||||||
|
# push the image (CERT_DIR_FLAG should be omitted if empty and PUSH_EXTRA_ARGS can contain multiple args)
|
||||||
|
# shellcheck disable=SC2046,SC2086
|
||||||
|
buildah ${CERT_DIR_FLAG} "--storage-driver=${PARAM_STORAGE_DRIVER}" push \
|
||||||
|
"--tls-verify=${PARAM_TLSVERIFY}" --digestfile /tmp/image-digest ${PARAM_PUSH_EXTRA_ARGS} \
|
||||||
|
"${PARAM_IMAGE}" "docker://${PARAM_IMAGE}"
|
||||||
|
tee "$(results.IMAGE_DIGEST.path)" < /tmp/image-digest
|
||||||
|
printf '%s' "${PARAM_IMAGE}" | tee "$(results.IMAGE_URL.path)"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/containers
|
||||||
|
name: varlibcontainers
|
||||||
|
workingDir: $(workspaces.source.path)
|
||||||
|
volumes:
|
||||||
|
- emptyDir: {}
|
||||||
|
name: varlibcontainers
|
||||||
|
workspaces:
|
||||||
|
- name: source
|
||||||
|
- name: sslcertdir
|
||||||
|
optional: true
|
||||||
|
- description: An optional workspace that allows providing a .docker/config.json
|
||||||
|
file for Buildah to access the container registry. The file should be placed
|
||||||
|
at the root of the Workspace with name config.json.
|
||||||
|
name: dockerconfig
|
||||||
|
optional: true
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2018 IBM Corporation and others.
|
* Copyright (c) 2018, 2024 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
@@ -8,20 +8,18 @@
|
|||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
@import url("https://fonts.googleapis.com/css?family=Asap:300,400,500");
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: BunueloLight, sans-serif;
|
font-family: BunueloLight;
|
||||||
src: url("/fonts/BunueloCleanPro-Light.woff");
|
src: url("/fonts/BunueloCleanPro-Light.otf");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: BunueloSemiBold, sans-serif;
|
font-family: BunueloSemiBold;
|
||||||
src: url("/fonts/BunueloCleanPro-SemiBold.woff");
|
src: url("/fonts/BunueloCleanPro-SemiBold.otf");
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family:Asap, sans-serif;
|
font-family: BunueloSemiBold;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #24243b;
|
color: #24243b;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
@@ -32,6 +30,7 @@ section {
|
|||||||
padding-top: 55px;
|
padding-top: 55px;
|
||||||
padding-left: 8%;
|
padding-left: 8%;
|
||||||
padding-right: 8%;
|
padding-right: 8%;
|
||||||
|
/* font-weight: 400; */
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@@ -43,7 +42,7 @@ section {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.headerImage {
|
.headerImage {
|
||||||
background-image: url(/img/header_ufo.png);
|
background-image: url("/img/header_ufo.png");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: top 20px right 15px;
|
background-position: top 20px right 15px;
|
||||||
height: 103px;
|
height: 103px;
|
||||||
@@ -60,7 +59,7 @@ p {
|
|||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-family:BunueloSemiBold, sans-serif;
|
font-family: BunueloSemiBold;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
@@ -89,7 +88,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#appTitle {
|
#appTitle {
|
||||||
font-family:BunueloLight, sans-serif;
|
font-family: BunueloLight;
|
||||||
font-size: 55px;
|
font-size: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,20 +105,14 @@ a {
|
|||||||
.collapsibleRow {
|
.collapsibleRow {
|
||||||
transition: border 400ms ease-out, box-shadow 200ms linear;
|
transition: border 400ms ease-out, box-shadow 200ms linear;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: none;
|
|
||||||
border-bottom: 4px solid;
|
|
||||||
}
|
}
|
||||||
.collapsibleRow:hover .headerTitle {
|
.collapsibleRow:hover .headerTitle {
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
transition: background-color 0.1s;
|
transition: background-color 0.1s;
|
||||||
}
|
}
|
||||||
.collapsed {
|
.collapsed .collapsibleRow {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border-bottom: 4px solid;
|
border-bottom: 4px solid;
|
||||||
transition: all 400ms ease-out, opacity 300ms ease-in;
|
|
||||||
opacity: 0;
|
|
||||||
max-height: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
}
|
||||||
.collapsed#healthSection > .headerRow {
|
.collapsed#healthSection > .headerRow {
|
||||||
border-bottom-color: #D6D9E4;
|
border-bottom-color: #D6D9E4;
|
||||||
@@ -130,18 +123,24 @@ a {
|
|||||||
.collapsed#metricsSection > .headerRow {
|
.collapsed#metricsSection > .headerRow {
|
||||||
border-bottom-color: #EEF3C3;
|
border-bottom-color: #EEF3C3;
|
||||||
}
|
}
|
||||||
.collapsibleContent { /* collapsing animation */
|
|
||||||
|
.collapsed .collapsibleContent { /* collapsing animation */
|
||||||
|
transition: all 400ms ease-out, opacity 300ms ease-in;
|
||||||
|
}
|
||||||
|
.expanded .collapsibleContent { /* expanding animation */
|
||||||
|
transition: all 400ms ease-out, opacity 450ms ease-out;
|
||||||
|
}
|
||||||
|
.collapsed .collapsibleContent {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
transition: all 400ms ease-out, opacity 300ms ease-in;
|
|
||||||
}
|
}
|
||||||
.expanded { /* expanding animation */
|
.expanded .collapsibleContent {
|
||||||
transition: all 400ms ease-out, opacity 450ms ease-out;
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
max-height: 1000px;
|
max-height: 1000px;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerIcon {
|
.headerIcon {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -149,12 +148,12 @@ a {
|
|||||||
background-color: #E8EAEF;
|
background-color: #E8EAEF;
|
||||||
}
|
}
|
||||||
.headerIcon img {
|
.headerIcon img {
|
||||||
display:block;
|
display: Block;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#healthSection {
|
#healthSection .headerIcon {
|
||||||
background-color: #E8EAEF;
|
background-color: #E8EAEF;
|
||||||
}
|
}
|
||||||
#configSection .headerIcon {
|
#configSection .headerIcon {
|
||||||
@@ -188,7 +187,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.headerTitle > h2 {
|
.headerTitle > h2 {
|
||||||
font-family: BunueloLight, sans-serif;
|
font-family: BunueloLight;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -225,7 +224,7 @@ button {
|
|||||||
height: 44px;
|
height: 44px;
|
||||||
color: #24253a;
|
color: #24253a;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Asap, sans-serif;
|
font-family: BunueloSemiBold;
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
margin-bottom: 70px;
|
margin-bottom: 70px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -296,7 +295,7 @@ section#openLibertyAndMp {
|
|||||||
|
|
||||||
#serviceStatus {
|
#serviceStatus {
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
font-family:BunueloLight, sans-serif;
|
font-family: BunueloLight;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +330,7 @@ td {
|
|||||||
background: #D6D9E4;
|
background: #D6D9E4;
|
||||||
}
|
}
|
||||||
#configTable tr:first-child {
|
#configTable tr:first-child {
|
||||||
background: #F8D7C1;
|
background: #F8D7C1;;
|
||||||
}
|
}
|
||||||
#metricsTable tr:first-child {
|
#metricsTable tr:first-child {
|
||||||
background: #EEF3C3;
|
background: #EEF3C3;
|
||||||
@@ -382,7 +381,7 @@ td {
|
|||||||
|
|
||||||
.bodyFooter {
|
.bodyFooter {
|
||||||
padding: 5px 8%;
|
padding: 5px 8%;
|
||||||
background-image: url(/img/footer_main.png);
|
background-image: url("/img/footer_main.png");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: top 20px right 110px;
|
background-position: top 20px right 110px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
@@ -391,7 +390,7 @@ td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bodyFooterLink {
|
.bodyFooterLink {
|
||||||
font-family: Asap, sans-serif;
|
font-family: BunueloSemiBold;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<section id="appIntro">
|
<section id="appIntro">
|
||||||
<div id="titleSection">
|
<div id="titleSection">
|
||||||
<h1 id="appTitle">Java-PitStop Openliberty/Java17 voorbeeld 2.1</h1>
|
<h1 id="appTitle">Java-PitStop Openliberty/Java17 voorbeeld 1.7</h1>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="headerImage"></div>
|
<div class="headerImage"></div>
|
||||||
<h2>Open Liberty Java17 applicatie op Container Hosting Platform!</h2>
|
<h2>Open Liberty Java17 applicatie op Container Hosting Platform!</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user