gpu-jupyter/.staroid/build.sh

22 lines
399 B
Bash
Raw Permalink Normal View History

2020-08-03 22:36:59 +00:00
#!/bin/bash
# Custom builder script for Skaffold
# https://skaffold.dev/docs/pipeline-stages/builders/custom/
#
# generate Dockerfile
2020-11-21 12:54:37 +00:00
./generate-Dockerfile.sh --no-datascience-notebook
2020-08-03 22:36:59 +00:00
cd .build
2020-11-21 12:54:37 +00:00
## apply staroid patch
#cat ../.staroid/Dockerfile.staroid >> Dockerfile
2020-08-04 00:44:20 +00:00
2020-08-03 22:36:59 +00:00
# print Dockerfile
cat Dockerfile
# build
docker build -f Dockerfile -t $IMAGE .
if $PUSH_IMAGE; then
docker push $IMAGE
fi