Skip to content

Commit f8c7376

Browse files
committed
fix: the GHE script does not generate an image anymore
The sanity check fails because "(...)slim as build" has been changed to "slim AS build" in the root Dockerfile.
1 parent edac2af commit f8c7376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/create-ghe-environment

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ archive_path="$PWD/$image_name.tar.gz"
9797

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

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

108108
log_progress "Building container from image"

0 commit comments

Comments
 (0)