Sources
One time only actions
Modify and Execute the Jenkins Job : https://connjenk.swg.usma.ibm.com/jenkins/view/All/job/Upload%20HAProxy%20Archives%20to%203rd%20party/
- Configure the Jenkins Job and update the version numbers of HAProxy and LUA required based off the source Dockerfile
- This Job will retrieve the source files for HAProxy and upload them to artifactory : https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy
- Structure : https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/{HAPROXY_MAJOR}/{HAPROXY_VERSION}
Modify the Dockerfile (https://github.ibm.com/connections/haproxy/blob/master/Dockerfile) to update the version numbers for HAProxy and LUA
Source
"https://www.lua.org/ftp/lua-5.3.4.tar.gz" "https://www.haproxy.org/download/1.8/src/haproxy-1.8.4.tar.gz"
Target
https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/lua-5.3.4.tar.gz https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/lua-5.3.4.tar.gz.sha1 https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/lua-5.3.4.tar.gz.sha256
https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/haproxy-1.8.4.tar.gz https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/haproxy-1.8.4.tar.gz.sha1 https://artifactory.swg.usma.ibm.com/artifactory/connections-3rd-party/haproxy/1.8/1.8.4/haproxy-1.8.4.tar.gz.sha256
To build the HAProxy Image - CFC
IMAGE_NAME=middleware-haproxy
TIMESTAMP=$(date +"%Y%m%d-%H%M")
docker build --no-cache -t master.cfc:8500/connections/$IMAGE_NAME -t master.cfc:8500/connections/$IMAGE_NAME:$TIMESTAMP .
docker push master.cfc:8500/connections/$IMAGE_NAME
docker push master.cfc:8500/connections/$IMAGE_NAME:$TIMESTAMP
To build the HAProxy Image - artifactory
IMAGE_NAME=middleware-haproxy
TIMESTAMP=$(date +"%Y%m%d-%H%M")
docker build --no-cache -t artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME -t artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME:$TIMESTAMP .
docker push artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME
docker push artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME:$TIMESTAMP
docker login artifactory.swg.usma.ibm.com:6562
To build the HAProxy Tester Image - CFC
git clone git@github.ibm.com:connections/haproxy.git
IMAGE_NAME=middleware-haproxy-tester
TIMESTAMP=$(date +"%Y%m%d.%H%M%S")
docker build --no-cache -t master.cfc:8500/connections/$IMAGE_NAME -t master.cfc:8500/connections/$IMAGE_NAME:$TIMESTAMP .
docker push master.cfc:8500/connections/$IMAGE_NAME
docker push master.cfc:8500/connections/$IMAGE_NAME:$TIMESTAMP
To build the HAProxy Tester Image - Artifactory
git clone git@github.ibm.com:connections/haproxy.git
IMAGE_NAME=middleware-haproxy-tester
TIMESTAMP=$(date +"%Y%m%d.%H%M%S")
docker build --no-cache -t artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME -t artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME:$TIMESTAMP .
docker push artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME
docker push artifactory.swg.usma.ibm.com:6562/$IMAGE_NAME:$TIMESTAMP