* chore(vagrant): initial vagrantfile * chore(vagrant): adding instructions after installation * chore(vagrant): Adding vagrant user to docker group * chore(vagrant): use local docker daemon for k3s * chore(vagrant): fix comment * chore(vagrant): adding hostname in /etc/hosts * chore(vagrant): fix doc * chore(vagrant): limiting cpu * chore(frontend): initialize dev env * chore(docker): adding dockerignore * chore(dockerfile): using cache for fasten build * chore(dockerignore): update * chore(docker): build optimizations * chore(build): all components build option * chore(build): utilities build fix * chore(scrpt): remove debug message * chore(vagrant): provision using stable branch always Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
22 lines
514 B
Bash
22 lines
514 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# This script will build and push docker image to registry
|
|
|
|
# Usage: IMAGE_TAG=latest DOCKER_REPO=rg.fr-par.scw.cloud/foss bash build_deploy.sh
|
|
|
|
echo $DOCKER_REPO
|
|
[[ -z DOCKER_REPO ]] && {
|
|
echo Set DOCKER_REPO="your docker registry"
|
|
exit 1
|
|
} || {
|
|
docker login $DOCKER_REPO
|
|
cd ../../api
|
|
PUSH_IMAGE=1 bash build.sh $@
|
|
cd ../backend
|
|
PUSH_IMAGE=1 bash build.sh $@
|
|
cd ../utilities
|
|
PUSH_IMAGE=1 bash build.sh $@
|
|
cd ../peers
|
|
PUSH_IMAGE=1 bash build.sh $@
|
|
}
|