Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add images.json to build image #94

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading