December 2018
Intermediate to advanced
268 pages
8h 23m
English
Now, we've got a Dockerfile ready to go. Let's create the build script that will build this container and allow us to work inside of this Docker container. Create a folder in the full-gan folder called data. Then, create a file in the full-gan folder called run.sh. A .sh file is a shell script and will allow us to run a series of commands, as if we are running from the Terminal. Open the run.sh script and type the following commands:
#/bin/bashnvidia-docker build -t ch3 .
As in Chapter 2, Data First – Easy Environment and Data Prep, /bin/bash tells the interpreter to use the bash interpreter for this script. The NVIDIA-Docker container command allows us to build the image with the tag ch3 and uses the Dockerfile in the current ...
Read now
Unlock full access