chore(build): Custom docker build env
This commit is contained in:
parent
8c9ed6a941
commit
068f29fc35
9 changed files with 125 additions and 118 deletions
|
|
@ -15,6 +15,8 @@ exit_err() {
|
|||
fi
|
||||
}
|
||||
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
environment=$1
|
||||
git_sha=$(git rev-parse --short HEAD)
|
||||
image_tag=${IMAGE_TAG:-git_sha}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
git_sha=$(git rev-parse --short HEAD)
|
||||
image_tag=${IMAGE_TAG:-git_sha}
|
||||
envarg="default-foss"
|
||||
source ../scripts/lib/_docker.sh
|
||||
check_prereq() {
|
||||
which docker || {
|
||||
echo "Docker not installed, please install docker."
|
||||
|
|
@ -17,7 +18,6 @@ check_prereq() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
[[ $1 == ee ]] && ee=true
|
||||
[[ $PATCH -eq 1 ]] && {
|
||||
image_tag="$(grep -ER ^.ppVersion ../scripts/helmcharts/openreplay/charts/$chart | xargs | awk '{print $2}' | awk -F. -v OFS=. '{$NF += 1 ; print}')"
|
||||
|
|
@ -37,7 +37,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_alerts(){
|
||||
function build_alerts() {
|
||||
destination="_alerts"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_alerts_ee"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
git_sha1=${IMAGE_TAG:-$(git rev-parse HEAD)}
|
||||
envarg="default-foss"
|
||||
source ../scripts/lib/_docker.sh
|
||||
check_prereq() {
|
||||
which docker || {
|
||||
echo "Docker not installed, please install docker."
|
||||
|
|
@ -17,7 +18,7 @@ check_prereq() {
|
|||
[[ exit -eq 1 ]] && exit 1
|
||||
}
|
||||
|
||||
function build_crons(){
|
||||
function build_crons() {
|
||||
destination="_crons_ee"
|
||||
cp -R ../api ../${destination}
|
||||
cd ../${destination}
|
||||
|
|
@ -46,7 +47,6 @@ check_prereq
|
|||
[[ $1 == "ee" ]] && {
|
||||
build_crons $1
|
||||
} || {
|
||||
echo -e "Crons is only for ee. Rerun the script using \n bash $0 ee"
|
||||
exit 100
|
||||
echo -e "Crons is only for ee. Rerun the script using \n bash $0 ee"
|
||||
exit 100
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ exit_err() {
|
|||
fi
|
||||
}
|
||||
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
app="assist-stats" # Set the app variable to "chalice"
|
||||
environment=$1
|
||||
|
|
@ -49,7 +50,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_api(){
|
||||
function build_api() {
|
||||
destination="_assist_stats"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_assist_stats_ee"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ check_prereq() {
|
|||
exit 1
|
||||
}
|
||||
}
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
[[ $1 == ee ]] && ee=true
|
||||
[[ $PATCH -eq 1 ]] && {
|
||||
|
|
@ -34,7 +35,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_api(){
|
||||
function build_api() {
|
||||
destination="_assist"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_assist_ee"
|
||||
|
|
|
|||
|
|
@ -92,4 +92,4 @@ function build_api() {
|
|||
}
|
||||
|
||||
check_prereq
|
||||
build_api $1 $2
|
||||
build_api i1 i2
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ exit_err() {
|
|||
fi
|
||||
}
|
||||
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
app="assist-stats" # Set the app variable to "chalice"
|
||||
environment=$1
|
||||
|
|
@ -49,7 +50,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_api(){
|
||||
function build_api() {
|
||||
destination="_assist_stats"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_assist_stats_ee"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ check_prereq() {
|
|||
exit 1
|
||||
}
|
||||
}
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
[[ $1 == ee ]] && ee=true
|
||||
|
||||
|
|
@ -35,7 +36,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_api(){
|
||||
function build_api() {
|
||||
destination="_peers"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_peers_ee"
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ image_name="sourcemapreader"
|
|||
git_sha=$(git rev-parse --short HEAD)
|
||||
image_tag=${IMAGE_TAG:-git_sha}
|
||||
envarg="default-foss"
|
||||
source ../scripts/lib/_docker.sh
|
||||
|
||||
check_prereq() {
|
||||
which docker || {
|
||||
|
|
@ -41,7 +42,7 @@ update_helm_release() {
|
|||
git commit -m "chore(helm): Updating $chart image release"
|
||||
}
|
||||
|
||||
function build_api(){
|
||||
function build_api() {
|
||||
destination="_smr"
|
||||
[[ $1 == "ee" ]] && {
|
||||
destination="_smr_ee"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue