Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 25cbf22

Browse files
authored
Merge pull request #159 from facebookresearch/fix-docker-trusty
fix flaky errors in trusty conda docker image
2 parents 548e319 + a847418 commit 25cbf22

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docker/common/install_base.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
set -ex
44

55
# Install common dependencies
6+
# cleanup again to avoid any sha mismatch
7+
apt-get clean
8+
rm -rf /var/lib/apt/lists/*
69
apt-get update
710
apt-get install -y --no-install-recommends \
811
curl \
@@ -27,6 +30,9 @@ apt-get install -y --no-install-recommends \
2730
software-properties-common \
2831
build-essential
2932

33+
# cleanup again to avoid any sha mismatch
34+
apt-get clean
35+
rm -rf /var/lib/apt/lists/*
3036
# setup gcc
3137
add-apt-repository ppa:ubuntu-toolchain-r/test
3238
apt-get update

docker/ubuntu-cuda-conda/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERS
66

77
ENV DEBIAN_FRONTEND noninteractive
88

9-
RUN apt-get update
10-
119
# CUDA paths - we install cudnn ourselves (only Trusty) so we can match the version with
1210
# PyTorch conda install
1311
ARG CUDA_VERSION
@@ -22,6 +20,8 @@ ARG GCC_VERSION
2220
ARG CMAKE_VERSION
2321
ADD ./common/install_base.sh install_base.sh
2422
RUN bash ./install_base.sh && rm install_base.sh
23+
24+
# Setup ccache env variables
2525
ENV PATH /usr/local/bin/ccache:$PATH
2626
ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
2727
ENV PATH /usr/local/cuda/bin:$PATH

docker/ubuntu-cuda/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERS
66

77
ENV DEBIAN_FRONTEND noninteractive
88

9-
RUN apt-get update
10-
119
# CUDA paths
1210
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/cuda/targets/x86_64-linux/lib/stubs/:$LD_LIBRARY_PATH
1311
ENV PATH /usr/local/bin:/usr/local/cuda/bin:$PATH
@@ -17,6 +15,8 @@ ARG GCC_VERSION
1715
ARG CMAKE_VERSION
1816
ADD ./common/install_base.sh install_base.sh
1917
RUN bash ./install_base.sh && rm install_base.sh
18+
19+
# Setup ccache env variables
2020
ENV PATH /usr/local/bin/ccache:$PATH
2121
ENV CUDA_NVCC_EXECUTABLE /usr/local/bin/nvcc
2222
ENV PATH /usr/local/cuda/bin:$PATH

0 commit comments

Comments
 (0)