mirror of
https://github.com/containers/skopeo.git
synced 2025-09-04 08:04:56 +00:00
Create “Building {without a container,in a container}” subsections
To make it clearer that the two are alternatives. Document that a docker command is needed for the in-container build. Also move the “checkout in $GOPATH” warning into the “without a container” section, where it belongs.
This commit is contained in:
14
README.md
14
README.md
@@ -103,10 +103,14 @@ you'll get an error. You can fix this by either logging in (via `docker login`)
|
|||||||
|
|
||||||
Building
|
Building
|
||||||
-
|
-
|
||||||
To build the `skopeo` binary you need at least Go 1.5 because it uses the latest `GO15VENDOREXPERIMENT` flag. Also, make sure to clone the repository in your `GOPATH` - otherwise compilation fails.
|
To build the `skopeo` binary you need at least Go 1.5 because it uses the latest `GO15VENDOREXPERIMENT` flag.
|
||||||
|
|
||||||
|
### Building without a container
|
||||||
|
Make sure to clone the repository in your `GOPATH` - otherwise compilation fails.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ git clone https://github.com/projectatomic/skopeo $GOPATH/src/github.com/projectatomic/skopeo
|
$ git clone https://github.com/projectatomic/skopeo $GOPATH/src/github.com/projectatomic/skopeo
|
||||||
$ cd $GOPATH/src/github.com/projectatomic/skopeo && make all
|
$ cd $GOPATH/src/github.com/projectatomic/skopeo && make binary-local
|
||||||
```
|
```
|
||||||
|
|
||||||
To build localy on OSX:
|
To build localy on OSX:
|
||||||
@@ -120,6 +124,12 @@ You may need to install additional development packages: `gpgme-devel` and `liba
|
|||||||
$ sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
|
$ sudo dnf install gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Building in a container
|
||||||
|
If your system has a `docker` command and can run Linux containers,
|
||||||
|
```sh
|
||||||
|
$ make binary # Or (make all) to also build documentation, see below.
|
||||||
|
```
|
||||||
|
|
||||||
### Building documentation
|
### Building documentation
|
||||||
To build the manual you will need go-md2man.
|
To build the manual you will need go-md2man.
|
||||||
```sh
|
```sh
|
||||||
|
Reference in New Issue
Block a user