summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-25 18:46:31 +0200
committerGitHub <noreply@github.com>2019-08-25 18:46:31 +0200
commitc0528c152ebe2a972e2a44384ebd4ac87b936273 (patch)
tree6a8fcffc888fb2466fc8dd70542d810d0b0f18aa
parent59261cf014678b374c4b0d27077de5d0689d6f0c (diff)
parentada0568f530b303079ef2bc4cca0f661568d9b63 (diff)
downloadpodman-c0528c152ebe2a972e2a44384ebd4ac87b936273.tar.gz
podman-c0528c152ebe2a972e2a44384ebd4ac87b936273.tar.bz2
podman-c0528c152ebe2a972e2a44384ebd4ac87b936273.zip
Merge pull request #3877 from TomSweeneyRedHat/dev/tsweeney/cnifix
Update cni config instructions
-rw-r--r--cni/README.md14
-rw-r--r--install.md25
-rw-r--r--test/README.md3
3 files changed, 18 insertions, 24 deletions
diff --git a/cni/README.md b/cni/README.md
index d35bc4111..2683df714 100644
--- a/cni/README.md
+++ b/cni/README.md
@@ -1,15 +1,17 @@
## `cni` ##
-There are a wide variety of different [CNI][cni] network configurations. This
+There are a wide variety of different [CNI](https://github.com/containernetworking/cni) network configurations. This
directory just contains an example configuration that can be used as the
basis for your own configuration.
To use this configuration, place it in `/etc/cni/net.d` (or the directory
specified by `cni_config_dir` in your `libpod.conf`).
-In addition, you need to install the [CNI plugins][cni] necessary into
-`/opt/cni/bin` (or the directory specified by `cni_plugin_dir`). The
-two plugins necessary for the example CNI configurations are `portmap` and
-`bridge`.
+For example a basic network configuration can be achieved with:
-[cni]: https://github.com/containernetworking/plugins
+```bash
+sudo mkdir -p /etc/cni/net.d
+curl -qsSL https://raw.githubusercontent.com/containers/libpod/master/cni/87-podman-bridge.conflist | sudo tee /etc/cni/net.d/87-podman-bridge.conf
+```
+
+Dependent upon your CNI configuration, you will need to install as a minimum the `port` and `bridge` [CNI plugins](https://github.com/containernetworking/plugins) into `/opt/cni/bin` (or the directory specified by `cni_plugin_dir` in libpod.conf). Please refer to the [CNI](https://github.com/containernetworking) project page in GitHub for more information.
diff --git a/install.md b/install.md
index d8d70a7b6..eb4ecfa68 100644
--- a/install.md
+++ b/install.md
@@ -190,11 +190,14 @@ To build, use the following (running `make` can take a while):
git clone https://github.com/ostreedev/ostree ~/ostree
cd ~/ostree
git submodule update --init
+
# for Fedora, CentOS, RHEL
-sudo yum install -y automake bison e2fsprogs-devel fuse-devel libtool xz-devel zlib-devel
+sudo yum install -y automake bison e2fsprogs-devel fuse-devel gpgme-devel libseccomp-devel libtool systemd-devel xz-devel zlib-devel
+
# for Debian, Ubuntu etc.
-sudo apt-get install -y automake bison e2fsprogs e2fslibs-dev fuse libfuse-dev libgpgme-dev liblzma-dev libtool zlib1g
+sudo apt-get install -y automake bison e2fsprogs e2fslibs-dev fuse libfuse-dev libgpgme-dev liblzma-dev libseccomp-dev libsystemd-dev libtool zlib1g
+# for all distributions
./autogen.sh --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
# remove --nonet option due to https:/github.com/ostreedev/ostree/issues/1374
sed -i '/.*--nonet.*/d' ./Makefile-man.am
@@ -226,6 +229,7 @@ To build from source, use the following:
```bash
git clone https://github.com/containers/conmon
cd conmon
+export GOCACHE="$(mktemp -d)"
make
sudo make podman
```
@@ -245,25 +249,12 @@ sudo cp runc /usr/bin/runc
#### CNI plugins
-```bash
-git clone https://github.com/containernetworking/plugins.git $GOPATH/src/github.com/containernetworking/plugins
-cd $GOPATH/src/github.com/containernetworking/plugins
-./build_linux.sh
-sudo mkdir -p /usr/libexec/cni
-sudo cp bin/* /usr/libexec/cni
-```
-
#### Setup CNI networking
A proper description of setting up CNI networking is given in the [`cni` README](cni/README.md).
-Using the CNI plugins from above, a more basic network config is achieved with:
-
-```bash
-sudo mkdir -p /etc/cni/net.d
-curl -qsSL https://raw.githubusercontent.com/containers/libpod/master/cni/87-podman-bridge.conflist | sudo tee /etc/cni/net.d/99-loopback.conf
-```
-
+A basic setup for CNI networking is done by default during the installation or make processes and
+no further configuration is needed to start using Podman.
#### Add configuration
diff --git a/test/README.md b/test/README.md
index 9bea679dc..d7710cc95 100644
--- a/test/README.md
+++ b/test/README.md
@@ -39,8 +39,9 @@ The following instructions assume your GOPATH is ~/go. Adjust as needed for your
environment.
### Installing ginkgo
-Build ginkgo and install it under $GOPATH/bin with the following command:
+Build ginkgo and install it under $GOPATH/bin with the following commands:
```
+export GOCACHE="$(mktemp -d)"
GOPATH=~/go make .install.ginkgo
```
If your PATH does not include $GOPATH/bin, you might consider adding it.