-
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.
Refactor script naming scheme to be more consistent
- Loading branch information
atj
committed
Jan 21, 2018
1 parent
b6c7029
commit a008515
Showing
33 changed files
with
118 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
ContainerBuilder | ||
container-builder | ||
================ | ||
Containers traditionally require root access to build from a recipe file, as such native access to build cannot be granted on OLCF HPC resources such as Titan and Summit. | ||
container-builder is an interactive container building utility that gets around this limitation by building each container on a remote ephemeral VM, streaming the output in real time to the client. | ||
|
||
Use | ||
================= | ||
Singularity recipe: | ||
``` | ||
$ module load container-builder | ||
$ container-builder container.img singularity.recipe | ||
``` | ||
Docker recipe: | ||
``` | ||
$ module load container-builder | ||
$ container-builder --backend=docker container.img docker.recipe | ||
``` | ||
|
||
OLCF Recipes | ||
================== | ||
container-builder has access to the private OLCF container-recipes docker registry. | ||
|
||
Implementation | ||
================== | ||
Some insight into the build process: | ||
|
||
* Client initiates build request through CLI | ||
* Client build request enters the queue | ||
* Queue creates builder | ||
* Builder details sent to the client | ||
* The client connects to the builder | ||
* Container recipe file is sent from client to builder | ||
* Build output is streamed in real time to the client | ||
* Container image is sent from the builder to the client | ||
* Client disconnects from queue | ||
* Queue destroys VM | ||
|
||
Deploy | ||
================== | ||
To deploy container-builder three steps are taken | ||
* The Builder OpenStack image must be created | ||
* The Queue OpenStack instance must be started | ||
* The client application must be built | ||
|
||
Due to the non-trivial complexity of provisioning Gitlab runners handle deployment through the CI system. | ||
Following `.gitlab-ci.yml` should provide insight into the provisioning process. |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#requires CLI utility httpie and jq to be installed | ||
|
||
CREDENTIAL=$(echo -n atj:knx21nws | base64) | ||
TOKEN=$(http 'https://code.ornl.gov/jwt/auth?service=container_registry&expires_in=9000&scope=repository:olcf/container-recipes/test:pull' Authorization:"Basic $CREDENTIAL" | jq -r '.token') | ||
http https://code.ornl.gov:4567/v2/olcf/container-recipes/test/manifests/latest Authorization:"Bearer $TOKEN" |
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
File renamed without changes.
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
Oops, something went wrong.