Skip to content

Commit

Permalink
copying images.json inside the base stack
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas authored and ForestEckhardt committed Sep 10, 2024
1 parent a3acf07 commit cbd857a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stack/scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ function main() {

tools::install

if [ -f "${IMAGES_JSON}" ]; then
# we need to copy images.json for inclusion in the build image
cp $IMAGES_JSON "${ROOT_DIR}/stack"
fi

# 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 Expand Up @@ -95,7 +100,6 @@ OPTIONS
USAGE
}


function tools::install() {
util::tools::jam::install \
--directory "${BIN_DIR}"
Expand Down

0 comments on commit cbd857a

Please sign in to comment.