File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
1717ADD 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}
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ DEV_REGISTRY ?= registry.drycc.cc
44DRYCC_REGISTRY ?= ${DEV_REGISTRY}
55PLATFORM ?= $(shell python3 _scripts/utils.py platform)
66ARCH ?= $(shell python3 _scripts/utils.py arch)
7- LIFECYCLE_VERSION ?= v0.15.3
7+ PLATFORM_API ?= 0.11
8+ LIFECYCLE_VERSION ?= v0.16.3
89ifeq ($(ARCH ) ,amd64)
910LIFECYCLE_URL = https://github.com/buildpacks/lifecycle/releases/download/$(LIFECYCLE_VERSION ) /lifecycle-${LIFECYCLE_VERSION}+linux.x86-64.tgz
1011else
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
3234publish-pack : pack
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ generate_deps_layer run-deps
1717
1818# 3. install ruby
1919generate_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
2422bundler_layer_dir=" ${layers_dir} /bundler"
@@ -27,6 +25,10 @@ remote_bundler_checksum="not found"
2725if [[ -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' )
2927fi
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
3133mkdir -p " ${bundler_layer_dir} /bin"
3234bundle config --local path " ${bundler_layer_dir} " > /dev/null
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
Original file line number Diff line number Diff line change 11# Buildpack API version
2- api = " 0.8 "
2+ api = " 0.9 "
33
44# Buildpack ID and metadata
55[buildpack ]
You can’t perform that action at this time.
0 commit comments