Fetch deps on first build
This commit is contained in:
parent
185c41425b
commit
58180364b4
7
Makefile
7
Makefile
@ -2,9 +2,12 @@ PLUGIN_NAME = mycelium-cni
|
|||||||
CNI_PLUGINS_DIR = /opt/cni/bin
|
CNI_PLUGINS_DIR = /opt/cni/bin
|
||||||
CNI_CONFIG_DIR = /etc/cni/net.d
|
CNI_CONFIG_DIR = /etc/cni/net.d
|
||||||
|
|
||||||
.PHONY: build install clean test
|
.PHONY: build install clean test deps
|
||||||
|
|
||||||
build:
|
deps:
|
||||||
|
go mod tidy
|
||||||
|
|
||||||
|
build: deps
|
||||||
go build -o $(PLUGIN_NAME) .
|
go build -o $(PLUGIN_NAME) .
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
|
@ -15,13 +15,15 @@ This CNI plugin integrates with the Mycelium overlay network to provide IPv6 con
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Build the plugin
|
# Download dependencies and build the plugin
|
||||||
make build
|
make build
|
||||||
|
|
||||||
# Install plugin and configuration
|
# Install plugin and configuration
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note**: The first build will download Go dependencies automatically via `go mod tidy`.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
The plugin uses a CNI configuration file (`10-mycelium.conflist`) that specifies the Mycelium interface name:
|
The plugin uses a CNI configuration file (`10-mycelium.conflist`) that specifies the Mycelium interface name:
|
||||||
@ -86,7 +88,7 @@ sudo systemctl enable --now mycelium
|
|||||||
On each Kubernetes node:
|
On each Kubernetes node:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Build and install the plugin
|
# Download dependencies, build and install the plugin
|
||||||
make build
|
make build
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user