-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
23 lines (21 loc) · 689 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Define building variables
TF_VERSION=2.0.0a0-gpu-py3
USER_PASS=*****
JUPYTER_PASS=*****
GIT_UNAME=*****
GIT_MAIL=****
# Build
docker build \
-t dbuades/tensorflow:$TF_VERSION \
--build-arg VERSION=$TF_VERSION \
--build-arg UNAME="$(id -un)" \
--build-arg UPWD=$USER_PASS \
--build-arg UID="$(id -u)" \
--build-arg GID="$(id -g)" \
--build-arg JUPYTER_PWD="$(python -c "from hash_pass import hash_pass; print(hash_pass('$JUPYTER_PASS'))")" \
--build-arg SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)" \
--build-arg SSH_PORT="2222" \
--build-arg GIT_UNAME=$GIT_UNAME \
--build-arg GIT_MAIL=$GIT_MAIL \
--build-arg GIT_KEY="$(cat ~/.ssh/id_github)" .