-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6196 from MinaProtocol/rosetta/add-docker-build-i…
…nstructions Rosetta/add docker build instructions
- Loading branch information
Showing
7 changed files
with
99 additions
and
82 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,15 +1,20 @@ | ||
#!/bin/bash | ||
|
||
GITBRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | ||
TAG=$(echo ${GITBRANCH} | sed 's!/!-!; s!_!-!g') | ||
|
||
docker pull gcr.io/o1labs-192920/coda-rosetta-opam-deps:${TAG} | ||
docker pull gcr.io/o1labs-192920/mina-rosetta-opam-deps:${TAG} | ||
|
||
cat dockerfiles/Dockerfile-rosetta | docker build \ | ||
--target production \ | ||
-t gcr.io/o1labs-192920/coda-rosetta:${TAG} \ | ||
--cache-from gcr.io/o1labs-192920/coda-rosetta-opam-deps:${TAG} \ | ||
--force-rm \ | ||
--cache-from gcr.io/o1labs-192920/mina-rosetta-opam-deps:${TAG} \ | ||
-t gcr.io/o1labs-192920/mina-rosetta:${TAG} \ | ||
--build-arg "DUNE_PROFILE=dev" \ | ||
--build-arg "CODA_BRANCH=${GITBRANCH}" - | ||
--build-arg "OPAM_BRANCH=${GITBRANCH}" \ | ||
--build-arg "MINA_BRANCH=${GITBRANCH}" - | ||
|
||
|
||
docker run -it --entrypoint=./docker-test-start.sh gcr.io/o1labs-192920/coda-rosetta:${TAG} | ||
docker run -it --entrypoint=./docker-test-start.sh gcr.io/o1labs-192920/mina-rosetta:${TAG} | ||
|
||
[[ $? -eq 0 ]] && docker push gcr.io/o1labs-192920/coda-rosetta:${TAG} || echo "Tests failed, not pushing" | ||
[[ $? -eq 0 ]] && docker push gcr.io/o1labs-192920/mina-rosetta:${TAG} || echo "Tests failed, not pushing" |
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
Oops, something went wrong.