Skip to content

Commit

Permalink
fix: rebuild local docker file in local development case (#66)
Browse files Browse the repository at this point in the history
In order to use a local dev version of the builder, the documentation tells the user to do the following:
```
cd gardenlinux
ln -f -s ../builder/build build
```
Furthermore, the docs suggest that the builder would re-build the docker file if necessary.

However, this is currently not working because the link detects the gardenlinux/builder.dockerfile and uses it instead of the local builder.
  • Loading branch information
Vincinator authored Mar 4, 2024
1 parent 764bed4 commit dd3083c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ if [ "$container_image" = localhost/builder ]; then
# Build from 'builder.dockerfile' if that exists, otherwise the default file name will be 'Dockerfile' or 'Containerfile'.
# It is recommended to call the file 'builder.dockerfile' to make it's intention clear.
# That file might only contain a single line 'FROM ghcr.io/gardenlinux/builder:...' which can be updated via dependabot.
if [[ -f builder.dockerfile ]]; then
"$container_engine" build -t "$container_image" -f builder.dockerfile "$dir"
if [[ -f "${dir}"/builder.dockerfile ]]; then
"$container_engine" build -t "$container_image" -f "${dir}"/builder.dockerfile "$dir"
else
"$container_engine" build -t "$container_image" "$dir"
fi
Expand Down

0 comments on commit dd3083c

Please sign in to comment.