Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes based on review comments.
  • Loading branch information
Chris Meyers committed May 17, 2017
commit 356a23701a06e3d4b01783a413330a7e8ba50652
3 changes: 3 additions & 0 deletions containers/base/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
# Save GPL source packages
mkdir -p /srcs && \
cd /srcs && \
# We have to use allow-unauthenticated since Ubuntu can't verify the keys for the source
# repos. We don't care since we only download these sources for licensing reasons and
# don't actually use them.
apt-get source --allow-unauthenticated -d wget git python-zmq ca-certificates pkg-config libpng-dev && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a note about why we need --allow-unauthenticated? (Is it a temporary thing?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. It's because Ubuntu can't find the keys to the source git repos. Since we only download these for licensing reasons and don't actually use them, I think it's fine. The apt-get installs above are still authenticated.

wget --progress=dot:mega https://mirrors.kernel.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2 && \
cd / && \
Expand Down
2 changes: 1 addition & 1 deletion containers/base/build.gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi

trap 'rm -rf pydatalab' exit

BASE_IMAGE_SUBSTITUTION="s/_base_image_/nvidia\/cuda:8.0-cudnn5-devel-ubuntu16.04/"
BASE_IMAGE_SUBSTITUTION="s|_base_image_|nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04|"
cat Dockerfile.in | sed $BASE_IMAGE_SUBSTITUTION > Dockerfile
docker build ${DOCKER_BUILD_ARGS} -t datalab-core-gpu .
rm Dockerfile
Expand Down