Skip to content

Instantly share code, notes, and snippets.

@tsuchm
Created October 24, 2019 07:11
Show Gist options
  • Select an option

  • Save tsuchm/73ebd66ea4f38ae13ab4feb88f578149 to your computer and use it in GitHub Desktop.

Select an option

Save tsuchm/73ebd66ea4f38ae13ab4feb88f578149 to your computer and use it in GitHub Desktop.
Dockerfile to build a container environment which is similar to a login server
FROM centos:centos7
RUN yum update -y
RUN yum install epel-release centos-release-scl -y
# yum groupinstall "Development Tools" causes an error, described at https://qiita.com/madaran0805/items/1cac9c921cec4e8a23e7
RUN yum groupinstall base "Development Tools" --setopt=group_package_types=mandatory,default,optional -y
RUN yum install \
tcsh \
csh \
zsh \
ksh \
bash \
emacs \
kernel-devel \
kernel-headers \
perl-devel \
perl-CPAN \
perl-JSON \
perl-LDAP \
perl-libwww-perl \
perl-libxml-perl \
perl-XML-LibXML \
python-devel \
python-pip \
python3-devel \
python3-pip \
ruby-devel \
gcc-gfortran \
ImageMagick \
zlib-devel \
bzip2 \
bzip2-devel \
readline-devel \
sqlite \
sqlite-devel \
openssl-devel \
xz \
xz-devel \
libffi-devel \
findutils \
lv \
blas \
cube \
scl-utils \
devtoolset-7 \
-y
# For more detail, see https://software.intel.com/en-us/articles/installing-intel-parallel-studio-xe-runtime-2019-using-yum-repository
RUN rpm --import https://yum.repos.intel.com/2019/setup/RPM-GPG-KEY-intel-psxe-runtime-2019
RUN rpm -Uhv https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm
RUN yum install intel-psxe-runtime -y
RUN yum install environment-modules -y
# Create Japanese locale and set it as the default locale. For more detail, see https://qiita.com/YuukiMiyoshi/items/f389ea366060537b5cd9
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG="ja_JP.UTF-8" \
LC_CTYPE="ja_JP.UTF-8" \
LC_NUMERIC="C" \
LC_TIME="ja_JP.UTF-8" \
LC_COLLATE="C" \
LC_MONETARY="ja_JP.UTF-8" \
LC_MESSAGES="ja_JP.UTF-8" \
LC_PAPER="ja_JP.UTF-8" \
LC_NAME="ja_JP.UTF-8" \
LC_ADDRESS="ja_JP.UTF-8" \
LC_TELEPHONE="ja_JP.UTF-8" \
LC_MEASUREMENT="ja_JP.UTF-8" \
LC_IDENTIFICATION="ja_JP.UTF-8"
RUN cd /etc && ln -sf ../usr/share/zoneinfo/Asia/Tokyo localtime
RUN perl -pi -e s/en_US/ja_JP/ /etc/locale.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment