Skip to content

Commit

Permalink
Move contrib to root/opt/app-root and update common
Browse files Browse the repository at this point in the history
Fix missing indentation
  • Loading branch information
Marek Skalický committed Jun 29, 2017
1 parent 282692f commit 9e09ce6
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# help.1 files complied by container-common-scripts from README.md files
*/root/help.1

2 changes: 1 addition & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ RUN INSTALL_PKGS="autoconf \
zlib-devel" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y
yum clean all -y
2 changes: 1 addition & 1 deletion base/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ RUN INSTALL_PKGS="autoconf \
zlib-devel" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all -y
yum clean all -y
2 changes: 1 addition & 1 deletion common
Submodule common updated 2 files
+0 −1 build.sh
+4 −2 common.mk
7 changes: 3 additions & 4 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ ENV \
HOME=/opt/app-root/src \
PATH=/opt/app-root/src/bin:/opt/app-root/bin:$PATH

# Copy extra files to the image.
COPY ./root/ /

# When bash is started non-interactively, to run a shell script, for example it
# looks for this variable and source the content of this file. This will enable
# the SCL for all scripts without need to do 'scl enable'.
COPY contrib/scl_enable /opt/app-root/etc/scl_enable
ENV BASH_ENV=/opt/app-root/etc/scl_enable \
ENV=/opt/app-root/etc/scl_enable \
PROMPT_COMMAND=". /opt/app-root/etc/scl_enable"
Expand All @@ -48,9 +50,6 @@ RUN rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
-c "Default Application User" default && \
chown -R 1001:0 /opt/app-root

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

# Directory with the sources is set as the working directory so all STI scripts
# can execute relative to this path.
WORKDIR ${HOME}
Expand Down
7 changes: 3 additions & 4 deletions core/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ ENV \
HOME=/opt/app-root/src \
PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# Copy extra files to the image.
COPY ./root/ /

# When bash is started non-interactively, to run a shell script, for example it
# looks for this variable and source the content of this file. This will enable
# the SCL for all scripts without need to do 'scl enable'.
COPY contrib/scl_enable /opt/app-root/etc/scl_enable
ENV BASH_ENV=/opt/app-root/etc/scl_enable \
ENV=/opt/app-root/etc/scl_enable \
PROMPT_COMMAND=". /opt/app-root/etc/scl_enable"
Expand Down Expand Up @@ -58,9 +60,6 @@ RUN yum repolist > /dev/null && \
-c "Default Application User" default && \
chown -R 1001:0 /opt/app-root

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

# Directory with the sources is set as the working directory so all STI scripts
# can execute relative to this path.
WORKDIR ${HOME}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9e09ce6

Please sign in to comment.