Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
olcf
container-builder
Commits
012970fc
Commit
012970fc
authored
Feb 04, 2018
by
AdamSimpson
Browse files
Fix Dockerhub login
parent
4d8d4e04
Pipeline
#11678
failed with stages
in 39 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Builder/scripts/docker-builder-backend.sh
View file @
012970fc
...
...
@@ -24,7 +24,7 @@ grep 'FROM code.ornl.gov:4567' ./container.def
GREP_RC
=
$?
if
[[
${
GREP_RC
}
-eq
0
]]
;
then
echo
"Using OLCF Gitlab registry login credentials"
docker
${
DEBUG_FLAG
}
login code.ornl.gov:4567
-u
${
GITLAB_READONLY_USERNAME
}
-p
${
GITLAB_READONLY_TOKEN
}
docker login code.ornl.gov:4567
-u
${
GITLAB_READONLY_USERNAME
}
-p
${
GITLAB_READONLY_TOKEN
}
fi
# provide read only access to the private olcf dockerhub repository
...
...
@@ -32,7 +32,7 @@ grep 'FROM olcf/' ./container.def
GREP_RC
=
$?
if
[[
${
GREP_RC
}
-eq
0
]]
;
then
echo
"Using OLCF Dockerhub registry login credentials"
docker
${
DEBUG_FLAG
}
login code.ornl.gov:4567
-u
${
DOCKERHUB_READONLY_USERNAME
}
-p
${
DOCKERHUB_READONLY_TOKEN
}
docker
login
-u
${
DOCKERHUB_READONLY_USERNAME
}
-p
${
DOCKERHUB_READONLY_TOKEN
}
fi
# Spin up local registry
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment