-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): build/run/pull scripts
- Loading branch information
1 parent
7d1f46d
commit 6b0c998
Showing
5 changed files
with
59 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
## Get version | ||
VERSION=$1 | ||
|
||
# If you don't say the version it will build the latest always | ||
if [ -z "$1" ] | ||
then | ||
docker build -t ghcr.io/analyted-backend:$1 . | ||
else | ||
docker build -t ghcr.io/analyted-backend:latest . | ||
fi |
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,12 @@ | ||
#!/bin/bash | ||
## Get version | ||
VERSION=$1 | ||
|
||
## This script pulls on container registry | ||
# Remember that you must be login in | ||
if [ -z "$1" ] | ||
then | ||
docker pull ghcr.io/analyted-backend:$1 | ||
else | ||
docker pull ghcr.io/analyted-backend:latest | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
## Get version | ||
VERSION=$1 | ||
|
||
# If you don't say the version it will always run the latest | ||
if [ -z "$1" ] | ||
then | ||
docker run --name analyted-backend --network analyted_network -p 8080:8080 -d ghcr.io/analyted-backend:$1 | ||
else | ||
docker run --name analyted-backend --network analyted_network -p 8080:8080 -d ghcr.io/analyted-backend:latest | ||
fi |