Skip to content

Commit

Permalink
doc: add images.json to build image
Browse files Browse the repository at this point in the history
Refs: paketo-community#88

The plan is to use it in the extensions to find the run
images instead of data in the extension.toml file

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Jul 23, 2024
1 parent 043c0c0 commit 5512a92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build-java-8/
build-java-11/
build-java-17/
build-java-21/
stack/images.json
3 changes: 3 additions & 0 deletions scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ function main() {

tools::install

# we need to copy images.json for inclusion in the build image
cp images.json stack

# if stack or build argument is provided but not both, then throw an error
if [[ -n "${stack_dir_name}" && ! -n "${build_dir_name}" ]] || [[ ! -n "${stack_dir_name}" && -n "${build_dir_name}" ]]; then
util::print::error "Both stack-dir and build-dir must be provided"
Expand Down
4 changes: 4 additions & 0 deletions stack/build.Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
USER root
RUN mkdir -p /etc/buildpacks
COPY ./images.json /etc/buildpacks/images.json
RUN chmod 744 /etc/buildpacks/images.json

0 comments on commit 5512a92

Please sign in to comment.