Merge pull request #137 from frikky/launch

0.7.1
This commit is contained in:
Frikky
2020-09-06 12:38:35 +09:00
committed by GitHub
4 changed files with 17 additions and 15 deletions
+4 -4
View File
@@ -2,7 +2,7 @@ version: '3'
services:
frontend:
#build: ./frontend
image: ghcr.io/frikky/shuffle-frontend:0.7.1
image: frikky/shuffle:frontend
container_name: shuffle-frontend
hostname: shuffle-frontend
ports:
@@ -17,7 +17,7 @@ services:
- backend
backend:
#build: ./backend
image: ghcr.io/frikky/shuffle-backend:0.7.1
image: frikky/shuffle:backend
container_name: shuffle-backend
hostname: ${BACKEND_HOSTNAME}
# Here for debugging:
@@ -43,7 +43,7 @@ services:
- database
orborus:
#build: ./functions/onprem/orborus
image: ghcr.io/frikky/orborus:0.6.2
image: frikky/shuffle:orborus
container_name: shuffle-orborus
hostname: shuffle-orborus
networks:
@@ -63,7 +63,7 @@ services:
restart: unless-stopped
database:
#build: ./backend/database
image: ghcr.io/frikky/shuffle-database:1.0.0
image: frikky/shuffle:database
container_name: shuffle-database
hostname: shuffle-database
ports:
+2 -2
View File
@@ -6,6 +6,6 @@ echo "Running docker build with $NAME:$VERSION"
docker build . -t frikky/shuffle:$NAME -t docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION -t frikky/$NAME:$VERSION -t ghcr.io/frikky/$NAME:$VERSION
#docker push frikky/$NAME:$VERSION
#docker push frikky/shuffle:$NAME
docker push frikky/shuffle:$NAME
# docker push docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION
docker push ghcr.io/frikky/$NAME:$VERSION
#docker push ghcr.io/frikky/$NAME:$VERSION
+9 -7
View File
@@ -34,7 +34,8 @@ var appSdkVersion = os.Getenv("SHUFFLE_APP_SDK_VERSION")
var workerVersion = os.Getenv("SHUFFLE_WORKER_VERSION")
//var baseimagename = "docker.pkg.github.com/frikky/shuffle"
var baseimagename = "ghcr.io/frikky"
//var baseimagename = "ghcr.io/frikky"
var baseimagename = "frikky/shuffle"
var orgId = os.Getenv("ORG_ID")
var baseUrl = os.Getenv("BASE_URL")
@@ -213,12 +214,12 @@ func initializeImages() {
// check whether theyre the same first
images := []string{
// fmt.Sprintf("docker.io/%s:app_sdk", baseimagename),
// fmt.Sprintf("docker.io/%s:worker", baseimagename),
fmt.Sprintf("docker.io/%s:app_sdk", baseimagename),
fmt.Sprintf("docker.io/%s:worker", baseimagename),
fmt.Sprintf("%s/worker:%s", baseimagename, workerVersion),
fmt.Sprintf("%s/app_sdk:%s", baseimagename, appSdkVersion),
fmt.Sprintf("frikky/shuffle:app_sdk"),
//fmt.Sprintf("%s/worker:%s", baseimagename, workerVersion),
//fmt.Sprintf("%s/app_sdk:%s", baseimagename, appSdkVersion),
//fmt.Sprintf("frikky/shuffle:app_sdk"),
}
pullOptions := types.ImagePullOptions{}
@@ -268,7 +269,8 @@ func main() {
//workerName := "worker"
//workerVersion := "0.1.0"
//workerImage := fmt.Sprintf("docker.pkg.github.com/frikky/shuffle/%s:%s", workerName, workerVersion)
workerImage := fmt.Sprintf("%s/worker:%s", baseimagename, workerVersion)
//workerImage := fmt.Sprintf("%s/worker:%s", baseimagename, workerVersion)
workerImage := fmt.Sprintf("docker.io/%s:worker", baseimagename)
log.Printf("[INFO] Finished configuring docker environment")
+2 -2
View File
@@ -7,6 +7,6 @@ docker build . -t frikky/shuffle:$NAME -t docker.pkg.github.com/frikky/shuffle/$
# Push both for now..
#docker push frikky/$NAME:$VERSION
#docker push frikky/shuffle:$NAME
docker push frikky/shuffle:$NAME
#docker push docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION
docker push ghcr.io/frikky/$NAME:$VERSION
#docker push ghcr.io/frikky/$NAME:$VERSION