-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from ot4i/12.0.10.0-r2
updated too 12.0.10.0-r2
- Loading branch information
Showing
58 changed files
with
798 additions
and
192 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
sudo: required | ||
dist: xenial | ||
language: generic | ||
os: linux | ||
dist: bionic | ||
language: shell | ||
services: | ||
- docker | ||
# Make some fake binaries to spoof an ACE install for the Dockerbuild files to use. | ||
before_install: | ||
- mkdir -p deps/ace-install/server/bin/ | ||
- echo -e "#!/bin/bash\nexport PATH=/opt/ibm/ace-11/server/bin/" > deps/ace-install/server/bin/mqsiprofile && chmod ugo+x deps/ace-install/server/bin/mqsiprofile | ||
- echo -e "#!/bin/bash\nexit 0" > deps/ace-install/server/bin/mqsicreateworkdir && chmod ugo+x deps/ace-install/server/bin/mqsicreateworkdir | ||
- echo -e "#!/bin/bash\ngroupadd mqbrkrs\ngroupadd mqm\nexit 0" > deps/ace-install/ace && chmod u+x deps/ace-install/ace | ||
- cd deps && tar czf ace-install.tar.gz ace-install && cd .. | ||
env: | ||
global: | ||
- DOWNLOAD_URL=https://na.artifactory.swg-devops.com/artifactory/appconnect-iiboc/prereqs/builds/12.0.10.0/xLinux/ace-12.0.10.0.tar.gz | ||
install: | ||
- docker build --build-arg ACE_INSTALL=ace-install.tar.gz --file ubi/Dockerfile.aceonly . | ||
- docker system info | ||
- touch git.commit | ||
- docker build --no-cache -t testbuild --build-arg DOWNLOAD_URL=$DOWNLOAD_URL --build-arg USERNAME=$ARTIFACTORY_USER --build-arg PASSWORD=$ARTIFACTORY_ACCESS_TOKEN -f ./Dockerfile . | ||
- cd samples/bars | ||
- docker build -t aceapp --build-arg FROMIMAGE=testbuild --file Dockerfile . | ||
- cd ../mqclient | ||
- docker build -t aceappmqclient --build-arg FROMIMAGE=aceapp --build-arg MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.0.1-IBM-MQC-Redist-LinuxX64.tar.gz --file Dockerfile . | ||
- docker run -d -p 7800:7800 --env LICENSE=accept --name aceapp aceappmqclient | ||
script: | ||
- ../bars/test.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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM ubuntu:22.04 | ||
|
||
MAINTAINER Trevor Dolby <[email protected]> (@trevor-dolby-at-ibm-com) | ||
|
||
# Build: | ||
# | ||
# docker build -t ace-basic-mqclient:12.0.10.0 -f Dockerfile.mqclient . | ||
|
||
# Later versions from the same site, or else via the Developer edition download site linked from | ||
# https://www.ibm.com/docs/en/app-connect/12.0?topic=enterprise-download-ace-developer-edition-get-started | ||
ARG DOWNLOAD_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/integration/12.0.10.0-ACE-LINUX64-DEVELOPER.tar.gz | ||
ARG MQ_DOWNLOAD_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.2.0-IBM-MQC-Redist-LinuxX64.tar.gz | ||
# Can be set higher if needed | ||
ARG DOWNLOAD_CONNECTION_COUNT=1 | ||
|
||
# Prevent errors about having no terminal when using apt-get | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Install ACE v12 and accept the license | ||
RUN apt-get update && apt-get install -y aria2 curl && \ | ||
mkdir /opt/ibm && echo Downloading package ${DOWNLOAD_URL} && \ | ||
cd /tmp && \ | ||
echo Downloading package ${DOWNLOAD_URL} && \ | ||
aria2c -s ${DOWNLOAD_CONNECTION_COUNT} -j ${DOWNLOAD_CONNECTION_COUNT} -x ${DOWNLOAD_CONNECTION_COUNT} "${DOWNLOAD_URL}" && \ | ||
tar -zxf *12.0*tar.gz --exclude=tools --exclude server/bin/TADataCollector.sh --exclude server/nodejs_partial -exclude server/transformationAdvisor/ta-plugin-ace.jar --directory /opt/ibm && \ | ||
rm -f *12.0*tar.gz && \ | ||
mv /opt/ibm/ace-12* /opt/ibm/ace-12 && \ | ||
/opt/ibm/ace-12/ace make registry global accept license deferred | ||
|
||
# Create a user to run as, create the ace workdir, and chmod script files | ||
RUN useradd --uid 1001 --create-home --home-dir /home/aceuser --shell /bin/bash -G mqbrkrs,sudo aceuser \ | ||
&& su - aceuser -c "export LICENSE=accept && . /opt/ibm/ace-12/server/bin/mqsiprofile && mqsicreateworkdir /home/aceuser/ace-server" | ||
|
||
# Install MQ client libraries | ||
RUN mkdir /opt/mqm && curl ${MQ_DOWNLOAD_URL} | tar zx --exclude=tools --directory /opt/mqm | ||
|
||
# Install Maven for development use. | ||
# | ||
# The standard Maven packages on most distros bring a lot of extra packages with | ||
# them so we install Maven directly. | ||
RUN cd /opt && \ | ||
curl -k https://archive.apache.org/dist/maven/maven-3/3.8.4/binaries/apache-maven-3.8.4-bin.tar.gz | tar -xzf - && \ | ||
ln -s /opt/apache-maven-3.8.4/bin/mvn /usr/local/bin/mvn | ||
|
||
# aceuser | ||
USER 1001 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.