-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild_images.bash
More file actions
executable file
·34 lines (27 loc) · 1.31 KB
/
build_images.bash
File metadata and controls
executable file
·34 lines (27 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# This script builds the container images using the local docker CLI. The first argument is the image ref account/user name, the second argument is the tag name.
# Requirements: Docker CLI
# Example usage: build_images.bash dltk4splunk devel
set -e
set -x
BUILD_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
DOCKER_ACCOUNT=$1
BUILD_TAG_NAME=$2
source $BUILD_DIR/set_image_refs.bash
IMAGES_DIR=$BUILD_DIR/../images
# build spark-runtime images
cd $IMAGES_DIR/spark
docker build --rm -f "./driver/thin.Dockerfile" -t $DLTK_SPARK_RUNTIME_DRIVER_IMAGE .
docker build --rm -f "./driver/thin.Dockerfile" -t $DLTK_SPARK_RUNTIME_EXECUTOR_IMAGE .
docker build --rm -f "./driver-proxy/Dockerfile" -t $DLTK_SPARK_RUNTIME_DRIVER_PROXY_IMAGE .
docker build --rm -f "./editor/thin.Dockerfile" -t $DLTK_SPARK_RUNTIME_EDITOR_IMAGE .
docker build --rm -f "./inbound-relay/Dockerfile" -t $DLTK_SPARK_RUNTIME_INBOUND_RELAY_IMAGE .
docker build --rm -f "./outbound-relay/Dockerfile" -t $DLTK_SPARK_RUNTIME_OUTBOUND_RELAY_IMAGE .
# build base-runtime image
cd $IMAGES_DIR/base
./build.sh golden-image-gpu-4 phdrieger/ 4.0.0
docker tag phdrieger/mltk-container-golden-image-gpu-4:4.0.0 $DLTK_BASE_RUNTIME_IMAGE
# build h2o-runtime image
cd $IMAGES_DIR/h2o
./build.sh
docker tag dltk4splunk/h2o-runtime:devel $DLTK_H2O_RUNTIME_IMAGE