Skip to content

Commit

Permalink
Modify the repository to build using a kong.tar.gz from the filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Sep 21, 2017
1 parent 7a34e91 commit 9436766
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
kong.tar.gz
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
FROM alpine:3.6
MAINTAINER Marco Palladino, [email protected]

ENV KONG_VERSION 0.11.0
ENV KONG_SHA256 34cfd44f61a4da5d39ad7b59bad7b4790451065ff8c8c3d000b6258ab6961949
COPY *kong.tar.gz kong.tar.gz

RUN apk update \
&& apk add --virtual .build-deps wget tar ca-certificates \
&& apk add libgcc openssl pcre perl \
&& wget -O kong.tar.gz "https://bintray.com/kong/kong-community-edition-alpine-tar/download_file?file_path=kong-community-edition-$KONG_VERSION.apk.tar.gz" \
&& echo "$KONG_SHA256 *kong.tar.gz" | sha256sum -c - \
&& tar -xzf kong.tar.gz -C /tmp \
&& rm -f kong.tar.gz \
&& cp -R /tmp/usr / \
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

KONG_VERSION="0.11.0"
KONG_SHA256="34cfd44f61a4da5d39ad7b59bad7b4790451065ff8c8c3d000b6258ab6961949"

build_docker_image:
wget -O kong.tar.gz "https://bintray.com/kong/kong-community-edition-alpine-tar/download_file?file_path=kong-community-edition-${KONG_VERSION}.apk.tar.gz"
echo "${KONG_SHA256} *kong.tar.gz" | sha256sum -c
docker build -t kong:"${KONG_VERSION}" .

0 comments on commit 9436766

Please sign in to comment.