File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2.1-1
4
+
5
+ * Add SHA check of package.
6
+
3
7
## 2.1
4
8
5
9
* Package ` oauth2_proxy ` v2.1 with Alpine 3.4 base image.
Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ FROM alpine:3.4
3
3
ENV BUILD_PKGS="ca-certificates wget"
4
4
5
5
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"
7
8
RUN apk update && \
8
9
apk upgrade && \
9
10
apk add $BUILD_PKGS && \
10
11
mkdir -p /var/tmp/oauth2_proxy && \
11
12
cd /var/tmp/oauth2_proxy && \
12
13
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 - && \
13
15
tar xvf ${OAUTH2_PROXY_PKG}.tar.gz && \
14
16
cp /var/tmp/oauth2_proxy/${OAUTH2_PROXY_PKG}/oauth2_proxy /bin/ && \
15
17
apk del $BUILD_PKGS && \
You can’t perform that action at this time.
0 commit comments