-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: run.sh to pull image from ghcr.io
- Loading branch information
Showing
1 changed file
with
1 addition
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker --version | ||
|
||
if [[ "$(docker images -q xml2rfc-base:latest 2> /dev/null)" == "" ]]; then | ||
echo "Build the image xml2rfc-base:latest" | ||
docker build -f docker/base.Dockerfile --pull -t xml2rfc-base:latest . | ||
else | ||
echo "xml2rfc-base:latest already exists." | ||
echo "To update xml2rfc-base, run:" | ||
echo " docker rmi xml2rfc-base:latest" | ||
echo "and rerun this script." | ||
fi | ||
|
||
echo "Build the image xml2rfc-dev" | ||
docker build -f docker/dev.Dockerfile -t xml2rfc-dev . | ||
|
||
echo "Starting xml2rfc docker image..." | ||
docker run -it -v ${PWD}:/root/xml2rfc xml2rfc-dev | ||
docker run -it $@ -v ${PWD}:/root/xml2rfc ghcr.io/ietf-tools/xml2rfc-dev:latest |