Bootstrap: yum
OSVersion: 8
MirrorURL: http://mirror.centos.org/centos-8/8/BaseOS/x86_64/os/
Include: yum

%files
    Genome-downloader_companion.py /opt/

%environment
    export PATH=/opt/usr/local/bin:$PATH

%post
    #Update part
    #permission part
    chmod -R 777 /opt #chmod775 can be enough
    chmod -R 777 /root #chmod775 can be enough
    #modules
    yum install -y git
    yum install -y automake autoconf
    yum install -y make
    yum install -y zlib-devel    
    #yum install -y bzip2-devel
    yum install -y glibc-devel
    yum install -y xz-devel
    yum install -y zip unzip
    yum install -y gcc gcc-c++ make 
    yum install -y epel-release
    yum install -y cmake3
    #ln -s /usr/bin/cmake3 /usr/bin/cmake
    yum install -y rsync
    #yum install -y https://repo.ius.io/ius-release-el7.rpm
    yum install -y python3
    yum install -y wget
    yum install -y epel-release
    yum install -y boost boost-thread boost-devel
    yum install -y perl-CPAN
    yum install -y cpanminus
    yum install -y patch
    yum install -y java-11-openjdk-devel
    yum install -y capnproto
    yum install -y perl-LWP-Protocol-https    
    yum install -y tar
    yum -y install glibc-locale-source
    localedef -i en_US -f UTF-8 en_US.UTF-8
    pip3 install click
    ln -s /usr/bin/python3 /usr/bin/python    

    #capnm module + BMC
    cpanm LWP::Simple --force
    cpanm aliased --force
    cpanm Bio::MUST::Core
    cpanm Bio::MUST::Drivers
    cpanm Bio::MUST::Apps::FortyTwo

    #Companion
    cd /opt/
    mkdir COMPANION
    mv Genome-downloader_companion.py COMPANION/

%runscript
    echo "This container contains : Bio::MUST::Core 2020070 "

%help
    This is a container for BMC
 
%labels
    Author Luc Cornet
    Version v0.0.1
