@@ -2,55 +2,60 @@ FROM centos:6.10
2
2
3
3
COPY CentOS-Base.repo /etc/yum.repos.d/
4
4
5
+
5
6
RUN yum update -y && \
6
7
yum upgrade -y && \
7
8
yum install -y xz git libzip-devel curl wget zlib-devel xz-devel bzip2-devel openssl-devel libcurl-devel
8
9
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 && \
10
11
yum install -y devtoolset-2-gcc
11
12
12
13
RUN yum install -y devtoolset-2-binutils devtoolset-2-gcc-c++ && \
13
14
source scl_source enable devtoolset-2 && \
14
15
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
+
17
18
18
19
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 && \
20
21
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 && \
22
23
tar xzf autoconf-2.69.tar.gz && \
23
24
cd autoconf* && ./configure && make && make install && cd .. && rm -rf autoconf* && \
24
25
git clone --depth 1 https://github.com/ebiggers/libdeflate.git && \
25
26
cd libdeflate && make -j 2 CFLAGS='-fPIC -O3' libdeflate.a && \
26
27
cp libdeflate.a /usr/local/lib && cp libdeflate.h /usr/local/include && \
27
28
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 && \
31
32
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
34
38
35
39
36
40
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 \
38
42
&& tar Jxf nim-1.5.1-linux_x64.tar.xz \
39
43
&& rm -f nim-1.5.1-linux_x64.tar.xz \
40
44
&& mv nim-1.5.1 nim && \
41
45
echo 'PATH=/nim/bin:/root/.nimble/bin:$PATH' >> ~/.bashrc && \
42
46
echo 'PATH=/nim/bin:/root/.nimble/bin:$PATH' >> ~/.bash_profile
43
47
44
48
45
- RUN cd / && \
49
+ RUN cd / && \
50
+ ldconfig && \
46
51
source scl_source enable devtoolset-2 && \
47
52
export PATH=/nim/bin:$PATH && \
48
53
git clone https://github.com/iffy/nim-argparse && cd nim-argparse && git checkout v0.10.1 && nimble install -y && \
49
54
cd .. && rm -rf nim-argparse && \
50
55
git clone --depth 1 git://github.com/brentp/slivar.git && \
51
56
cd slivar && \
52
57
sed -i 's/-no-pie//' nim.cfg && \
53
- nimble install -y && \
58
+ nimble install -y && \
54
59
nim c -d:release -d:danger -o:/usr/bin/slivar src/slivar && \
55
60
mkdir -p /opt/slivar/ && cp js/slivar-functions.js /opt/slivar/ && \
56
61
rm -rf /slivar /duktape-nim && slivar expr -h
0 commit comments