August 2019
Intermediate to advanced
242 pages
5h 45m
English
Pachyderm data pipelines are dependent on prebaked Docker images. The internet is full of Docker tutorials, so we'll keep things simple here and discuss what we need to do to take advantage of the simple deployment steps for any Go application.
Let's take a look at our Dockerfile:
FROM golang:1.12ADD main.go /main.goADD cifar/ /cifar/RUN export GOPATH=$HOME/go && cd / && go get -d -v .
And that's it! We're simply fetching the Go 1.12 image from Docker Hub and dropping our CIFAR CNN into our build. The final piece of our Dockerfile is a command to set GOPATH and meet our dependencies (for example, installing Gorgonia).
Execute the following command to build the Docker image and observe the output: docker ...
Read now
Unlock full access