fix(backend): gssapi
This commit is contained in:
parent
72d443a700
commit
bb1b8e9a26
2 changed files with 4 additions and 1 deletions
|
|
@ -32,7 +32,9 @@ RUN if [ "$GSSAPI" = "true" ]; then \
|
|||
|
||||
FROM --platform=linux/$ARCH alpine AS entrypoint
|
||||
ARG GIT_SHA
|
||||
ARG GSSAPI=false
|
||||
LABEL GIT_SHA=$GIT_SHA
|
||||
LABEL GSSAPI=$GSSAPI
|
||||
|
||||
RUN if [ "$GSSAPI" = "true" ]; then \
|
||||
apk add --no-cache ca-certificates librdkafka-dev cyrus-sasl cyrus-sasl-gssapiv2 krb5; \
|
||||
|
|
@ -44,6 +46,7 @@ RUN adduser -u 1001 openreplay -D
|
|||
ARG SERVICE_NAME
|
||||
ENV TZ=UTC \
|
||||
GIT_SHA=$GIT_SHA \
|
||||
GSSAPI=$GSSAPI \
|
||||
FS_ULIMIT=10000 \
|
||||
FS_DIR=/mnt/efs \
|
||||
MAXMINDDB_FILE=/home/openreplay/geoip.mmdb \
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ update_helm_release() {
|
|||
function build_service() {
|
||||
image="$1"
|
||||
echo "BUILDING $image"
|
||||
docker build -t ${DOCKER_REPO:-'local'}/$image:${image_tag} --platform linux/$arch --build-arg ARCH=$arch --build-arg SERVICE_NAME=$image --build-arg GIT_SHA=$git_sha .
|
||||
docker build -t ${DOCKER_REPO:-'local'}/$image:${image_tag} --platform linux/$arch --build-arg ARCH=$arch --build-arg SERVICE_NAME=$image --build-arg GIT_SHA=$git_sha --build-arg GSSAPI=${GSSAPI:-'false'} .
|
||||
[[ $PUSH_IMAGE -eq 1 ]] && {
|
||||
docker push ${DOCKER_REPO:-'local'}/$image:${image_tag}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue