Page MenuHome

build.sh
No OneTemporary

build.sh

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo $DIR
if [[ $1 == 'pro' || $1 == 'dev' ]]; then
# Copy requirements.txt into pro folder
cp ../requirements.txt $1/requirements.txt
# Build image
docker build -t armadillica/pillar_$1 $1
# Remove requirements.txt
rm $1/requirements.txt
else
echo "POS. Your options are 'pro' or 'dev'"
fi

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Dec 3, 11:39 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/3e/d4e818abcf6f27ac83f909434245

Event Timeline