* feat(backend): implemented azure blob storage support * feat(backend): added azure implementation to backend services * feat(backend): added azure blob storage support to chalice service * fix(backend): removed prev version of s3 * feat(backend): moved azure support to ee subfolder * feat(backend): prepared ee code for new utils.objects package * feat(backend): added missed modules to go.mod * feat(backend): added missed modules to go.sum * feat(backend): go mod tidy * feat(backend): temporary made s3 vars are not required * feat(backend): added azure lib to ee chalice * feat(api): changed azure env var name * feat(api): added new object store and extra methods to chalice ee * fix(api): added azure blob lib to alerts * fix(api): fixed incorrect call in sessions_devtool * fix(crons): added azure blob storage library to requirements list * chore(build): Error message for not providing flag. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * feat(backend): removed ios headers and object store for ios messages * feat(backend): object config refactoring * chore(helm): Update BUCKET_NAME * fix(backend): removed object storage usage in http * feat(backend): added debug logs to azure upload method * fix(backend): fixed empty folder issue * fix(backend): removed extra debug log * chore(helm): Adding global variables for crons * chore(helm): Remove clickhouse resource limit Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> * fix(backend): removed assets debug log * feat(api): use ABC class instead of empty interface * feat(api): renamed helpers to generators * feat(api): changed prep/clean dev scripts * feat(api): changed name obj_store -> StorageClient * feat(api): some changes after code review * fix(api): removed unnecesery packages in oss api * feat(backend): moved azure implementation to ee folder --------- Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com> Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
#!/bin/bash
|
|
|
|
# Script to build crons module
|
|
# flags to accept:
|
|
# envarg: build for enterprise edition.
|
|
# Default will be OSS build.
|
|
|
|
# Usage: IMAGE_TAG=latest DOCKER_REPO=myDockerHubID bash build.sh <ee>
|
|
|
|
git_sha1=${IMAGE_TAG:-$(git rev-parse HEAD)}
|
|
envarg="default-foss"
|
|
check_prereq() {
|
|
which docker || {
|
|
echo "Docker not installed, please install docker."
|
|
exit=1
|
|
}
|
|
[[ exit -eq 1 ]] && exit 1
|
|
}
|
|
|
|
function build_crons(){
|
|
destination="_crons_ee"
|
|
cp -R ../api ../${destination}
|
|
cd ../${destination}
|
|
tag=""
|
|
# Copy enterprise code
|
|
|
|
cp -rf ../ee/api/* ./
|
|
envarg="default-ee"
|
|
tag="ee-"
|
|
mv Dockerfile_crons.dockerignore .dockerignore
|
|
docker build -f ./Dockerfile_crons --build-arg envarg=$envarg -t ${DOCKER_REPO:-'local'}/crons:${git_sha1} .
|
|
cd ../api
|
|
rm -rf ../${destination}
|
|
[[ $PUSH_IMAGE -eq 1 ]] && {
|
|
docker push ${DOCKER_REPO:-'local'}/crons:${git_sha1}
|
|
docker tag ${DOCKER_REPO:-'local'}/crons:${git_sha1} ${DOCKER_REPO:-'local'}/crons:${tag}latest
|
|
docker push ${DOCKER_REPO:-'local'}/crons:${tag}latest
|
|
}
|
|
[[ $SIGN_IMAGE -eq 1 ]] && {
|
|
cosign sign --key $SIGN_KEY ${DOCKER_REPO:-'local'}/crons:${git_sha1}
|
|
}
|
|
echo "completed crons build"
|
|
}
|
|
|
|
check_prereq
|
|
[[ $1 == "ee" ]] && {
|
|
build_crons $1
|
|
} || {
|
|
echo -e "Crons is only for ee. Rerun the script using \n bash $0 ee"
|
|
exit 100
|
|
}
|
|
|