Skip to content
Open
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
4 changes: 2 additions & 2 deletions scripts/create-ghe-environment
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ archive_path="$PWD/$image_name.tar.gz"

log_progress "Building custom image, based on $distrib"
# Sanity check
if ! grep -q -- "-slim as build\$" "$ROOT_DIR/Dockerfile" ; then
if ! grep -q -- "-slim AS build\$" "$ROOT_DIR/Dockerfile" ; then
die "Dockerfile has changed, this script is outdated"
fi

# Modify the FROM command to use the distribution we want
sed "s/-slim as build\$/-slim-$distrib as build/" "$ROOT_DIR/Dockerfile" \
sed "s/-slim AS build\$/-slim-$distrib AS build/" "$ROOT_DIR/Dockerfile" \
| docker build --tag "$image_name" --file - "$ROOT_DIR"

log_progress "Building container from image"
Expand Down
Loading