Base image make/build broken in 9.1.3 branch, works in master
When I clone the 9.1.3 branch and do make build-advancedserver to build a base image it fails. However, if I clone the master branch, the build works fine without any errors.
UPDATE: I did get this branch to work on another Linux server. I only encountered this issue on a system running Ubuntu 18.04.
Error with 9.1.3 branch:
make build-advancedserver Makefile:139: warning: overriding recipe for target 'downloads/mqadv_dev913_linux_x86-64.tar.gz' Makefile:134: warning: ignoring old recipe for target 'downloads/mqadv_dev913_linux_x86-64.tar.gz'
Running gosec test
Build mqadvanced-server:9.1.3.0-amd64
Create a temporary network to use for the build
p: not found podman is /usr/bin/podman docker network create build make: p:: Command not found Makefile:273: recipe for target 'build-advancedserver-host' failed make: [build-advancedserver-host] Error 127 (ignored)
Start a web server to host the MQ downloadable (tar.gz) file
p: not found podman is /usr/bin/podman docker run --rm --name build-server --network build --network-alias build --volume /home/ubuntu/mqserver913/mq-container/downloads:/usr/share/nginx/html:ro --detach docker.io/nginx:alpine make: p:: Command not found Makefile:273: recipe for target 'build-advancedserver-host' failed make: [build-advancedserver-host] Error 127 (ignored)
Build the new image
p: not found podman is /usr/bin/podman docker build --tag mqadvanced-server:9.1.3.0-amd64 --file Dockerfile-server --network build --build-arg MQ_URL=http://build:80/IBM_MQ_9.1.3_LINUX_X86-64.tar.gz --build-arg MQ_PACKAGES="MQSeriesRuntime-.rpm MQSeriesServer-.rpm MQSeriesJava*.rpm MQSeriesJRE*.rpm MQSeriesGSKit*.rpm MQSeriesMsg*.rpm MQSeriesSamples*.rpm MQSeriesWeb*.rpm MQSeriesAMS-*.rpm" --build-arg IMAGE_REVISION="8fd818444580f68c08c935139aecf32f2a54c2de" --build-arg IMAGE_SOURCE="https://github.com/ibm-messaging/mq-container.git" --build-arg IMAGE_TAG="mqadvanced-server:9.1.3.0-amd64" --build-arg MQM_UID=888 --label version=9.1.3.0 --label name=mqadvanced-server --label build-date=2019-10-09T20:20:59+0000 --label release="2" --label architecture="amd64" --label run="docker run -d -e LICENSE=accept mqadvanced-server:9.1.3.0-amd64" --label vcs-ref=8fd818444580f68c08c935139aecf32f2a54c2de --label vcs-type=git --label vcs-url=https://github.com/ibm-messaging/mq-container.git --target mq-server . ; -p: not found podman is /usr/bin/podman docker kill build-server && -p: not found podman is /usr/bin/podman docker network rm build /bin/sh: 1: p:: not found /bin/sh: 1: -p:: not found Makefile:273: recipe for target 'build-advancedserver-host' failed make: [build-advancedserver-host] Error 127 (ignored)