Skip to content
Snippets Groups Projects
Commit 34399118 authored by Ray Garcia's avatar Ray Garcia :scream_cat:
Browse files

Building updated centos7 SB3 for late 2020

parent 6fabbdc7
No related branches found
No related tags found
No related merge requests found
# docker build . -f shellb3-cspp-py36.Dockerfile -t shellb3-cspp-py36:latest
# docker run -e SHELLB3_ARCHIVE_DIR=/dock -it --rm -v $HOME/dock:/dock -w /opt/shellb3-cspp-py36/ShellB3 shellb3-cspp-py36 /bin/bash -l -c "unset LANG; bash shallbethree.sh bin_dist"
FROM centos:6
RUN yum -y install gcc-gfortran gcc-c++ unzip perl patch byacc bison flex glibc-devel.i686 glibc-devel.x86_64 xz epel-release
RUN yum -y install git wget perl-TermReadKey \
&& wget --content-disposition https://packagecloud.io/github/git-lfs/packages/el/7/git-lfs-2.11.0-1.el7.x86_64.rpm/download.rpm \
&& wget https://packages.endpoint.com/rhel/6/os/x86_64/git-1.8.4-1.ep.x86_64.rpm \
&& wget https://packages.endpoint.com/rhel/6/os/x86_64/perl-Git-1.8.4-1.ep.noarch.rpm \
&& rpm -Uvh git-1.8.4-1.ep.x86_64.rpm perl-Git-1.8.4-1.ep.noarch.rpm \
&& rpm -ivh git-lfs-2.11.0-1.el7.x86_64.rpm
RUN test -d /opt || mkdir /opt
RUN test -d /work || mkdir /work
ARG BORT=develop
RUN cd /opt && git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git --branch ${BORT} --single-branch --depth 1 shellb3-cspp-py36
RUN ln -s shellb3-cspp-py36/ShellB3 /opt/ShellB3
RUN ln -s /opt/shellb3-cspp-py36 /work/ShellB3
ENV MAKEFLAGS=-j12
# was 37 originally but changed back due to ssl 1.0.2 constraint
ARG PYTHON_VERSION=36
ARG LINUXCPUFLAGS="-msse2 -fPIC"
WORKDIR /opt/shellb3-cspp-py36/ShellB3
RUN bash -e shallbethree.sh mk_gcc7
ARG SB3_TRIM=cspp
RUN bash -e shallbethree.sh mk_${SB3_TRIM}
WORKDIR /work
RUN echo export HOSTNAME=$(perl -ne '/.*"HOSTNAME": "(\w+)",/ && print "$1";' </opt/shellb3-cspp-py36/ShellB3/build/.build_env.json) >/etc/profile.d/99-build-host.sh
# docker build --build-arg BORT=develop . -f shellb3-cspp-py38.Dockerfile -t shellb3-cspp-py38:latest
# docker run -e SHELLB3_ARCHIVE_DIR=/dock -it --rm -v $HOME/dock:/dock -w /opt/shellb3-cspp-py38/ShellB3 shellb3-cspp-py38 /bin/bash -l -c "unset LANG; bash shallbethree.sh bin_dist"
FROM centos:7
RUN yum -y install gcc-gfortran gcc-c++ unzip perl patch byacc bison flex glibc-devel.i686 glibc-devel.x86_64 xz epel-release wget
RUN yum -y install git git-lfs
RUN test -d /opt || mkdir /opt
RUN test -d /work || mkdir /work
ARG BORT
RUN cd /opt && echo "using branch or tag ${BORT}" \
&& git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git --branch ${BORT} --single-branch --depth 1 shellb3-cspp-py38
RUN ln -s shellb3-cspp-py38/ShellB3 /opt/ShellB3
RUN ln -s /opt/shellb3-cspp-py38 /work/ShellB3
ENV MAKEFLAGS=-j12
ARG PYTHON_VERSION=38
ARG LINUXCPUFLAGS="-msse2 -fPIC"
WORKDIR /opt/shellb3-cspp-py38/ShellB3
RUN bash -e shallbethree.sh mk_gcc8
ARG TRIM=cspp
RUN bash -e shallbethree.sh mk_${TRIM}
WORKDIR /work
RUN echo export HOSTNAME=$(perl -ne '/.*"HOSTNAME": "(\w+)",/ && print "$1";' </opt/shellb3-cspp-py38/ShellB3/build/.build_env.json) >/etc/profile.d/99-build-host.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment