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

Commit 095b0c3

Browse files
authored
Merge pull request #140 from facebookresearch/fix-errors
Fix small errors in Jenkins CI docker
2 parents f26e388 + 9166a7e commit 095b0c3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.jenkins/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ source /etc/lsb-release
1111
if [[ "$DISTRIB_RELEASE" == 14.04 ]]; then
1212
if which conda &> /dev/null; then
1313
echo "Building TC in conda env"
14+
source activate
1415
conda install -y -c pytorch pytorch
1516
conda install -y pyyaml
1617
WITH_PYTHON_C2=OFF CLANG_PREFIX=/usr/local/clang+llvm-tapir5.0 BUILD_TYPE=Release ./build.sh --all
@@ -23,6 +24,7 @@ fi
2324
if [[ "$DISTRIB_RELEASE" == 16.04 ]]; then
2425
if which conda &> /dev/null; then
2526
echo "Building TC in conda env"
27+
source activate
2628
conda install -y pytorch cuda90 -c pytorch
2729
conda install -y pyyaml
2830
WITH_PYTHON_C2=OFF CLANG_PREFIX=/usr/local/clang+llvm-tapir5.0 BUILD_TYPE=Release ./build.sh --all

docker/common/add_jenkins_user.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -ex
44

5+
apt-get update
6+
apt-get install sudo
7+
58
# Mirror jenkins user in container
69
echo "jenkins:x:$JENKINS_UID:$JENKINS_GID::/var/lib/jenkins:" >> /etc/passwd
710
echo "jenkins:x:$JENKINS_GID:" >> /etc/group

docker/ubuntu-cuda-conda/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,4 @@ RUN python --version
5959
RUN which cmake
6060
RUN cmake --version
6161

62-
# activate the root conda environment
63-
RUN source activate
64-
6562
CMD ["bash"]

0 commit comments

Comments
 (0)