File tree Expand file tree Collapse file tree 2 files changed +5
-34
lines changed Expand file tree Collapse file tree 2 files changed +5
-34
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # runs command from parameters and exits with the eoror code of the command
4- # if it fails
5- function successOrExit {
6- " $@ "
7- local status=$?
8- if [ $status -ne 0 ]; then
9- echo " $1 exited with error: $status "
10- exit $status
11- fi
12- }
3+ echo " Logging in to Docker registry"
4+ docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
135
14- set | grep TRAVIS
15-
16- test $1 && arg1=$1
17-
18- ver=${ML_VERSION}
19- fname=MarkLogic-RHEL7-${ver} .x86_64.rpm
20- fnamedeb=" marklogic_"
21- fnamedeb=$fnamedeb$ver
22- suff=" _amd64.deb"
23- fnamedeb=$fnamedeb$suff
24-
25- echo " Logging in for Download"
26- curl -s -c cookies.txt --data " email=${MLBUILD_USER} &password=${MLBUILD_PASSWORD} " https://developer.marklogic.com/login > /dev/null 2>&1
27-
28- echo
29- echo " Getting Download Link"
30- dl_link=$( curl -s -b cookies.txt --data " download=/download/binaries/8.0/${fname} " https://developer.marklogic.com/get-download-url | perl -pe ' s/.*"path":"([^"]+).*/\1/' )
31- url=" https://developer.marklogic.com${dl_link} "
32-
33- echo " ********* Downloading MarkLogic $ver "
34- successOrExit curl -s -k -o ./MarkLogic.rpm $url
6+ echo " Getting Docker Image"
7+ docker pull paxtonhare/marklogic-datahub-1x
Original file line number Diff line number Diff line change 11version : ' 2'
22services :
33 marklogic :
4- build :
5- context : ./
6- dockerfile : .travis/Dockerfile-ml
4+ image : paxtonhare/marklogic-datahub-1x
75 ports :
86 - " 8000-8020"
You can’t perform that action at this time.
0 commit comments