Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faa4525
commit c0fc4ff
Showing
3 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# build Docker image | ||
docker build -t example/helloworld . | ||
|
||
# test run | ||
docker run example/helloworld:latest | ||
|
||
# push to IPFS | ||
IPFS_HASH="$(ipdr push example/helloworld --silent)" | ||
|
||
# pull from IPFS | ||
REPO_TAG=$(ipdr pull "$IPFS_HASH" --silent) | ||
|
||
# run image pulled from IPFS | ||
docker run "$REPO_TAG" | ||
|