Skip to content

Commit 676f2dd

Browse files
authored
Merge pull request #8 from Intellection/add_pkg_shasum_check
Add SHA check of package
2 parents 7686131 + 82ac174 commit 676f2dd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.1-1
4+
5+
* Add SHA check of package.
6+
37
## 2.1
48

59
* Package `oauth2_proxy` v2.1 with Alpine 3.4 base image.

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ FROM alpine:3.4
33
ENV BUILD_PKGS="ca-certificates wget"
44

55
ENV OAUTH2_PROXY_VERSION="2.1"
6-
ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6"
6+
ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6" \
7+
OAUTH2_PROXY_SHA="3061e5b04bd14eeb9ec0ad1c9b324ba8d99d50eaadc5f528cdf4d21043828298"
78
RUN apk update && \
89
apk upgrade && \
910
apk add $BUILD_PKGS && \
1011
mkdir -p /var/tmp/oauth2_proxy && \
1112
cd /var/tmp/oauth2_proxy && \
1213
wget --progress=dot:mega https://github.com/bitly/oauth2_proxy/releases/download/v${OAUTH2_PROXY_VERSION}/${OAUTH2_PROXY_PKG}.tar.gz && \
14+
echo "${OAUTH2_PROXY_SHA} *${OAUTH2_PROXY_PKG}.tar.gz" | sha256sum -c - && \
1315
tar xvf ${OAUTH2_PROXY_PKG}.tar.gz && \
1416
cp /var/tmp/oauth2_proxy/${OAUTH2_PROXY_PKG}/oauth2_proxy /bin/ && \
1517
apk del $BUILD_PKGS && \

0 commit comments

Comments
 (0)