Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-static
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-static
Commits
19576666
Commit
19576666
authored
May 19, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use a local cache of nginx if available
parent
85b4c79a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
compile
bin/compile
+14
-3
No files found.
bin/compile
View file @
19576666
...
...
@@ -8,11 +8,22 @@ cache_dir=$2
env_dir
=
$3
bp_dir
=
$(
dirname
$(
dirname
$0
))
version
=
"1.8.0"
nginx_tarball_url
=
"https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/nginx/cedar-14/nginx-
$version
.tgz"
fetch_nginx_tarball
()
{
local
version
=
"1.8.0"
local
tarball_file
=
"nginx-
$version
.tgz"
local
stack
=
"cedar-14"
local
nginx_tarball_url
=
"https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/nginx/
$stack
/nginx-
$version
.tgz"
local
dest_path
=
"
$cache_dir
/
$stack
/
$tarball_file
"
if
[
-f
"
$dest_path
"
]
;
then
echo
-n
"cat
$dest_path
"
else
echo
-n
"curl -L
$nginx_tarball_url
"
fi
}
mkdir
-p
$build_dir
/bin
curl
-L
$nginx_tarball_url
|
tar
xzv
-
C
$build_dir
/bin
$(
fetch_nginx_tarball
)
|
tar
xz
C
$build_dir
/bin
nginx_version
=
$(
$build_dir
/bin/nginx-
$STACK
-V
2>&1 |
head
-1
|
awk
'{ print $NF }'
)
cp
-a
$bp_dir
/scripts/boot
$build_dir
/bin/boot
cp
-a
$bp_dir
/scripts/config
$build_dir
/bin/config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment