You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,8 @@ Since only entire packages (not single source files) can be selected for coverag
170
170
```yaml
171
171
dockerfile:
172
172
enabled: true
173
+
checkEnv:
174
+
- CHECK_SKIPS_FUNCTIONAL_TEST=true
173
175
entrypoint: [ "/bin/bash", "--", "--arg" ]
174
176
extraBuildStages:
175
177
- |
@@ -204,6 +206,7 @@ To ensure that the resulting Docker Image is functional, tests should be run bef
204
206
As an additional smoke test, the compiled binaries are invoked with the `--version` argument after being copied to the final image.
205
207
With [go-api-declarations](https://github.com/sapcc/go-api-declarations)'s [`bininfo.HandleVersionArgument` function](https://pkg.go.dev/github.com/sapcc/go-api-declarations/bininfo#HandleVersionArgument), this can be implemented in one line. If you are using Cobra or any other library to handle arguments, the [`bininfo.Version` function](https://pkg.go.dev/github.com/sapcc/go-api-declarations/bininfo#Version) is recommended instead.
206
208
209
+
* `checkEnv` sets environment variables for `make check` inside the docker check build.
207
210
* `entrypoint` allows overwriting the final entrypoint.
208
211
* `extraBuildStages` prepends additional build stages at the top of the Dockerfile. This is useful for bringing in precompiled assets from other images, or if a non-Go compilation step is required.
209
212
* `extraBuildPackages` installs extra Alpine packages in the Docker layer where `make install` is executed. We always install `ca-certificates`, `gcc`, `git`, `make` and `musl-dev`.
description: "Install reuse required by license-headers/check-reuse",
158
-
phony: true,
159
-
target: "install-reuse",
160
-
recipe: []string{
161
-
`@if ! hash reuse 2>/dev/null; then`+
162
-
` if ! hash pipx 2>/dev/null; then`+
163
-
` printf "\e[1;31m>> You are required to manually intervene to install reuse as go-makefile-maker cannot automatically resolve installing reuse on all setups.\e[0m\n";`+
164
-
` printf "\e[1;31m>> The preferred way for go-makefile-maker to install python tools after nix-shell is pipx which could not be found. Either install pipx using your package manager or install reuse using your package manager if at least version 6 is available.\e[0m\n";`+
165
-
` printf "\e[1;31m>> As your Python was likely installed by your package manager, just doing pip install --user sadly does no longer work as pip issues a warning about breaking your system. Generally running --break-system-packages with --user is safe to do but you should only run this command if you can resolve issues with it yourself: pip3 install --user --break-system-packages reuse\e[0m\n";`+
description: "Install reuse required by license-headers/check-reuse",
160
+
phony: true,
161
+
target: "install-reuse",
162
+
recipe: []string{
163
+
`@if ! hash reuse 2>/dev/null; then`+
164
+
` if ! hash pipx 2>/dev/null; then`+
165
+
` printf "\e[1;31m>> You are required to manually intervene to install reuse as go-makefile-maker cannot automatically resolve installing reuse on all setups.\e[0m\n";`+
166
+
` printf "\e[1;31m>> The preferred way for go-makefile-maker to install python tools after nix-shell is pipx which could not be found. Either install pipx using your package manager or install reuse using your package manager if at least version 6 is available.\e[0m\n";`+
167
+
` printf "\e[1;31m>> As your Python was likely installed by your package manager, just doing pip install --user sadly does no longer work as pip issues a warning about breaking your system. Generally running --break-system-packages with --user is safe to do but you should only run this command if you can resolve issues with it yourself: pip3 install --user --break-system-packages reuse\e[0m\n";`+
0 commit comments