Skip to content

Commit 34be9a9

Browse files
committed
testing out a private docker repo
1 parent 375e84e commit 34be9a9

File tree

2 files changed

+5
-34
lines changed

2 files changed

+5
-34
lines changed

.travis/download.sh

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,7 @@
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

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
version: '2'
22
services:
33
marklogic:
4-
build:
5-
context: ./
6-
dockerfile: .travis/Dockerfile-ml
4+
image: paxtonhare/marklogic-datahub-1x
75
ports:
86
- "8000-8020"

0 commit comments

Comments
 (0)