Merge pull request #60 from thewtex/no-tty-sudo

No tty sudo
This commit is contained in:
Matt McCormick 2016-11-04 10:17:18 -04:00 committed by GitHub
commit 4b7265bde0
4 changed files with 19 additions and 24 deletions

View File

@ -56,8 +56,8 @@ browser-asmjs.test: browser-asmjs
# #
# manylinux-x64 # manylinux-x64
# #
manylinux-x64/Dockerfile: manylinux-x64/Dockerfile.in common.docker manylinux-x64/Dockerfile: manylinux-x64/Dockerfile.in common.docker common.manylinux
sed '/common.docker/ r common.docker' manylinux-x64/Dockerfile.in > manylinux-x64/Dockerfile sed -e '/common.docker/ r common.docker' -e '/common.manylinux/ r common.manylinux' manylinux-x64/Dockerfile.in > manylinux-x64/Dockerfile
manylinux-x64: manylinux-x64/Dockerfile manylinux-x64: manylinux-x64/Dockerfile
$(DOCKER) build -t $(ORG)/manylinux-x64 \ $(DOCKER) build -t $(ORG)/manylinux-x64 \
@ -74,8 +74,8 @@ manylinux-x64.test: manylinux-x64
# #
# manylinux-x86 # manylinux-x86
# #
manylinux-x86/Dockerfile: manylinux-x86/Dockerfile.in common.docker manylinux-x86/Dockerfile: manylinux-x86/Dockerfile.in common.docker common.manylinux
sed '/common.docker/ r common.docker' manylinux-x86/Dockerfile.in > manylinux-x86/Dockerfile sed -e '/common.docker/ r common.docker' -e '/common.manylinux/ r common.manylinux' manylinux-x86/Dockerfile.in > manylinux-x86/Dockerfile
manylinux-x86: manylinux-x86/Dockerfile manylinux-x86: manylinux-x86/Dockerfile
$(DOCKER) build -t $(ORG)/manylinux-x86 \ $(DOCKER) build -t $(ORG)/manylinux-x86 \

13
common.manylinux Normal file
View File

@ -0,0 +1,13 @@
RUN cd /opt && \
wget "http://smarden.org/runit/runit-2.1.2.tar.gz" && \
tar xvzf runit-2.1.2.tar.gz && \
cd admin/runit-2.1.2 && \
./package/install
COPY manylinux-common/install-python-packages.sh /usr/local/bin
RUN /usr/local/bin/install-python-packages.sh
RUN yum -y install sudo && \
sed -i 's/Defaults requiretty/#Defaults requiretty/' /etc/sudoers && \
visudo -c

View File

@ -3,16 +3,7 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
#include "common.docker" #include "common.docker"
RUN cd /opt && \ #include "common.manylinux"
wget "http://smarden.org/runit/runit-2.1.2.tar.gz" && \
tar xvzf runit-2.1.2.tar.gz && \
cd admin/runit-2.1.2 && \
./package/install
COPY manylinux-common/install-python-packages.sh /usr/local/bin
RUN /usr/local/bin/install-python-packages.sh
RUN yum -y install sudo
ENV CROSS_TRIPLE x86_64-linux-gnu ENV CROSS_TRIPLE x86_64-linux-gnu
ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin

View File

@ -3,16 +3,7 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
#include "common.docker" #include "common.docker"
RUN cd /opt && \ #include "common.manylinux"
wget "http://smarden.org/runit/runit-2.1.2.tar.gz" && \
tar xvzf runit-2.1.2.tar.gz && \
cd admin/runit-2.1.2 && \
./package/install
COPY manylinux-common/install-python-packages.sh /usr/local/bin
RUN /usr/local/bin/install-python-packages.sh
RUN yum -y install sudo
ENV CROSS_TRIPLE i686-linux-gnu ENV CROSS_TRIPLE i686-linux-gnu
ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin