-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Publish fluxctl Linux packages #1377
Comments
I am happy to provide an AUR package for Arch Linux based systems. Snaps is a personal no-go for me as it adds another dependency to my system that I will likely not use 99.99% of the time. |
Sure. Why not? :-) |
snap / flatpak / deb / rpm etc could be really cool.
|
Thanks for the info, @guilhem. Now that canonical/snapd#5845 is solved, I'm struggling with https://bugs.launchpad.net/snapcraft/+bug/1812633. I'm testing the name: fluxctl
version: 1.9.0+git3a0e5b88
summary: fluxctl talks to Weave Flux and helps you deploy your code
description: |
fluxctl talks to your Weave Flux instance and exposes all its
functionality to an easy to use command line interface.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
plugs:
personal-files:
read:
- $HOME/.kube/config
- $HOME/.minikube/client.key
- $HOME/.minikube/client.crt
- $HOME/.minikube/ca.crt
parts:
fluxctl:
plugin: go
go-importpath: github.com/weaveworks/flux
prime:
- bin/fluxctl
apps:
fluxctl:
command: fluxctl
plugs: [personal-files, network, network-bind] ^ This is what I currently have. |
!!! I didn't see it was solved !!! \o/ |
You may also put all |
I was asking myself about adding snapcraft release in #1689 ... but goreleaser lack some snapcraft features: goreleaser/goreleaser#914 |
Probably not the prettiest solution, but the version string I fixed now thanks to your suggestion. I can't seem to add all of Current name: fluxctl
version-script: |
FLUX_TAG="$(git tag -l | egrep -v '^(chart-|helm-|master-|pre-split)' | tail -n1)"
if [ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ]
then
echo $FLUX_TAG
else
GIT_REV="$(git rev-parse --short HEAD)"
echo "$FLUX_TAG+$GIT_REV"
fi
version: git
summary: fluxctl talks to Weave Flux and helps you deploy your code
description: |
fluxctl talks to your Weave Flux instance and exposes all its
functionality to an easy to use command line interface.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
plugs:
personal-files:
read:
- $HOME/.kube/config
- $HOME/.minikube/client.key
- $HOME/.minikube/client.crt
- $HOME/.minikube/ca.crt
parts:
fluxctl:
plugin: go
go-importpath: github.com/weaveworks/flux
prime:
- bin/fluxctl
apps:
fluxctl:
command: fluxctl
plugs: [personal-files, network, network-bind] |
This is working for me now: sudo snap install snapcraft --classic
sudo snap install multipass --beta --classic
snapcraft With this name: fluxctl
version-script: |
FLUX_TAG="$(git tag -l | egrep -v '^(chart-|helm-|master-|pre-split)' | sort -n | tail -n1)"
if [ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ]
then
echo $FLUX_TAG
else
GIT_REV="$(git rev-parse --short HEAD)"
echo "$FLUX_TAG+$GIT_REV"
fi
version: git
summary: fluxctl talks to Weave Flux and helps you deploy your code
description: |
fluxctl talks to your Weave Flux instance and exposes all its
functionality to an easy to use command line interface.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: classic
base: core18
parts:
fluxctl:
source: .
plugin: go
go-importpath: github.com/weaveworks/flux
override-pull: |
snapcraftctl pull
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
export PATH=$GOPATH/bin:$PATH
cd $GOPATH/src/github.com/weaveworks/flux
dep ensure
build-packages:
- gcc
- go-dep
prime:
- bin/fluxctl
apps:
fluxctl:
command: bin/fluxctl |
Being discussed here https://forum.snapcraft.io/t/fluxctl-snap-wants-to-be-classic/11073 |
It'd be great to have
fluxctl
packages for Linux distributed without having to go download a binary (and chmod) or build from source.A similar discussion came up in the
eksctl
project recently (eksctl-io/eksctl#215) and I snaps, as they're supported on a variety of Linux flavours and the build ties in with our CI easily (only one additional yaml required).Unfortunately are builds for both
fluxctl
andeksctl
currently blocked on access to .dotfiles, but a strawman solution was just brought up to remedy this: canonical/snapd#5845The text was updated successfully, but these errors were encountered: