Skip to content

Commit

Permalink
Merge pull request buildpacks#1 from joe-kimmel-vmw/jk-paths-for-pack
Browse files Browse the repository at this point in the history
use the pack binary built in this checkout, not the pack installed to…
  • Loading branch information
edithwuly authored Apr 4, 2023
2 parents 3784698 + 4d03155 commit b0ab578
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

format = '%Y/%m/%d %H:%M:%S.%f'

PACK = "./out/pack" # location of pack binary

def run(command):
print(command)
Expand Down Expand Up @@ -45,25 +46,25 @@ def run(command):

def laterBuild(imageName):
builder = "paketobuildpacks/builder:base"
command = "pack build " + imageName + " --builder " + builder + " --timestamps -v"
command = PACK + " build " + imageName + " --builder " + builder + " --timestamps -v"
return run(command)


def tinyBuild(imageName):
builder = "paketobuildpacks/builder:tiny"
command = "pack build " + imageName + " --builder " + builder + " --timestamps -v"
command = PACK + " build " + imageName + " --builder " + builder + " --timestamps -v"
return run(command)


def neverBuild(imageName):
builder = "paketobuildpacks/builder:base"
command = "pack build " + imageName + " --builder " + builder + " --pull-policy never --timestamps -v"
command = PACK + " build " + imageName + " --builder " + builder + " --pull-policy never --timestamps -v"
return run(command)


def alwaysBuild(imageName):
builder = "paketobuildpacks/builder:base"
command = "pack build " + imageName + " --builder " + builder + " --pull-policy always --timestamps -v"
command = PACK + " build " + imageName + " --builder " + builder + " --pull-policy always --timestamps -v"
return run(command)


Expand Down

0 comments on commit b0ab578

Please sign in to comment.