Skip to content

Commit

Permalink
update docs based on review
Browse files Browse the repository at this point in the history
Move docs under "Building without a container".
Check instead of setting env variable.
Provide alternative approach.

Signed-off-by: Miltiadis Kallianis <miltiadis.kallianis@asml.com>
  • Loading branch information
miltkall-asml committed Feb 19, 2024
1 parent 96c8ae5 commit a5da53a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ Skopeo has not yet been packaged for Windows. There is an [open feature
request](https://github.com/containers/skopeo/issues/715) and contributions are
always welcome.

## GO ENV settings

In order for the system libraries to get compiled during the build process make sure that ```CGO_ENABLED='1'```.

```bash
go env -w CGO_ENABLED='1'
```


## Container Images

Skopeo container images are available at `quay.io/skopeo/stable:latest`.
Expand Down Expand Up @@ -203,6 +194,12 @@ document generation can be skipped by passing `DISABLE_DOCS=1`:
DISABLE_DOCS=1 make
```

#### Additional prerequisites

In order to dynamically link against system libraries and avoid compilation erros the ```CGO_ENABLED='1'``` flag must be enabled. You can easily check by ```go env | grep CGO_ENABLED```.

An alternative would be to set the `BUILDTAGS=containers_image_openpgp` (this removes the dependency on `libgpgme` and its companion libraries).

### Cross-compilation

For cross-building skopeo, use the command `make bin/skopeo.OS.ARCH`, where OS represents
Expand Down

0 comments on commit a5da53a

Please sign in to comment.