Skip to content

Commit

Permalink
Merge pull request #57 from ZupIT/amazon-linux-support
Browse files Browse the repository at this point in the history
Amazon linux support
  • Loading branch information
crohr committed Apr 1, 2015
2 parents 7b88391 + 893e745 commit 7bded4b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
13 changes: 13 additions & 0 deletions data/build_dependencies/amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
default:
- curl
- gcc
- gcc-c++
- kernel-devel
- openssl-devel
- readline-devel
- libxml2-devel
- libxslt-devel
- libevent-devel
- postgresql-devel
- mysql-devel
- sqlite-devel
3 changes: 3 additions & 0 deletions data/buildpacks/amazon-2014
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/pkgr/heroku-buildpack-ruby.git#universal,BUILDPACK_NODE_VERSION="0.6.8",CURL_CONNECT_TIMEOUT=60,CURL_TIMEOUT=300
https://github.com/heroku/heroku-buildpack-nodejs.git#v58
https://github.com/kr/heroku-buildpack-go.git
9 changes: 9 additions & 0 deletions data/dependencies/amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
default:
- openssl
- readline
- libxml2
- libxslt
- libevent
- postgresql-libs
- mysql-libs
- sqlite
2 changes: 1 addition & 1 deletion data/hooks/preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export APP_GROUP="<%= group %>"
export APP_HOME="<%= home %>"

if ! getent passwd "${APP_USER}" > /dev/null; then
if [ -f /etc/redhat-release ] || [ -f /etc/SuSE-release ]; then
if [ -f /etc/redhat-release ] || [ -f /etc/system-release ] || [ -f /etc/SuSE-release ]; then
if ! getent group "${APP_GROUP}" > /dev/null ; then
groupadd --system "${APP_GROUP}"
fi
Expand Down
6 changes: 6 additions & 0 deletions lib/pkgr/distributions/amazon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Pkgr
module Distributions
class Amazon < Redhat
end
end
end
2 changes: 2 additions & 0 deletions lib/pkgr/distributions/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ def runner
end
end
end

require 'pkgr/distributions/amazon'

0 comments on commit 7bded4b

Please sign in to comment.