-
Notifications
You must be signed in to change notification settings - Fork 34
/
bulk_compile.sh
executable file
·27 lines (24 loc) · 1.69 KB
/
bulk_compile.sh
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
#!/bin/bash
echo '__________________________________________________________________________________________________________________'
echo ' ________ ________ ___ ___ ___ ________ ___ __ ________ ________ ________ ___ '
echo '|\ ____\|\ __ \|\ \ |\ \|\ \|\ ___ \|\ \|\ \ |\ ___ \|\ ____\|\ ___ \|\ \ '
echo '\ \ \___|\ \ \|\ \ \ \ \ \ \\\ \ \ \\ \ \ \ \/ /|_ \ \ \_|\ \ \ \___|\ \ \_|\ \ \ \ '
echo ' \ \_____ \ \ ____\ \ \ \ \ \\\ \ \ \\ \ \ \ ___ \ \ \ \ \\ \ \_____ \ \ \ \\ \ \ \ '
echo ' \|____|\ \ \ \___|\ \ \____\ \ \\\ \ \ \\ \ \ \ \\ \ \ \ \ \_\\ \|____|\ \ \ \_\\ \ \ \____ '
echo ' ____\_\ \ \__\ \ \_______\ \_______\ \__\\ \__\ \__\\ \__\ \ \_______\____\_\ \ \_______\ \_______\'
echo ' |\_________\|__| \|_______|\|_______|\|__| \|__|\|__| \|__| \|_______|\_________\|_______|\|_______|'
echo ' \|_________| \|_________| '
echo '__________________________________________________________________________________________________________________'
echo 'Splunk> DSDL Container Build Script for Custom Data-Science Runtimes'
if [ -z "$1" ]; then
tag_file="tag_mapping.csv"
echo "No tag file specified. Using default tag_file: ${tag_file}"
else
tag_file="$1"
fi
# Read the first column values (excluding header) using awk
awk -F, 'NR>1 {print $1}' $tag_file | while read tag; do
# $line now contains the value from the first column
echo "Processing: $tag"
./compile_image_python_requirements.sh $tag >> bulk_compile.log
done