-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
26 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Make sure we have lxd installed to use | ||
snap install lxd || true | ||
|
||
# copy bash completions to host system | ||
cp -a $SNAP/bash_completions/* /usr/share/bash-completion/completions/. || true | ||
|
||
# setup sysctl defaults for lxd | ||
mkdir -p /usr/lib/sysctl.d | ||
cat <<EOF>/usr/lib/sysctl.d/juju-2.conf | ||
fs.inotify.max_user_watches = 524288 | ||
fs.inotify.max_user_instances = 256 | ||
EOF | ||
sysctl -p /usr/lib/sysctl.d/juju-2.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: juju | ||
version: 2.2-alpha1 | ||
summary: juju client | ||
description: Through the use of charms, juju provides you with shareable, re-usable, and repeatable expressions of devops best practices. | ||
confinement: classic | ||
grade: devel | ||
|
||
apps: | ||
juju: | ||
command: wrappers/juju | ||
|
||
parts: | ||
wrappers: | ||
plugin: dump | ||
source: snap/ | ||
juju: | ||
plugin: godeps | ||
go-importpath: github.com/juju/juju | ||
#The source can be your local tree or github | ||
#source: https://github.com/juju/juju.git | ||
#If you pull a remote, set source-depth to 1 to make the fetch shorter | ||
source-depth: 1 | ||
#source: file:///full/file/path | ||
#By default, reuse existing tree | ||
source: . | ||
source-type: git | ||
build-packages: [gcc] | ||
#You can grab a specific tag, commit, or branch | ||
#source-tag: juju-2.0.2 | ||
#source-commit: a83896d913d7e43c960e441c1e41612116d92d46 | ||
source-branch: develop | ||
go-packages: | ||
- github.com/juju/juju/cmd/juju | ||
#If you are releasing a build with public streams, you don't need to build the agent | ||
- github.com/juju/juju/cmd/jujud | ||
install: | | ||
mkdir -p $SNAPCRAFT_PART_INSTALL/bash_completions | ||
cp -a etc/bash_completion.d/juju* $SNAPCRAFT_PART_INSTALL/bash_completions/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
export LXD_DIR=/var/snap/lxd/common/lxd | ||
|
||
# Make sure we access snap binaries first | ||
export PATH=$SNAP/bin:$SNAP/usr/bin:/snap/bin:$PATH | ||
|
||
exec $SNAP/bin/juju "$@" |
This file was deleted.
Oops, something went wrong.