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
For proper results, install the `protoc` release into `/usr/local` on your build system. For example, the following commands will download and install the 3.11.4 release for a 64-bit Linux host:
@@ -63,27 +63,23 @@ correct version of `runc` installed.
63
63
64
64
For the quick and dirty installation, you can use the following:
65
65
66
-
go get github.com/opencontainers/runc
67
-
68
-
This is not recommended, as the generated binary will not have version
69
-
information. Instead, cd into the source directory and use make to build and
Make sure to follow the guidelines for versioning in [RUNC.md](RUNC.md) for the
77
-
best results. Some pointers on proper build tag setupVersion mismatches can
78
-
result in undefined behavior.
74
+
best results.
79
75
80
76
## Build containerd
81
77
82
78
`containerd` uses `make` to create a repeatable build flow. It means that you
83
79
can run:
84
80
85
81
```
86
-
cd $GOPATH/src/github.com/containerd/containerd
82
+
cd containerd
87
83
make
88
84
```
89
85
@@ -111,7 +107,10 @@ make generate
111
107
> For example, adding `BUILDTAGS=no_btrfs` to your environment before calling the **binaries**
112
108
> Makefile target will disable the btrfs driver within the containerd Go build.
113
109
114
-
Vendoring of external imports uses the [`vndr` tool](https://github.com/LK4D4/vndr) which uses a simple config file, `vendor.conf`, to provide the URL and version or hash details for each vendored import. After modifying `vendor.conf` run the `vndr` tool to update the `vendor/` directory contents. Combining the `vendor.conf` update with the changeset in `vendor/` after running `vndr` should become a single commit for a PR which relies on vendored updates.
110
+
Vendoring of external imports uses the [Go Modules](https://golang.org/ref/mod#vendoring). You need
111
+
to use `go mod` command to modify the dependencies. After modifition, you should run `go mod tidy`
112
+
and `go mod vendor` to ensure the `go.mod`, `go.sum` files and `vendor` directory are up to date.
113
+
Changes to these files should become a single commit for a PR which relies on vendored updates.
115
114
116
115
Please refer to [RUNC.md](/RUNC.md) for the currently supported version of `runc` that is used by containerd.
117
116
@@ -131,6 +130,8 @@ make EXTRA_FLAGS="-buildmode pie" \
131
130
132
131
# Via Docker container
133
132
133
+
The following instructions assume you are at the parent directory of containerd source directory.
134
+
134
135
## Build containerd
135
136
136
137
You can build `containerd` via a Linux-based Docker container.
@@ -148,7 +149,7 @@ containerd source root directory you can run the following command:
0 commit comments