Skip to content

Commit 23658ab

Browse files
committed
update docker file
1 parent c7b2d07 commit 23658ab

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

docker/Dockerfile

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,60 @@ FROM centos:6.10
22

33
COPY CentOS-Base.repo /etc/yum.repos.d/
44

5+
56
RUN yum update -y && \
67
yum upgrade -y && \
78
yum install -y xz git libzip-devel curl wget zlib-devel xz-devel bzip2-devel openssl-devel libcurl-devel
89

9-
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && \
10+
RUN wget --no-check-certificate http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && \
1011
yum install -y devtoolset-2-gcc
1112

1213
RUN yum install -y devtoolset-2-binutils devtoolset-2-gcc-c++ && \
1314
source scl_source enable devtoolset-2 && \
1415
echo "source scl_source enable devtoolset-2" >> ~/.bashrc && \
15-
echo "source scl_source enable devtoolset-2" >> ~/.bash_profile && \
16-
wget --quiet https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
16+
echo "source scl_source enable devtoolset-2" >> ~/.bash_profile
17+
1718

1819
RUN source scl_source enable devtoolset-2 && \
19-
wget --quiet https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz && \
20+
wget --quiet --no-check-certificate https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz && \
2021
tar xzf m4-1.4.18.tar.gz && cd m4* && ./configure && make && make install && cd .. && rm -rf m4* && \
21-
wget --quiet http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz && \
22+
wget --no-check-certificate --quiet http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz && \
2223
tar xzf autoconf-2.69.tar.gz && \
2324
cd autoconf* && ./configure && make && make install && cd .. && rm -rf autoconf* && \
2425
git clone --depth 1 https://github.com/ebiggers/libdeflate.git && \
2526
cd libdeflate && make -j 2 CFLAGS='-fPIC -O3' libdeflate.a && \
2627
cp libdeflate.a /usr/local/lib && cp libdeflate.h /usr/local/include && \
2728
cd .. && rm -rf libdeflate && \
28-
git clone https://github.com/samtools/htslib && \
29-
cd htslib && git checkout 1.10 && autoheader && autoconf && \
30-
./configure --enable-libcurl --with-libdeflate && \
29+
git clone --recursive https://github.com/samtools/htslib && \
30+
cd htslib && git checkout 1.13 && autoheader && autoconf && \
31+
./configure --disable-libcurl --with-libdeflate && \
3132
cd .. && make -j4 CFLAGS="-fPIC -O3" -C htslib install && \
32-
echo "/usr/local/lib" >> etc/ld.so.conf && \
33-
ldconfig
33+
git clone https://github.com/samtools/bcftools && \
34+
cd bcftools && git checkout 1.13 && autoheader && autoconf && \
35+
./configure --disable-libcurl --with-libdeflate --disable-bcftools-plugins && \
36+
cd .. && make -j4 PLUGINS_ENABLED=no CFLAGS="-O3" -C bcftools install && \
37+
echo "/usr/local/lib" >> etc/ld.so.conf
3438

3539

3640
RUN cd / \
37-
&& wget --progress=dot:giga https://github.com/nim-lang/nightlies/releases/download/2020-12-22-devel-297c8e403d110dd872e070563328f4e0c734cd01/nim-1.5.1-linux_x64.tar.xz \
41+
&& wget --no-check-certificate --progress=dot:giga https://github.com/nim-lang/nightlies/releases/download/2020-12-22-devel-297c8e403d110dd872e070563328f4e0c734cd01/nim-1.5.1-linux_x64.tar.xz \
3842
&& tar Jxf nim-1.5.1-linux_x64.tar.xz \
3943
&& rm -f nim-1.5.1-linux_x64.tar.xz \
4044
&& mv nim-1.5.1 nim && \
4145
echo 'PATH=/nim/bin:/root/.nimble/bin:$PATH' >> ~/.bashrc && \
4246
echo 'PATH=/nim/bin:/root/.nimble/bin:$PATH' >> ~/.bash_profile
4347

4448

45-
RUN cd / && \
49+
RUN cd / && \
50+
ldconfig && \
4651
source scl_source enable devtoolset-2 && \
4752
export PATH=/nim/bin:$PATH && \
4853
git clone https://github.com/iffy/nim-argparse && cd nim-argparse && git checkout v0.10.1 && nimble install -y && \
4954
cd .. && rm -rf nim-argparse && \
5055
git clone --depth 1 git://github.com/brentp/slivar.git && \
5156
cd slivar && \
5257
sed -i 's/-no-pie//' nim.cfg && \
53-
nimble install -y && \
58+
nimble install -y && \
5459
nim c -d:release -d:danger -o:/usr/bin/slivar src/slivar && \
5560
mkdir -p /opt/slivar/ && cp js/slivar-functions.js /opt/slivar/ && \
5661
rm -rf /slivar /duktape-nim && slivar expr -h

0 commit comments

Comments
 (0)