Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Apr 15, 2015
1 parent 0d4b1e3 commit bd7b89d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
nginx_tmp/
kong*.yml

# build
build

# luacov
luacov.*
11 changes: 5 additions & 6 deletions package-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

echo "Current directory is: "$DIR

OUT=$DIR/out
TMP=$DIR/tmp
OUT=$DIR/build/out
TMP=$DIR/build/tmp

echo "Cleaning directories"
rm -rf $OUT
rm -rf $TMP

echo "Preparing environment"
mkdir $OUT
mkdir $TMP
mkdir -p $OUT
mkdir -p $TMP

LUA_VERSION=5.1.5
LUAROCKS_VERSION=2.2.1
Expand Down Expand Up @@ -111,7 +111,7 @@ $OUT/usr/local/bin/luarocks install kong $KONG_VERSION

# Make the package
post_install_script=$(mktemp -t post_install_script.XXX.sh)
echo 'mkdir -p /etc/kong;cp /usr/local/lib/luarocks/rocks/kong/${KONG_VERSION}/conf/kong.yml /etc/kong/kong.yml' > $post_install_script
echo "mkdir -p /etc/kong;cp /usr/local/lib/luarocks/rocks/kong/$KONG_VERSION/conf/kong.yml /etc/kong/kong.yml" > $post_install_script

cd $OUT
fpm -a all -f -s dir -t $PACKAGE_TYPE -n "kong" -v ${KONG_VERSION} ${FPM_PARAMS} \
Expand All @@ -125,4 +125,3 @@ usr


echo "DONE"

0 comments on commit bd7b89d

Please sign in to comment.