-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial stab at adding ability to access container-recipes docker reg…
…istry from builders, and some preliminary work to setup a docker builder backend.
- Loading branch information
1 parent
2768150
commit 9185cd5
Showing
10 changed files
with
85 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o xtrace | ||
|
||
# Provide readonly access to the private gitlab docker repository | ||
docker login code.ornl.gov:4567 -u atj -p $(cat /home/builder/container-registry-token) | ||
|
||
# Spin up local registry | ||
docker run -d -p 5000:5000 --restart=always --name registry registry:2 | ||
|
||
# Build the Dockerfile docker image in the current directory | ||
docker build -t localhost:5000/docker_image . | ||
|
||
# Push to the local registry | ||
docker push localhost:5000/docker_image | ||
|
||
# Build the singularity container from the docker image | ||
singularity pull --name container.simg docker://localhost:5000/docker_image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o xtrace | ||
|
||
# Provide readonly access to the private gitlab docker repository | ||
docker login code.ornl.gov:4567 -u atj -p $(cat /home/builder/container-registry-token) | ||
|
||
/usr/bin/unbuffer /usr/local/bin/singularity build ./container.simg ./container.def |