GithubHelp home page GithubHelp logo

Comments (3)

sohrab- avatar sohrab- commented on June 27, 2024

Hey @jralmaraz, a couple of things:

  • OpenJDK stuff is a git submodule. You need to probably do a git submodule update --init --recursive on the first clone for it to bring that in and git submodule update --recursive on subsequent updates.
  • Re the error, are you running Red Hat CDK per documentation? CDK gives you a free developer license to do yum installs in the RHEL images. It looks like your current instance does not have that entitlement.

Btw Red Hat recently announced UBIs which no longer require a licence so once I get a chance I move this image to that base.

from mule4-openshift.

jralmaraz avatar jralmaraz commented on June 27, 2024

Hi @sohrab- ,

Thanks for the update on the JDK, I knew I was missing something, but couldn't tell.

In regards to the deployment, I ran the new installer of openshift 4 against an AWS environment, so I wasn't using CDK.

I have updated the Dockerfile to use the indicated UBI, but need some more tweaks to make it all work with the new mule image as well, as, even though the image build was completed, there were plenty of "unknown extended header" messages, so I couldn't fully test it yet.

Thanks again for the attention.

Cheers.

from mule4-openshift.

jralmaraz avatar jralmaraz commented on June 27, 2024

docker build -t mule4 .
Sending build context to Docker daemon 298MB
Step 1/17 : FROM registry.access.redhat.com/ubi7/ubi-minimal
---> 6969a765dae2
Step 2/17 : ARG JAVA_VERSION=1.8.0
---> Using cache
---> 8358a8e54ae2
Step 3/17 : ARG MULE_VERSION=4.2.0
---> Using cache
---> ad9d344bba55
Step 4/17 : ARG AGENT_BOND_VERSION=1.2.0
---> Using cache
---> 0e45b6097bd3
Step 5/17 : ENV JAVA_MAJOR_VERSION=8 JAVA_HOME=/usr/lib/jvm/jre MULE_HOME=/opt/mule DEPLOYMENTS_DIR=/deployments S2I_SCRIPTS_DIR=/usr/local/s2i JAVA_APP_NAME=mule JAVA_APP_DIR=${MULE_HOME} JAVA_LIB_DIR=/opt JAVA_MAIN_CLASS=org.mule.runtime.module.launcher.MuleContainer
---> Using cache
---> 9e5875621a98
Step 6/17 : LABEL maintainer="sohrab" name="mule4" summary="Mule:Unwrapped 4 on mininmal RHEL" description="Source To Image (S2I) Mule:Unwrapped image for Red Hat OpenShift" io.k8s.display-name="Mule:Unwrapped 4" io.k8s.description="Source To Image (S2I) Mule:Unwrapped image for Red Hat OpenShift" io.openshift.s2i.destination="${DEPLOYMENTS_DIR}" io.openshift.s2i.scripts-url="image://${S2I_SCRIPTS_DIR}" io.openshift.tags="mule,java"
---> Using cache
---> af03b1064f6e
Step 7/17 : EXPOSE 8778 9779
---> Using cache
---> 8e4e166fb08a
Step 8/17 : CMD [ "/deployments/run-java.sh" ]
---> Using cache
---> eddc14da26a8
Step 9/17 : USER root
---> Using cache
---> 898957229e6e
Step 10/17 : COPY fabric8-java-images/images/jboss/openjdk8/jdk/agent-bond-opts /opt/agent-bond-opts
---> Using cache
---> 295063a1be94
Step 11/17 : COPY fabric8-java-images/images/jboss/openjdk8/jdk/jmx_exporter_config.yml /opt/agent-bond/
---> Using cache
---> 896813ec6247
Step 12/17 : COPY fabric8-java-images/images/jboss/openjdk8/jdk/run-java.sh ${DEPLOYMENTS_DIR}/
---> Using cache
---> 6b9dbda54d13
Step 13/17 : COPY run-java-options classpath /opt/
---> Using cache
---> e6b620136ce5
Step 14/17 : COPY assemble run /usr/local/s2i/
---> Using cache
---> 36b07714599c
Step 15/17 : COPY mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz /tmp/
---> Using cache
---> 37c8caec3428
Step 16/17 : RUN microdnf --nodocs install gzip java-${JAVA_VERSION}-openjdk-headless tar unzip && tar -xvf /tmp/mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz --directory /opt && ln -s /opt/mule-enterprise-standalone-${MULE_VERSION} ${MULE_HOME} && curl --fail --silent --show-error http://central.maven.org/maven2/io/fabric8/agent-bond-agent/${AGENT_BOND_VERSION}/agent-bond-agent-${AGENT_BOND_VERSION}.jar > /opt/agent-bond/agent-bond.jar && chown -R 1001:root /opt ${S2I_SCRIPTS_DIR} ${DEPLOYMENTS_DIR} && chmod -R g+rwX /opt ${S2I_SCRIPTS_DIR} ${DEPLOYMENTS_DIR} && chmod +x ${DEPLOYMENTS_DIR}/run-java.sh ${S2I_SCRIPTS_DIR}/{assemble,run} && rm -rvf /tmp/mule-ee-distribution-standalone-${MULE_VERSION}.tar.gz && microdnf clean all
---> Running in 6ab0135e28c8

(process:7): librhsm-WARNING **: 06:22:44.881: Found 0 entitlement certificates

(process:7): librhsm-WARNING **: 06:22:44.886: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
Downloading metadata...
Transaction: 51 packages
binutils-2.27-34.base.el7.x86_64 (ubi-7)
dracut-033-554.el7.x86_64 (ubi-7)
device-mapper-7:1.02.149-10.el7_6.8.x86_64 (ubi-7)
libutempter-1.1.6-4.el7.x86_64 (ubi-7)
hardlink-1:1.0-19.el7.x86_64 (ubi-7)
util-linux-2.23.2-59.el7_6.1.x86_64 (ubi-7)
python-libs-2.7.5-79.el7_6.x86_64 (ubi-7)
kmod-20-23.el7.x86_64 (ubi-7)
dbus-libs-1:1.10.24-13.el7_6.x86_64 (ubi-7)
javapackages-tools-3.4.1-11.el7.noarch (ubi-7)
tar-2:1.26-35.el7.x86_64 (ubi-7)
ustr-1.0.4-16.el7.x86_64 (ubi-7)
gdbm-1.10-8.el7.x86_64 (ubi-7)
libxslt-1.1.28-5.el7.x86_64 (ubi-7)
libpng-2:1.5.13-7.el7_2.x86_64 (ubi-7)
unzip-6.0-19.el7.x86_64 (ubi-7)
libjpeg-turbo-1.2.90-6.el7.x86_64 (ubi-7)
kpartx-0.4.9-123.el7.x86_64 (ubi-7)
tzdata-java-2019a-1.el7.noarch (ubi-7)
lksctp-tools-1.0.17-2.el7.x86_64 (ubi-7)
elfutils-libs-0.172-2.el7.x86_64 (ubi-7)
systemd-libs-219-62.el7_6.7.x86_64 (ubi-7)
acl-2.2.51-14.el7.x86_64 (ubi-7)
python-javapackages-3.4.1-11.el7.noarch (ubi-7)
elfutils-default-yama-scope-0.172-2.el7.noarch (ubi-7)
cpio-2.11-27.el7.x86_64 (ubi-7)
libsemanage-2.5-14.el7.x86_64 (ubi-7)
procps-ng-3.3.10-23.el7.x86_64 (ubi-7)
pam-1.1.8-22.el7.x86_64 (ubi-7)
systemd-219-62.el7_6.7.x86_64 (ubi-7)
shadow-utils-2:4.1.5.1-25.el7_6.1.x86_64 (ubi-7)
pcsc-lite-libs-1.8.8-8.el7.x86_64 (ubi-7)
python-2.7.5-79.el7_6.x86_64 (ubi-7)
qrencode-libs-3.4.1-3.el7.x86_64 (ubi-7)
gzip-1.5-10.el7.x86_64 (ubi-7)
copy-jdk-configs-3.3-10.el7_5.noarch (ubi-7)
java-1.8.0-openjdk-headless-1:1.8.0.212.b04-0.el7_6.x86_64 (ubi-7)
avahi-libs-0.6.31-19.el7.x86_64 (ubi-7)
libpwquality-1.2.3-5.el7.x86_64 (ubi-7)
device-mapper-libs-7:1.02.149-10.el7_6.8.x86_64 (ubi-7)
freetype-2.8-12.el7_6.1.x86_64 (ubi-7)
cracklib-dicts-2.9.0-11.el7.x86_64 (ubi-7)
python-lxml-3.2.1-4.el7.x86_64 (ubi-7)
libuser-0.60-9.el7.x86_64 (ubi-7)
cups-libs-1:1.6.3-35.el7.x86_64 (ubi-7)
cryptsetup-libs-2.0.3-3.el7.x86_64 (ubi-7)
diffutils-3.3-4.el7.x86_64 (ubi-7)
cracklib-2.9.0-11.el7.x86_64 (ubi-7)
kmod-libs-20-23.el7.x86_64 (ubi-7)
dbus-1:1.10.24-13.el7_6.x86_64 (ubi-7)
xz-5.2.2-1.el7.x86_64 (ubi-7)
Downloading packages...
Running transaction test...
Installing: gzip;1.5-10.el7;x86_64;ubi-7
Installing: cracklib;2.9.0-11.el7;x86_64;ubi-7
Installing: cracklib-dicts;2.9.0-11.el7;x86_64;ubi-7
Installing: libpwquality;1.2.3-5.el7;x86_64;ubi-7
Installing: pam;1.1.8-22.el7;x86_64;ubi-7
Installing: xz;5.2.2-1.el7;x86_64;ubi-7
Installing: diffutils;3.3-4.el7;x86_64;ubi-7
Installing: (null)
install-info: No such file or directory for /usr/share/info/diffutils.info
Installing: cpio;2.11-27.el7;x86_64;ubi-7
Installing: libxslt;1.1.28-5.el7;x86_64;ubi-7
Installing: (null)
Installing: libuser;0.60-9.el7;x86_64;ubi-7
Installing: (null)
Installing: kmod-libs;20-23.el7;x86_64;ubi-7
Installing: (null)
Installing: copy-jdk-configs;3.3-10.el7_5;noarch;ubi-7
Installing: (null)
Installing: qrencode-libs;3.4.1-3.el7;x86_64;ubi-7
Installing: (null)
Installing: pcsc-lite-libs;1.8.8-8.el7;x86_64;ubi-7
Installing: acl;2.2.51-14.el7;x86_64;ubi-7
Installing: (null)
Installing: lksctp-tools;1.0.17-2.el7;x86_64;ubi-7
Installing: (null)
Installing: tzdata-java;2019a-1.el7;noarch;ubi-7
Installing: (null)
Installing: libjpeg-turbo;1.2.90-6.el7;x86_64;ubi-7
Installing: (null)
Installing: libpng;2:1.5.13-7.el7_2;x86_64;ubi-7
Installing: (null)
Installing: freetype;2.8-12.el7_6.1;x86_64;ubi-7
Installing: (null)
Installing: gdbm;1.10-8.el7;x86_64;ubi-7
Installing: python-libs;2.7.5-79.el7_6;x86_64;ubi-7
Installing: python;2.7.5-79.el7_6;x86_64;ubi-7
Installing: (null)
Installing: python-lxml;3.2.1-4.el7;x86_64;ubi-7
Installing: python-javapackages;3.4.1-11.el7;noarch;ubi-7
Installing: (null)
Installing: javapackages-tools;3.4.1-11.el7;noarch;ubi-7
Installing: (null)
Installing: ustr;1.0.4-16.el7;x86_64;ubi-7
Installing: (null)
Installing: libsemanage;2.5-14.el7;x86_64;ubi-7
Installing: (null)
Installing: shadow-utils;2:4.1.5.1-25.el7_6.1;x86_64;ubi-7
Installing: (null)
Installing: libutempter;1.1.6-4.el7;x86_64;ubi-7
Installing: (null)
Installing: tar;2:1.26-35.el7;x86_64;ubi-7
Installing: (null)
Installing: hardlink;1:1.0-19.el7;x86_64;ubi-7
Installing: (null)
Installing: binutils;2.27-34.base.el7;x86_64;ubi-7
Installing: (null)
install-info: No such file or directory for /usr/share/info/as.info.gz
install-info: No such file or directory for /usr/share/info/binutils.info.gz
install-info: No such file or directory for /usr/share/info/gprof.info.gz
install-info: No such file or directory for /usr/share/info/ld.info.gz
install-info: No such file or directory for /usr/share/info/standards.info.gz
Installing: util-linux;2.23.2-59.el7_6.1;x86_64;ubi-7
Installing: (null)
Installing: procps-ng;3.3.10-23.el7;x86_64;ubi-7
Installing: device-mapper;7:1.02.149-10.el7_6.8;x86_64;ubi-7
Installing: (null)
Installing: kpartx;0.4.9-123.el7;x86_64;ubi-7
Installing: (null)
Installing: dracut;033-554.el7;x86_64;ubi-7
Installing: (null)
Installing: kmod;20-23.el7;x86_64;ubi-7
Installing: (null)
Installing: device-mapper-libs;7:1.02.149-10.el7_6.8;x86_64;ubi-7
Installing: (null)
Installing: cryptsetup-libs;2.0.3-3.el7;x86_64;ubi-7
Installing: (null)
Installing: elfutils-libs;0.172-2.el7;x86_64;ubi-7
Installing: (null)
Installing: systemd-libs;219-62.el7_6.7;x86_64;ubi-7
Installing: (null)
Installing: dbus-libs;1:1.10.24-13.el7_6;x86_64;ubi-7
Installing: systemd;219-62.el7_6.7;x86_64;ubi-7
Installing: (null)
Failed to get D-Bus connection: Operation not permitted
Installing: elfutils-default-yama-scope;0.172-2.el7;noarch;ubi-7
Installing: (null)
Installing: dbus;1:1.10.24-13.el7_6;x86_64;ubi-7
Installing: (null)
Installing: avahi-libs;0.6.31-19.el7;x86_64;ubi-7
Installing: (null)
Installing: cups-libs;1:1.6.3-35.el7;x86_64;ubi-7
Installing: (null)
Installing: java-1.8.0-openjdk-headless;1:1.8.0.212.b04-0.el7_6;x86_64;ubi-7
Installing: (null)
Installing: unzip;6.0-19.el7;x86_64;ubi-7
Installing: (null)
Complete.
tar: Ignoring unknown extended header keyword SCHILY.dev' tar: Ignoring unknown extended header keyword SCHILY.ino'
tar: Ignoring unknown extended header keyword SCHILY.nlink' ./._mule-enterprise-standalone-4.2.0 tar: Ignoring unknown extended header keyword SCHILY.dev'
......CUT
tar: Ignoring unknown extended header keyword SCHILY.nlink' tar: Ignoring unknown extended header keyword SCHILY.dev'
tar: Ignoring unknown extended header keyword SCHILY.ino' tar: Ignoring unknown extended header keyword SCHILY.nlink'
tar: Ignoring unknown extended header keyword SCHILY.dev' tar: Ignoring unknown extended header keyword SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
removed '/tmp/mule-ee-distribution-standalone-4.2.0.tar.gz'

(process:180): librhsm-WARNING **: 06:24:40.523: Found 0 entitlement certificates

(process:180): librhsm-WARNING **: 06:24:40.527: Found 0 entitlement certificates
Complete.
Removing intermediate container 6ab0135e28c8
---> 60e108713bf3
Step 17/17 : USER 1001
---> Running in 5975077d6e44
Removing intermediate container 5975077d6e44
---> 806af99ea23c
Successfully built 806af99ea23c
Successfully tagged mule4:latest

from mule4-openshift.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.