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
50aaaac9
Commit
50aaaac9
authored
Sep 15, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circleci doesn't allow removing containers on the root fs
parent
22d2dba5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
circle.yml
circle.yml
+2
-0
simple_spec.rb
spec/simple_spec.rb
+1
-1
buildpack_builder.rb
spec/support/buildpack_builder.rb
+5
-4
No files found.
circle.yml
View file @
50aaaac9
...
@@ -3,3 +3,5 @@ machine:
...
@@ -3,3 +3,5 @@ machine:
-
docker
-
docker
ruby
:
ruby
:
version
:
ruby-2.2.3
version
:
ruby-2.2.3
environment
:
circleci
:
true
spec/simple_spec.rb
View file @
50aaaac9
...
@@ -7,7 +7,7 @@ require_relative "support/path_helper"
...
@@ -7,7 +7,7 @@ require_relative "support/path_helper"
RSpec
.
describe
"Simple"
do
RSpec
.
describe
"Simple"
do
before
(
:all
)
do
before
(
:all
)
do
@debug
=
true
@debug
=
true
BuildpackBuilder
.
new
(
@debug
)
BuildpackBuilder
.
new
(
@debug
,
ENV
[
'CIRCLECI'
]
)
end
end
after
do
after
do
...
...
spec/support/buildpack_builder.rb
View file @
50aaaac9
...
@@ -8,8 +8,9 @@ class BuildpackBuilder
...
@@ -8,8 +8,9 @@ class BuildpackBuilder
TAG
=
"hone/static:cedar-14"
TAG
=
"hone/static:cedar-14"
def
initialize
(
debug
=
false
)
def
initialize
(
debug
=
false
,
intermediates
=
false
)
@debug
=
debug
@debug
=
debug
@intermediates
=
intermediates
@image
=
build_image
@image
=
build_image
end
end
...
@@ -24,6 +25,6 @@ class BuildpackBuilder
...
@@ -24,6 +25,6 @@ class BuildpackBuilder
->
(
chunk
)
{
nil
}
->
(
chunk
)
{
nil
}
end
end
Docker
::
Image
.
build_from_dir
(
buildpack_path
.
to_s
,
't'
=>
TAG
,
'rm'
=>
true
,
'dockerfile'
=>
"spec/support/docker/Dockerfile"
,
&
print_output
)
Docker
::
Image
.
build_from_dir
(
buildpack_path
.
to_s
,
't'
=>
TAG
,
'rm'
=>
!
@intermediates
,
'dockerfile'
=>
"spec/support/docker/Dockerfile"
,
&
print_output
)
end
end
end
end
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