From fe00eb341e1dbfed211f1219ab2dabe7be36577f Mon Sep 17 00:00:00 2001 From: sasgas Date: Wed, 24 Aug 2022 11:03:12 +0900 Subject: [PATCH] =?UTF-8?q?boost=201.80=20=EB=93=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 38 ++++++++++--------- install_cmake3232.sh | 9 ----- install_cmake3241.sh | 9 +++++ ...l_cryptopp860.sh => install_cryptopp870.sh | 4 +- install_ffmpeg501.sh => install_ffmpeg51.sh | 8 ++-- install_golang1182.sh | 7 ---- install_golang119.sh | 7 ++++ ...all_libwebp122.sh => install_libwebp124.sh | 6 +-- install_protobuf210.sh | 9 ----- install_protobuf215.sh | 9 +++++ ...all_python3913.sh => install_python3106.sh | 8 ++-- 11 files changed, 60 insertions(+), 54 deletions(-) delete mode 100755 install_cmake3232.sh create mode 100755 install_cmake3241.sh rename install_cryptopp860.sh => install_cryptopp870.sh (86%) rename install_ffmpeg501.sh => install_ffmpeg51.sh (82%) delete mode 100755 install_golang1182.sh create mode 100755 install_golang119.sh rename install_libwebp122.sh => install_libwebp124.sh (62%) delete mode 100755 install_protobuf210.sh create mode 100755 install_protobuf215.sh rename install_python3913.sh => install_python3106.sh (63%) diff --git a/Dockerfile b/Dockerfile index 65504ae..815962d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM centos:7 LABEL org.opencontainers.image.source https://github.com/castisdev/docker-centos7-legacy +# set timezone +RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime + # Install EPEL repo RUN yum install -y epel-release; yum -y clean all @@ -16,8 +19,12 @@ RUN yum install -y \ gcc-c++ \ make \ unzip \ + openssl \ openssl-devel \ openssl-static \ + openssl11 \ + openssl11-devel \ + openssl11-static \ git \ subversion \ tar \ @@ -53,17 +60,17 @@ RUN yum install -y \ ADD install_xercesc280.sh /script/ RUN /script/install_xercesc280.sh -ADD install_cmake3232.sh /script/ -RUN /script/install_cmake3232.sh +ADD install_cmake3241.sh /script/ +RUN /script/install_cmake3241.sh -ADD install_cryptopp860.sh /script/ -RUN /script/install_cryptopp860.sh +ADD install_cryptopp870.sh /script/ +RUN /script/install_cryptopp870.sh ADD install_googletest1100.sh /script/ RUN /script/install_googletest1100.sh -ADD install_python3913.sh /script/ -RUN /script/install_python3913.sh +ADD install_python3106.sh /script/ +RUN /script/install_python3106.sh ADD install_cpptools.sh /script/ RUN /script/install_cpptools.sh @@ -77,23 +84,20 @@ RUN /script/install_zsh59.sh ADD install_ninja1110.sh /script/ RUN /script/install_ninja1110.sh -ADD install_ffmpeg501.sh /script/ -RUN /script/install_ffmpeg501.sh +ADD install_ffmpeg51.sh /script/ +RUN /script/install_ffmpeg51.sh -ADD install_golang1182.sh /script/ -RUN /script/install_golang1182.sh +ADD install_golang119.sh /script/ +RUN /script/install_golang119.sh -ADD install_libwebp122.sh /script/ -RUN /script/install_libwebp122.sh +ADD install_libwebp124.sh /script/ +RUN /script/install_libwebp124.sh ADD install_wrk420.sh /script/ RUN /script/install_wrk420.sh -ADD install_protobuf210.sh /script/ -RUN /script/install_protobuf210.sh - -# set timezone -RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime +ADD install_protobuf215.sh /script/ +RUN /script/install_protobuf215.sh # ctail RUN wget -O - https://raw.githubusercontent.com/castisdev/ctail/master/install.sh --no-check-certificate | bash diff --git a/install_cmake3232.sh b/install_cmake3232.sh deleted file mode 100755 index c60e3ef..0000000 --- a/install_cmake3232.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -e -set -x #echo on -cd ~ -wget -nv https://github.com/Kitware/CMake/releases/download/v3.23.2/cmake-3.23.2-linux-x86_64.sh --no-check-certificate -chmod +x cmake-3.23.2-linux-x86_64.sh -./cmake-3.23.2-linux-x86_64.sh --skip-license --prefix=/usr/local -cmake --version -cd ~ -rm -rf cmake-* diff --git a/install_cmake3241.sh b/install_cmake3241.sh new file mode 100755 index 0000000..b02488c --- /dev/null +++ b/install_cmake3241.sh @@ -0,0 +1,9 @@ +#!/bin/bash -e +set -x #echo on +cd ~ +wget -nv https://github.com/Kitware/CMake/releases/download/v3.24.1/cmake-3.24.1-linux-x86_64.sh --no-check-certificate +chmod +x cmake-3.24.1-linux-x86_64.sh +./cmake-3.24.1-linux-x86_64.sh --skip-license --prefix=/usr/local +cmake --version +cd ~ +rm -rf cmake-* diff --git a/install_cryptopp860.sh b/install_cryptopp870.sh similarity index 86% rename from install_cryptopp860.sh rename to install_cryptopp870.sh index 665bd29..1471c11 100755 --- a/install_cryptopp860.sh +++ b/install_cryptopp870.sh @@ -1,8 +1,8 @@ #!/bin/bash -e set -x #echo on cd ~ -wget -nv --no-check-certificate https://www.cryptopp.com/cryptopp860.zip -unzip cryptopp860.zip -d cryptopp +wget -nv --no-check-certificate https://www.cryptopp.com/cryptopp870.zip +unzip cryptopp870.zip -d cryptopp cd cryptopp sed -e s/march=native/march=x86-64/g GNUmakefile > tmp_make mv -f tmp_make GNUmakefile diff --git a/install_ffmpeg501.sh b/install_ffmpeg51.sh similarity index 82% rename from install_ffmpeg501.sh rename to install_ffmpeg51.sh index 2fb55b8..0aa3d9e 100755 --- a/install_ffmpeg501.sh +++ b/install_ffmpeg51.sh @@ -2,9 +2,9 @@ set -x #echo on yum -y install libxml2-devel SDL2-devel alsa-lib-devel libXv-devel libX11-devel libXext-devel autoconf automake libtool yasm nasm; yum -y clean all cd ~ -wget -nv --no-check-certificate https://ffmpeg.org/releases/ffmpeg-5.0.1.tar.bz2 -tar xf ffmpeg-5.0.1.tar.bz2 -cd ffmpeg-5.0.1 +wget -nv --no-check-certificate https://ffmpeg.org/releases/ffmpeg-5.1.tar.bz2 +tar xf ffmpeg-5.1.tar.bz2 +cd ffmpeg-5.1 ./configure --enable-libxml2 --enable-shared make install -j$(nproc) @@ -12,4 +12,4 @@ echo "/usr/local/lib" >> /etc/ld.so.conf.d/ffmpeg.conf ldconfig cd ~ -rm -rf ffmpeg-5.0.1* +rm -rf ffmpeg-5.1* diff --git a/install_golang1182.sh b/install_golang1182.sh deleted file mode 100755 index 7af63e3..0000000 --- a/install_golang1182.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -e -set -x #echo on -cd ~ -wget -nv https://go.dev/dl/go1.18.2.linux-amd64.tar.gz -tar xvf go1.18.2.linux-amd64.tar.gz -tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz -rm -rf go1.18.2.linux-amd64.tar.gz diff --git a/install_golang119.sh b/install_golang119.sh new file mode 100755 index 0000000..38ff70e --- /dev/null +++ b/install_golang119.sh @@ -0,0 +1,7 @@ +#!/bin/bash -e +set -x #echo on +cd ~ +wget -nv https://go.dev/dl/go1.19.linux-amd64.tar.gz +tar xvf go1.19.linux-amd64.tar.gz +tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz +rm -rf go1.19.linux-amd64.tar.gz diff --git a/install_libwebp122.sh b/install_libwebp124.sh similarity index 62% rename from install_libwebp122.sh rename to install_libwebp124.sh index 2675abc..899e11f 100755 --- a/install_libwebp122.sh +++ b/install_libwebp124.sh @@ -1,9 +1,9 @@ #!/bin/bash -e set -x #echo on cd ~ -wget -nv https://github.com/webmproject/libwebp/archive/refs/tags/v1.2.2.tar.gz --no-check-certificate --content-disposition -tar xvf libwebp-1.2.2.tar.gz -cd libwebp-1.2.2 +wget -nv https://github.com/webmproject/libwebp/archive/refs/tags/v1.2.4.tar.gz --no-check-certificate --content-disposition +tar xvf libwebp-1.2.4.tar.gz +cd libwebp-1.2.4 ./autogen.sh ./configure make install -j$(nproc) diff --git a/install_protobuf210.sh b/install_protobuf210.sh deleted file mode 100755 index f90fab3..0000000 --- a/install_protobuf210.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -e -set -x #echo on -cd ~ -wget -nv --no-check-certificate --content-disposition https://github.com/protocolbuffers/protobuf/releases/download/v21.0/protoc-21.0-linux-x86_64.zip -unzip protoc-21.0-linux-x86_64.zip -d protoc-21.0-linux-x86_64 -mv protoc-21.0-linux-x86_64/bin/* /usr/local/bin/ -mv protoc-21.0-linux-x86_64/include/* /usr/local/include/ -cd ~ -rm -rf protoc-21.0-linux-x86_64* diff --git a/install_protobuf215.sh b/install_protobuf215.sh new file mode 100755 index 0000000..c6f8456 --- /dev/null +++ b/install_protobuf215.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e +set -x #echo on +cd ~ +wget -nv --no-check-certificate --content-disposition https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip +unzip protoc-21.5-linux-x86_64.zip -d protoc-21.5-linux-x86_64 +mv protoc-21.5-linux-x86_64/bin/* /usr/local/bin/ +mv protoc-21.5-linux-x86_64/include/* /usr/local/include/ +cd ~ +rm -rf protoc-21.5-linux-x86_64* diff --git a/install_python3913.sh b/install_python3106.sh similarity index 63% rename from install_python3913.sh rename to install_python3106.sh index 66f427c..82e2ff2 100755 --- a/install_python3913.sh +++ b/install_python3106.sh @@ -3,9 +3,11 @@ set -x #echo on cd ~ yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel; yum clean all -y -wget -nv https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tar.xz -tar xf Python-3.9.13.tar.xz -cd Python-3.9.13 +wget -nv https://www.python.org/ftp/python/3.10.6/Python-3.10.6.tar.xz +tar xf Python-3.10.6.tar.xz +cd Python-3.10.6 +export CFLAGS=$(pkg-config --cflags openssl11) +export LDFLAGS=$(pkg-config --libs openssl11) ./configure --prefix=/usr/local make install -j$(nproc) cd ~