forked from microsoft/presidio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·17 lines (14 loc) · 878 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# This script is a helper to run the local docker build only. This does not deploy the service.
# There is no error checking in this script, it expects a local docker instance to be running.
# The make commands will take a very long time to run the first time as the docker images themselves
# take a long time to create. Expect to wait at least an hour or more, depending on machine and
# network capabilities.
# Build the images
DOCKER_REGISTRY=${DOCKER_REGISTRY:-presidio}
PRESIDIO_LABEL=${PRESIDIO_LABEL:-latest}
NETWORKNAME=${NETWORKNAME:-presidio-network}
make DOCKER_REGISTRY=${DOCKER_REGISTRY} PRESIDIO_LABEL=${PRESIDIO_LABEL} docker-build-deps
make DOCKER_REGISTRY=${DOCKER_REGISTRY} PRESIDIO_LABEL=${PRESIDIO_LABEL} docker-build
# Run the containers
NETWORKNAME=$NETWORKNAME DOCKER_REGISTRY="$DOCKER_REGISTRY" PRESIDIO_LABEL="$PRESIDIO_LABEL" ./run.sh