Warning, /iDDS/main/tools/container/singularity/idds_nevergrad.def is written in an unsupported language. File is not indexed.
0001 Bootstrap: docker
0002 From: centos:7
0003
0004 %files
0005 hyperparameteropt_nevergrad.py /opt
0006
0007 %post
0008 yum update -q -y\
0009 && yum install -q -y wget make git gcc openssl-devel bzip2-devel libffi-devel \
0010 && cd /usr/src \
0011 && wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
0012 && tar xzf Python-3.7.4.tgz \
0013 && cd Python-3.7.4 \
0014 && ./configure --enable-optimizations \
0015 && make altinstall \
0016 && rm -rf /usr/src/Python-3.7.4.tgz \
0017 && yum clean all \
0018 && echo "set python3.7 as default" \
0019 && alternatives --install /usr/bin/python python /usr/bin/python2 50 \
0020 && alternatives --install /usr/bin/python python /usr/local/bin/python3.7 70 \
0021 && alternatives --set python /usr/local/bin/python3.7 \
0022 && echo "symlink pip" \
0023 && ln -s /usr/local/bin/pip3.7 /usr/bin/pip \
0024 && pip install --no-cache-dir --upgrade pip pipenv setuptools wheel \
0025 && ln -s /usr/local/bin/pipenv /usr/bin/pipenv \
0026 && echo "set the locale" \
0027 && localedef --quiet -c -i en_US -f UTF-8 en_US.UTF-8
0028
0029 pip install --upgrade pip
0030 pip install nevergrad
0031
0032 %environment
0033 # export LC_ALL=C
0034 # export PATH=/usr/games:$PATH
0035 export LANG=en_US.UTF-8
0036 export LANGUAGE=en_US:en
0037 export LC_ALL=en_US.UTF-8
0038
0039 %labels
0040 Maintainer iDDS_HPO_Nevergrad(wen.guan@cern.ch)
0041 Version v1.0
0042
0043 %runscript
0044 echo "iDDS Nevergrad hyper parameter optimization plugin"