-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
S-109339 Build product images for Redhat certification (#222)
Co-authored-by: Vedran Pugar <[email protected]>
- Loading branch information
1 parent
f02d08b
commit c489a2a
Showing
16 changed files
with
216 additions
and
52 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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Set root folders | ||
ENV USER_UID=10001 APP_ROOT=/opt/xebialabs | ||
ENV APP_HOME=${APP_ROOT}/{{ product }} | ||
ENV USER_UID=10001 \ | ||
APP_ROOT=/opt/xebialabs \ | ||
APP_HOME=/opt/xebialabs/{{ product }} |
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
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
MAINTAINER XebiaLabs Development <docker@xebialabs.com> | ||
|
||
LABEL name="xebialabs/{{ product }}" \ | ||
maintainer="[email protected]" \ | ||
vendor="XebiaLabs" \ | ||
vendor="Digital.ai" \ | ||
version="{{ image_version }}" \ | ||
release="1" \ | ||
summary="{{ product_name }}" \ | ||
description="Enterprise-scale Application Release Automation for any environment" \ | ||
url="https://www.xebialabs.com/{{ product }}" | ||
description="{{ product_description }}" \ | ||
url="{{ product_info_url }}" |
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,51 @@ | ||
FROM registry.access.redhat.com/ubi8/openjdk-17:latest as installer | ||
|
||
# Install dependencies | ||
USER root | ||
RUN microdnf update -y && rm -rf /var/cache/yum && \ | ||
INSTALL_PKGS="curl hostname shadow-utils which unzip gawk" && \ | ||
microdnf install --nodocs ${INSTALL_PKGS} && \ | ||
### Install JQ | ||
JQ_LOCATION="/usr/bin/jq" && \ | ||
curl https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -L > $JQ_LOCATION && chmod +x $JQ_LOCATION && \ | ||
microdnf clean all | ||
|
||
{% if 'deploy-task-engine' in product %} | ||
{% include './deploy-task-engine/install.j2' %} | ||
{% elif 'central-config' in product %} | ||
{% include './central-configuration/install.j2' %} | ||
{% else %} | ||
{% include 'install.j2' %} | ||
{% endif %} | ||
|
||
FROM registry.access.redhat.com/ubi8/openjdk-17:latest | ||
|
||
{% include 'metadata.j2' %} | ||
|
||
### add licenses to this directory | ||
COPY resources/licenses /licenses | ||
|
||
{% if 'deploy-task-engine' in product %} | ||
{% include './deploy-task-engine/variables.j2' %} | ||
{% else %} | ||
{% include 'variables.j2' %} | ||
{% endif %} | ||
|
||
# Copy installed {{ product_name }} | ||
COPY --from=installer ${APP_ROOT} ${APP_ROOT} | ||
|
||
ENV OS=redhat | ||
USER root | ||
|
||
RUN microdnf update -y && rm -rf /var/cache/yum && \ | ||
INSTALL_PKGS="curl hostname shadow-utils which unzip nc" && \ | ||
microdnf install --nodocs ${INSTALL_PKGS} && \ | ||
JQ_LOCATION="/usr/bin/jq" && \ | ||
curl https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -L > $JQ_LOCATION && chmod +x $JQ_LOCATION && \ | ||
microdnf clean all | ||
|
||
{% if 'deploy' in product %} | ||
{% include 'terraform.j2' %} | ||
{% endif %} | ||
|
||
{% include 'runtime.j2' %} |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Set root folders | ||
ENV USER_UID=10001 APP_ROOT=/opt/xebialabs | ||
ENV APP_HOME=${APP_ROOT}/{{ product }}-server | ||
ENV USER_UID=10001 \ | ||
APP_ROOT=/opt/xebialabs \ | ||
APP_HOME=/opt/xebialabs/{{ product }}-server |
Empty file.
Oops, something went wrong.