containers/

directory
v0.0.0-...-86d22a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2017 License: Apache-2.0

README

Containers

Our data analyses and models are all but worthless if they stay on our laptops. We need to be able to get our analyses out into the wild of our company's infrastructure, and we need to make sure that our applications behave as expected in that environment. Containers allow us to package up our analysis code into a portable unit that will run on any machine (or at least any machine with Docker) and behave the exact same way as it behaved on our local machine.

Notes

  • A Docker "image" is a portable set of layers that includes our application and things that it needs to run properly.
  • A Docker "container" is a running instance of a Docker image.
  • You build a Docker image based on a Dockerfile.
  • The best practice for Go devs is to build your Go binary outside of Docker and add this binary to the Docker image (assuming you aren't relying on cgo).

Introduction to Docker
Building minimal Go Docker images

Code Review

Containerize training of a linear regression model with a single ind. var.
Containerize linear regression prediction

Exercises

Exercise 1

Containerize the multiple linear regression model implemented in template1.go. Specifically, create a Dockerfile and Makefile that builds the go binary, puts it in a Docker image, and uploads the image to Docker Hub.

Template | Answer


All material is licensed under the Apache License Version 2.0, January 2004.

Directories

Path Synopsis
Sample program to train a regression model with a single independent variable.
Sample program to train a regression model with a single independent variable.
Sample program to predict based on a persisted regression model.
Sample program to predict based on a persisted regression model.
exercises
exercise1
Sample program to train a regression model with multiple independent variables.
Sample program to train a regression model with multiple independent variables.
template1
Sample program to train a regression model with multiple independent variables.
Sample program to train a regression model with multiple independent variables.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL