Skip to content

Commit

Permalink
chore: updated build target
Browse files Browse the repository at this point in the history
  • Loading branch information
RRashmit committed Nov 7, 2024
1 parent bbcc120 commit 3262ad8
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions test/helpers/test_containers_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ func StartNginxLessContainer(
packageName := Env(tb, "PACKAGE_NAME")
packageRepo := Env(tb, "PACKAGES_REPO")
baseImage := Env(tb, "BASE_IMAGE")
buildTarget := Env(tb, "BUILD_TARGET")
osRelease := Env(tb, "OS_RELEASE")
osVersion := Env(tb, "OS_VERSION")
dockerfilePath := Env(tb, "DOCKERFILE_PATH")
containerRegistry := Env(tb, "CONTAINER_NGINX_IMAGE_REGISTRY")
tag := Env(tb, "TAG")
imagePath := Env(tb, "IMAGE_PATH")

Expand All @@ -183,18 +183,17 @@ func StartNginxLessContainer(
KeepImage: false,
PrintBuildLog: true,
BuildArgs: map[string]*string{
"PACKAGE_NAME": ToPtr(packageName),
"PACKAGES_REPO": ToPtr(packageRepo),
"BASE_IMAGE": ToPtr(baseImage),
"OS_RELEASE": ToPtr(osRelease),
"OS_VERSION": ToPtr(osVersion),
"ENTRY_POINT": ToPtr("./test/docker/nginxless-entrypoint.sh"),
"CONTAINER_NGINX_IMAGE_REGISTRY": ToPtr(containerRegistry),
"IMAGE_PATH": ToPtr(imagePath),
"TAG": ToPtr(tag),
"PACKAGE_NAME": ToPtr(packageName),
"PACKAGES_REPO": ToPtr(packageRepo),
"BASE_IMAGE": ToPtr(baseImage),
"OS_RELEASE": ToPtr(osRelease),
"OS_VERSION": ToPtr(osVersion),
"ENTRY_POINT": ToPtr("./test/docker/nginxless-entrypoint.sh"),
"IMAGE_PATH": ToPtr(imagePath),
"TAG": ToPtr(tag),
},
BuildOptionsModifier: func(buildOptions *types.ImageBuildOptions) {
buildOptions.Target = "install-agent-local"
buildOptions.Target = buildTarget
},
},
ExposedPorts: []string{"9094/tcp"},
Expand Down

0 comments on commit 3262ad8

Please sign in to comment.