Skip to content

Commit

Permalink
added clab symlink to package installer (#187)
Browse files Browse the repository at this point in the history
* added homepage

* added symlink feature to packages

* added doc line on the symlink availability

* provided shema for homepage
  • Loading branch information
hellt committed Dec 2, 2020
1 parent 3fc2891 commit bd4917f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ nfpms:
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
package_name: containerlab
maintainer: Wim Henderickx <wim.henderickx@nokia.com>, Karim Radhouani <medkarimrdi@gmail.com>, Roman Dodin <dodin.roman@gmail.com>
homepage: https://containerlab.srlinux.dev
description: |
containerlab written in go
vendor: Nokia
Expand All @@ -36,3 +37,5 @@ nfpms:
files:
./lab-examples/**/*: /etc/containerlab/lab-examples
./templates/**/*: /etc/containerlab/templates
symlinks:
/usr/bin/clab: /usr/bin/containerlab
2 changes: 2 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <command>`.

### Upgrade
To upgrade `containerlab` to the latest available version issue the following command:

Expand Down

0 comments on commit bd4917f

Please sign in to comment.