Bootstrap: docker
From: centos:7

%help
CentOS 7 containter that can build ChimeraX

%labels
    Maintainer "Chimera Staff <chimera-staff@cgl.ucsf.edu>"
    org.label-schema.schema-version "1.0"
    org.label-scheme.description "This image has the right compiler environment to build and run ChimeraX"

%post 
    yum --releasever=7 -y update
    yum -y install centos-release-scl epel-release
    yum-config-manager --enable rhel-server-rhscl-7-rpms
    yum -y --setopt=exclude='*.i?86' install devtoolset-3 devtoolset-3-libstdc++-devel devtoolset-3-binutils-devel \
	chrpath patch openssh-clients rsync ca-certificates \
	autoconf automake libtool pkgconfig \
	flex bison yasm unzip tar gzip bzip2 xz p7zip \
	centos-packager rpm-build rpmdevtools rpmlint \
	ImageMagick \
	alsa-lib-devel \
	atk-devel \
	cairo-devel \
	cairo-gobject-devel \
	cairo-tools \
	cups-devel \
	dbus-libs \
	expat-devel \
	fftw-devel \
	fontconfig-devel \
	freetype-devel \
	gdk-pixbuf2-devel \
	glib2-devel \
	glibc-devel \
	gtk3-devel \
	hdf5-devel \
	libdrm-devel \
	libgcc \
	libstdc++ \
	libX11-devel \
	libxcb-devel \
	libXcomposite-devel \
	libXcursor-devel \
	libXdamage-devel \
	libXext-devel \
	libffi-devel \
	libXfixes-devel \
	libXi-devel \
	libXrandr-devel \
	libXrender-devel \
	libXtst-devel \
	mesa-libEGL \
	mesa-libGL-devel \
	mesa-libGLU-devel \
	mesa-private-llvm-devel \
	mysql-libs \
	nspr-devel \
	nss-devel \
	nss-util-devel \
	openssl \
	openssl-devel \
	pango-devel \
	pulseaudio-libs-devel \
	xdg-utils \
	xz-devel \
	zlib-devel

%environment
    export PATH=/usr/bin:/usr/sbin:/bin:/sbin
    export SHELL=/bin/bash
    export LANG=en_US.UTF-8
    source /opt/rh/devtoolset-3/enable
