Skip to content

Commit 1bd3548

Browse files
committed
chore(pack-images): upgrade buildpack version
1 parent 9fa2cb0 commit 1bd3548

12 files changed

Lines changed: 34 additions & 23 deletions

File tree

Dockerfile.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ RUN cp -rf /var/lib/dpkg /var/lib/dpkg-run; \
1616
mv /var/lib/dpkg-run /var/lib/dpkg;
1717
ADD rootfs /
1818

19-
USER ${CNB_USER_ID}:${CNB_GROUP_ID}
19+
ARG PLATFORM_API
20+
RUN sed -i "s/{{CNB_PLATFORM_API}}/${PLATFORM_API}/g" /usr/local/bin/generate-layers.sh
21+
22+
USER ${CNB_USER_ID}:${CNB_GROUP_ID}

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ DEV_REGISTRY ?= registry.drycc.cc
44
DRYCC_REGISTRY ?= ${DEV_REGISTRY}
55
PLATFORM ?= $(shell python3 _scripts/utils.py platform)
66
ARCH ?= $(shell python3 _scripts/utils.py arch)
7-
LIFECYCLE_VERSION ?= v0.15.3
7+
PLATFORM_API ?= 0.11
8+
LIFECYCLE_VERSION ?= v0.16.3
89
ifeq ($(ARCH),amd64)
910
LIFECYCLE_URL = https://github.com/buildpacks/lifecycle/releases/download/$(LIFECYCLE_VERSION)/lifecycle-${LIFECYCLE_VERSION}+linux.x86-64.tgz
1011
else
@@ -27,6 +28,7 @@ pack:
2728
-t ${STACK_RUN_IMAGE} .
2829
@docker build -f Dockerfile.build \
2930
--build-arg BASE_IMAGE=${STACK_RUN_IMAGE} \
31+
--build-arg PLATFORM_API=${PLATFORM_API} \
3032
-t ${STACK_BUILD_IMAGE} .
3133

3234
publish-pack: pack

buildpacks/go/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/java/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/node/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/php/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/python/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/ruby/bin/build

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ generate_deps_layer run-deps
1717

1818
# 3. install ruby
1919
generate_stack_layer ruby "${plan_path}" true
20-
# shellcheck source=/dev/null
21-
. init-stack
2220

2321
# Compares previous Gemfile.lock checksum to the current Gemfile.lock
2422
bundler_layer_dir="${layers_dir}/bundler"
@@ -27,6 +25,10 @@ remote_bundler_checksum="not found"
2725
if [[ -f "${bundler_layer_dir}.toml" ]]; then
2826
remote_bundler_checksum=$(yj <"${bundler_layer_dir}.toml" -t | jq -r .metadata.version 2>/dev/null || echo 'not found')
2927
fi
28+
mkdir -p "${bundler_layer_dir}/profile.d"
29+
echo "export BUNDLE_APP_CONFIG=${bundler_layer_dir}" > "${bundler_layer_dir}/profile.d/bundle.sh"
30+
# shellcheck source=/dev/null
31+
. init-stack
3032

3133
mkdir -p "${bundler_layer_dir}/bin"
3234
bundle config --local path "${bundler_layer_dir}" >/dev/null

buildpacks/ruby/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

buildpacks/rust/buildpack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Buildpack API version
2-
api = "0.8"
2+
api = "0.9"
33

44
# Buildpack ID and metadata
55
[buildpack]

0 commit comments

Comments
 (0)