Skip to content

Commit

Permalink
MINOR: Atomic-related cleanups for certification.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorunic committed May 26, 2017
1 parent 94cd00d commit 081d1aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
FROM rhel7

FROM registry.access.redhat.com/rhel7
MAINTAINER Dinko Korunic <dkorunic@haproxy.com>

LABEL Name HAProxy OSS
LABEL Release OSS Edition
LABEL Vendor HAProxy
LABEL Version 1.7.5
LABEL RUN /usr/bin/docker -d IMAGE
LABEL name="haproxytech/haproxy" \
vendor="HAProxy" \
version="1.7.5" \
release="1"

ENV HAPROXY_BRANCH 1.7
ENV HAPROXY_MINOR 1.7.5
ENV HAPROXY_MD5 ed84c80cb97852d2aa3161ed16c48a1c
ENV HAPROXY_SRC_URL http://www.haproxy.org/download/
ENV HAPROXY_SRC_URL http://www.haproxy.org/download

ENV HAPROXY_UID haproxy
ENV HAPROXY_GID haproxy

RUN yum install -y gcc make openssl-devel pcre-devel zlib-devel tar curl socat && \
RUN yum clean all && yum-config-manager --disable \* &> /dev/null && \
yum-config-manager --enable rhel-7-server-rpms,rhel-7-server-optional-rpms &> /dev/null && \
yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical --setopt=tsflags=nodocs && \
yum -y install --setopt=tsflags=nodocs gcc make openssl-devel pcre-devel zlib-devel tar curl socat && \
curl -sfSL "$HAPROXY_SRC_URL/$HAPROXY_BRANCH/src/haproxy-$HAPROXY_MINOR.tar.gz" -o haproxy.tar.gz && \
echo "$HAPROXY_MD5 haproxy.tar.gz" | md5sum -c - && \
groupadd "$HAPROXY_GID" && \
Expand Down
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

DOCKERFILE=Dockerfile
HAPROXY_BRANCH=1.7
HAPROXY_SRC_URL=http://www.haproxy.org/download/
HAPROXY_SRC_URL=http://www.haproxy.org/download

HAPROXY_MINOR=$(curl -sfSL "$HAPROXY_SRC_URL/$HAPROXY_BRANCH/src/" | \
grep -o "<a href=\"haproxy-$HAPROXY_BRANCH.*\.tar\.gz\">" | \
Expand All @@ -14,5 +14,5 @@ HAPROXY_MD5=$(curl -sfSL "$HAPROXY_SRC_URL/$HAPROXY_BRANCH/src/haproxy-$HAPROXY_
sed -r -i -e "s!^(ENV HAPROXY_SRC_URL) .*!\1 $HAPROXY_SRC_URL!;
s!^(ENV HAPROXY_BRANCH) .*!\1 $HAPROXY_BRANCH!;
s!^(ENV HAPROXY_MINOR) .*!\1 $HAPROXY_MINOR!;
s!^(LABEL Version) .*!\1 $HAPROXY_MINOR!;
s!([[:space:]]*)version=\"[^\"]*\"(.*)!\1version=\"$HAPROXY_MINOR\"\2!;
s!^(ENV HAPROXY_MD5) .*!\1 $HAPROXY_MD5!" "$DOCKERFILE"

0 comments on commit 081d1aa

Please sign in to comment.