Skip to content

Commit

Permalink
Merge pull request #711 from tklauser/libapparmor-dep
Browse files Browse the repository at this point in the history
Drop libapparmor dependency from build docs
  • Loading branch information
Random-Liu committed Apr 2, 2018
2 parents ed92bef + d29678a commit c4f80ae
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -21,7 +21,6 @@ install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports
- sudo apt-get install libapparmor-dev
- sudo apt-get install socat
- docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter

Expand Down
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -66,7 +66,6 @@ specifications as appropriate.
* **libseccomp development library.** Required by `cri` and runc seccomp support. `libseccomp-dev` (Ubuntu, Debian) / `libseccomp-devel`
(Fedora, CentOS, RHEL). On releases of Ubuntu <=Trusty and Debian <=jessie a
backport version of `libseccomp-dev` is required. See [travis.yml](.travis.yml) for an example on trusty.
* **libapparmor development library.** Required by `cri` and runc apparmor support. To use apparmor on Debian, Ubuntu, and related distributions the installation of `libapparmor-dev` is required.
* **btrfs development library.** Required by containerd btrfs support. `btrfs-tools`(Ubuntu, Debian) / `btrfs-progs-devel`(Fedora, CentOS, RHEL)
2. Install other dependencies:
* **`nsenter`**: Required by portforward.
Expand Down Expand Up @@ -102,7 +101,7 @@ make BUILD_TAGS='seccomp apparmor'
|-----------|------------------------------------|---------------------------------|
| seccomp | syscall filtering | libseccomp development library |
| selinux | selinux process and mount labeling | <none> |
| apparmor | apparmor profile support | libapparmor development library |
| apparmor | apparmor profile support | <none> |
### Validate Your `cri` Setup
A Kubernetes incubator project called [cri-tools](https://github.com/kubernetes-incubator/cri-tools)
includes programs for exercising CRI implementations such as the `cri` plugin.
Expand Down
1 change: 0 additions & 1 deletion contrib/ansible/tasks/bootstrap_ubuntu.yaml
Expand Up @@ -8,7 +8,6 @@
- tar
- apt-transport-https
- btrfs-tools
- libapparmor1
- libseccomp2
- socat
- util-linux
Expand Down
4 changes: 1 addition & 3 deletions docs/installation.md
Expand Up @@ -64,15 +64,13 @@ If you have other requirements for the binaries, e.g. selinux support, another a
The release tarball could be downloaded from the release GCS bucket https://storage.googleapis.com/cri-containerd-release/.

## Step 0: Install Dependent Libraries
Install required libraries for seccomp and libapparmor.
Install required library for seccomp.
```bash
sudo apt-get update
sudo apt-get install libseccomp2
sudo apt-get install libapparmor
```
Note that:
1) If you are using Ubuntu <=Trusty or Debian <=jessie, a backported version of `libseccomp2` is needed. (See the [trusty-backports](https://packages.ubuntu.com/trusty-backports/libseccomp2) and [jessie-backports](https://packages.debian.org/jessie-backports/libseccomp2)).
2) If your OS distro doesn't support AppArmor, please skip installing `libapparmor`, and AppArmor will be disabled.
## Step 1: Download Release Tarball
Download release tarball for the `containerd` version you want to install from the GCS bucket.
```bash
Expand Down
1 change: 0 additions & 1 deletion hack/install/install-deps.sh
Expand Up @@ -19,7 +19,6 @@
# - libseccomp-dev(Ubuntu,Debian)/libseccomp-devel(Fedora, CentOS, RHEL). Note that
# libseccomp in ubuntu <=trusty and debian <=jessie is not new enough, backport
# is required.
# - libapparmor-dev(Ubuntu,Debian)/libapparmor-devel(Fedora, CentOS, RHEL)
# containerd:
# - btrfs-tools(Ubuntu,Debian)/btrfs-progs-devel(Fedora, CentOS, RHEL)

Expand Down
1 change: 0 additions & 1 deletion test/build-utils.sh
Expand Up @@ -34,7 +34,6 @@ apt-get update
apt-get install -y btrfs-tools
apt-get install -y libseccomp2/jessie-backports
apt-get install -y libseccomp-dev/jessie-backports
apt-get install -y libapparmor-dev

# PULL_REFS is from prow.
if [ ! -z "${PULL_REFS:-""}" ]; then
Expand Down

0 comments on commit c4f80ae

Please sign in to comment.