Skip to content

Commit

Permalink
Merge pull request #122 from dmhumph/atomic
Browse files Browse the repository at this point in the history
Update to atomic as base image
  • Loading branch information
pabrahamsson authored Aug 31, 2018
2 parents 7761b5a + 7398390 commit 91e3ad3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions s2i-play/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rhel7.4
FROM rhel7-atomic

MAINTAINER Andrew Block <[email protected]>

Expand All @@ -14,9 +14,10 @@ ENV ACTIVATOR_VERSION=1.3.10 \

COPY s2i /usr/libexec/s2i

RUN INSTALL_PKGS="tar unzip bc which lsof java-1.8.0-openjdk java-1.8.0-openjdk-devel" && \
yum install -y $INSTALL_PKGS && \
yum clean all && \
RUN INSTALL_PKGS="tar unzip bc gzip which lsof shadow-utils java-1.8.0-openjdk java-1.8.0-openjdk-devel" && \
microdnf --enablerepo=rhel-7-server-rpms install -y $INSTALL_PKGS && \
microdnf update && \
microdnf clean all && \
useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin \
-c "Default Application User" default && \
mkdir -p ${HOME} /opt/activator /opt/s2i/destination/src/ /deployments && \
Expand Down
6 changes: 3 additions & 3 deletions s2i-play/applier/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ objects:
metadata:
labels:
build: ${PLAY_BUILDER_NAME}
name: rhel7
name: rhel7-atomic
spec:
dockerImageRepository: registry.access.redhat.com/rhel7/rhel
dockerImageRepository: registry.access.redhat.com/rhel7-atomic
- apiVersion: v1
kind: ImageStream
metadata:
Expand Down Expand Up @@ -51,7 +51,7 @@ objects:
dockerFilePath: Dockerfile
from:
kind: ImageStreamTag
name: rhel7:7.4
name: rhel7-atomic:7.5
type: Docker
triggers:
- type: ConfigChange
Expand Down

0 comments on commit 91e3ad3

Please sign in to comment.