-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alpine) build and package Kong for docker alpine (#6)
* feat(RHEL) add the ability to build RHEL rpm packages * feat(rhel) setup rhel package naming * feat(rhel) setup release scripts for RHEL * misc(docs) Update the readme to detail RHEL and releasing to bintray * feat(centos) ability to release centos to bintray * feat(alpine) alpine openssl needs no-async * feat(alpine) setup packaging the alpine tar.gz
- Loading branch information
Showing
6 changed files
with
49 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG RESTY_IMAGE_BASE | ||
ARG RESTY_IMAGE_TAG | ||
|
||
FROM alpine | ||
|
||
RUN apk update \ | ||
&& apk add ca-certificates wget \ | ||
&& update-ca-certificates \ | ||
&& apk add --virtual build-deps make gcc make g++ zlib-dev musl-dev pcre-dev \ | ||
openssl-dev zlib-dev ncurses-dev readline-dev curl perl \ | ||
libffi-dev git unzip tar openssh m4 xz gnupg openssl musl \ | ||
linux-headers bsd-compat-headers bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,14 @@ elif [ "$RESTY_IMAGE_BASE" == "rhel" ]; then | |
fi | ||
fi | ||
|
||
fpm -a all -f -s dir \ | ||
if [ "$RESTY_IMAGE_BASE" == "alpine" ]; then | ||
pushd /tmp/build | ||
mkdir -p etc/kong | ||
mv usr/local/lib/luarocks/rocks/kong/*/kong.conf.default etc/kong | ||
tar -zcvf /output/${KONG_PACKAGE_NAME}-${KONG_VERSION}${OUTPUT_FILE_SUFFIX}.apk.tar.gz usr etc | ||
popd | ||
else | ||
fpm -a all -f -s dir \ | ||
-t $PACKAGE_TYPE \ | ||
-m '[email protected]' \ | ||
-n $KONG_PACKAGE_NAME \ | ||
|
@@ -31,6 +38,7 @@ fpm -a all -f -s dir \ | |
--vendor 'Kong Inc.' \ | ||
--license "$KONG_LICENSE" \ | ||
--url 'https://getkong.org/' usr \ | ||
&& mv kong*.* /output/${KONG_PACKAGE_NAME}-${KONG_VERSION}${OUTPUT_FILE_SUFFIX}.${PACKAGE_TYPE} \ | ||
&& rm -rf /tmp/build/* | ||
|
||
&& mv kong*.* /output/${KONG_PACKAGE_NAME}-${KONG_VERSION}${OUTPUT_FILE_SUFFIX}.${PACKAGE_TYPE} | ||
fi | ||
|
||
rm -rf /tmp/build/* |