Skip to content

Commit

Permalink
Merge pull request sclorg#118 from tchughesiv/rhel7
Browse files Browse the repository at this point in the history
ensure proper rpms installed
  • Loading branch information
hhorak authored May 26, 2017
2 parents 42e56ab + ef46e0e commit ee76c59
Showing 1 changed file with 40 additions and 38 deletions.
78 changes: 40 additions & 38 deletions Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -39,44 +39,46 @@ ENV BASH_ENV=/opt/app-root/etc/scl_enable \
# application runtime execution.
# TODO: Use better UID and GID values
RUN yum repolist > /dev/null && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
INSTALL_PKGS="autoconf \
automake \
bsdtar \
bzip2 \
findutils \
gcc-c++ \
gd-devel \
gdb \
gettext \
git \
libcurl-devel \
libxml2-devel \
libxslt-devel \
lsof \
make \
mariadb-devel \
mariadb-libs \
openssl-devel \
patch \
postgresql-devel \
procps-ng \
scl-utils \
sqlite-devel \
tar \
unzip \
wget \
which \
yum-utils \
zlib-devel" && \
mkdir -p ${HOME}/.pki/nssdb && \
chown -R 1001:0 ${HOME}/.pki && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y && \
useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin \
-c "Default Application User" default && \
chown -R 1001:0 /opt/app-root
yum-config-manager --disable \* &> /dev/null && \
yum-config-manager --enable rhel-7-server-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
INSTALL_PKGS="autoconf \
automake \
bsdtar \
bzip2 \
findutils \
gcc-c++ \
gd-devel \
gdb \
gettext \
git \
libcurl-devel \
libxml2-devel \
libxslt-devel \
lsof \
make \
mariadb-devel \
mariadb-libs \
openssl-devel \
patch \
postgresql-devel \
procps-ng \
scl-utils \
sqlite-devel \
tar \
unzip \
wget \
which \
yum-utils \
zlib-devel" && \
mkdir -p ${HOME}/.pki/nssdb && \
chown -R 1001:0 ${HOME}/.pki && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y && \
useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin \
-c "Default Application User" default && \
chown -R 1001:0 /opt/app-root

# Copy executable utilities.
COPY bin/ /usr/bin/
Expand Down

0 comments on commit ee76c59

Please sign in to comment.