diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73a8eb335..8555f50e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,8 @@ on: paths-ignore: - "docs/**" - "lab-examples/**" + - "mkdocs.yml" + - "README.md" jobs: test: diff --git a/.goreleaser.yml b/.goreleaser.yml index 0e1efecf0..b8377a3c7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,6 +25,7 @@ nfpms: file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" package_name: containerlab maintainer: Wim Henderickx , Karim Radhouani , Roman Dodin + homepage: https://containerlab.srlinux.dev description: | containerlab written in go vendor: Nokia @@ -36,3 +37,5 @@ nfpms: files: ./lab-examples/**/*: /etc/containerlab/lab-examples ./templates/**/*: /etc/containerlab/templates + symlinks: + /usr/bin/clab: /usr/bin/containerlab diff --git a/clab/clab.go b/clab/clab.go index 2bdb7796c..5af5e5801 100644 --- a/clab/clab.go +++ b/clab/clab.go @@ -119,6 +119,9 @@ func (c *cLab) ExecPostDeployTasks(ctx context.Context, node *Node) error { return err } err = c.DockerClient.ContainerStart(ctx, node.ContainerID, types.ContainerStartOptions{}) + if err != nil { + return err + } } return nil } diff --git a/docs/install.md b/docs/install.md index da950b19e..4e40b7297 100644 --- a/docs/install.md +++ b/docs/install.md @@ -29,6 +29,8 @@ sudo curl -sL https://get-clab.srlinux.dev | sudo bash -s -- -v 0.6.0 yum install https://github.com/srl-wim/container-lab/releases/download/v0.7.0/containerlab_0.7.0_linux_386.rpm ``` +The package installer will put the `containerlab` binary in the `/usr/bin` directory as well as create the `/usr/bin/clab -> /usr/bin/containerlab` symlink. The symlink allows the users to save on typing when they use containerlab: `clab `. + ### Upgrade To upgrade `containerlab` to the latest available version issue the following command: