-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing the playbooks and using microdnf to install modules * update * update chart version * update default image for the chart
- Loading branch information
1 parent
ded355b
commit 5a094aa
Showing
12 changed files
with
20 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ install_artifacts/ | |
build/ | ||
nohup.out | ||
*.code-workspace | ||
|
||
vault_pass | ||
build.sh |
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 |
---|---|---|
|
@@ -2,31 +2,10 @@ | |
# 1. start by creating a base image | ||
###################################################################################################### | ||
|
||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE=redhat/ubi8-minimal | ||
|
||
FROM $BASE_IMAGE as base | ||
|
||
## USER and HOME | ||
ARG SAG_HOME=/opt/softwareag | ||
ARG SAG_USER=saguser | ||
ARG SAG_USERID=1724 | ||
ARG SAG_USER_DESC="Software AG User" | ||
ARG SAG_GROUP=saguser | ||
ARG SAG_GROUPID=1724 | ||
|
||
ENV SAG_HOME ${SAG_HOME} | ||
ENV SAG_USER ${SAG_USER} | ||
ENV SAG_USERID ${SAG_USERID} | ||
ENV SAG_USER_DESC ${SAG_USER_DESC} | ||
ENV SAG_GROUP ${SAG_GROUP} | ||
ENV SAG_GROUPID ${SAG_GROUPID} | ||
|
||
# Create saguser a process owner and group | ||
RUN groupadd -g ${SAG_GROUPID} ${SAG_GROUP} && \ | ||
useradd -s /bin/bash -u ${SAG_USERID} -m -g ${SAG_GROUPID} -d ${SAG_HOME} -c "${SAG_USER_DESC}" ${SAG_USER} && \ | ||
mkdir -p ${SAG_HOME}/.ansible/tmp && \ | ||
chown -R ${SAG_USER}:${SAG_GROUP} ${SAG_HOME}/.ansible | ||
|
||
# 2. start by creating an ansible base image | ||
###################################################################################################### | ||
|
||
|
@@ -42,6 +21,7 @@ ENV ANSIBLE_VENV="${ANSIBLE_PATH}/venv" | |
ENV ANSIBLE_VERBOSITY="0" | ||
ENV ANSIBLE_DEBUG="false" | ||
ENV ANSIBLE_ROLES_PATH="~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles" | ||
ENV ANSIBLE_PYTHON_INTERPRETER="${ANSIBLE_VENV}/bin/python3.9" | ||
|
||
## ansible-specific config env vars | ||
|
||
|
@@ -57,7 +37,7 @@ ENV ANSIBLE_HOST_KEY_CHECKING="False" | |
|
||
# Install Ansible | ||
RUN set -x \ | ||
&& dnf -y install python39 \ | ||
&& microdnf -y install python39 \ | ||
&& python3 --version \ | ||
&& python3 -m venv ${ANSIBLE_VENV} \ | ||
&& source ${ANSIBLE_VENV}/bin/activate \ | ||
|
@@ -104,6 +84,9 @@ ARG SAG_ANSIBLE_ROLES_DEVPORTAL_FILENAME="${SAG_ANSIBLE_ROLES_DEVPORTAL}-${SAG_A | |
# ":" separated paths in which Ansible will search for Roles. | ||
ENV ANSIBLE_ROLES_PATH="${ANSIBLE_ROLES_PATH}:${ANSIBLE_ROLES_BASEPATH}/${SAG_ANSIBLE_ROLES_COMMON_UTILS_FILENAME}/roles:${ANSIBLE_ROLES_BASEPATH}/${SAG_ANSIBLE_ROLES_DEVPORTAL_FILENAME}/roles" | ||
|
||
# Install tools needed to extract | ||
RUN microdnf -y install tar gzip | ||
|
||
# add the roles | ||
## Role 1: SAG_ANSIBLE_ROLES_COMMON_UTILS | ||
RUN set -x \ | ||
|
@@ -125,7 +108,10 @@ FROM base_ansible_with_roles as final | |
|
||
LABEL org.opencontainers.image.authors="[email protected]" \ | ||
org.opencontainers.image.vendor="Softwareag Government Solutions" \ | ||
org.opencontainers.image.version="10.11" | ||
org.opencontainers.image.title="webMethods Developer Portal Configurator" \ | ||
org.opencontainers.image.description="A container that can easily configure various functions of SoftwareAG webMethods Developer Portal from environment variable values passed in" \ | ||
org.opencontainers.image.version="10.11" \ | ||
org.opencontainers.image.source="https://github.com/softwareag-government-solutions/webmethods-devportal-configurator" | ||
|
||
ENV wait_connect=true | ||
|
||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ apiVersion: v2 | |
name: webmethods-devportal-configurator | ||
description: Configure webmethods devportal using simple environment variables - Configuration as Code for webmethods-devportal-configurator. | ||
home: https://github.com/saggs-cloudops/webmethods-devportal-configurator | ||
version: 1.0.0-SNAPSHOT | ||
appVersion: 1.0.0-SNAPSHOT | ||
version: "1.0.0" | ||
appVersion: "1.0.0" | ||
maintainers: | ||
- name: fabien sanglier | ||
email: [email protected] | ||
|
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