/srv/irclogs.ubuntu.com/2017/03/06/#snappy.txt

titan_kingHello, anybody tried installing snappy in Fedora?01:10
titan_kingThe copr repo for feodra , Zyngacore/snapcraft does not work01:12
RumpleWhat's the deal with --classic snaps on the stable branch? Is there any other way to access /sys/ without --classic?04:58
titan_king2Does snapcraft support Fedora?07:11
titan_king2The copr seems to be down07:12
pshodhttp://cdimage.ubuntu.com/ubuntu-core/16/stable/current/08:01
pshodused the pi3 image from here08:01
pshodcannot get the bluetooth to work08:01
pshodhelp help help!08:02
pshodbluetotooth service not found08:10
pshodwhen ran systemctl bluetooth status08:10
mupPR snapd#2975 closed: overlord/snapstate: small cleanup of ensureForceDevmodeDropsDevmodeFromState <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2975>08:10
mupPR snapd#2951 closed: interfaces: use seccomp specs <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2951>09:26
pshodrunning core on pi309:35
pshodunable to get the bluetooth working09:35
pshodhttp://cdimage.ubuntu.com/ubuntu-core/16/stable/current/09:35
pshodusing the img from here.09:35
pshodhelp!09:35
=== JamesTait is now known as Guest83668
=== Guest83668 is now known as JamesTait
=== gbisson_ is now known as gbisson
soffokl_Hello everyone. Can someone point me to the description of installation Ubuntu Core on Google Compute Engine?09:55
soffokl_Is it really possible to make such installation?09:56
soffokl_On AWS EC2 found image ubuntu-core16, but failed to find something similar on GCE :(09:57
mupPR snapd#2984 opened: interfaces: seccomp test helper <Created by stolowski> <https://github.com/snapcore/snapd/pull/2984>10:05
pshodhow to load a service in core env?10:19
pshodinstalled classic env in it10:19
kalikiana_soffokl_: Unfortunately the instructions that existed seem to have disappeared from the snappy websites. But you can use a custom image.10:19
kalikiana_(There was https://www.ubuntu.com/desktop/snappy#snappy-google in a previous iteration)10:20
pshodNEED TO MAKE BLUETOOTH WORK ON CORE NOW!11:28
pshodhelp help help!11:28
mupPR snapd#2985 opened: hookstate: disable configure hook for core on classic <Created by mvo5> <https://github.com/snapcore/snapd/pull/2985>11:31
caribouHello, what is the best approach to copy a file from the parts/{part}/build directory to the parts/{part}/install directory using an install scriptlet ?12:03
caribouI wanted to use the $SNAPCRAFT_PART_INSTALL as a target but I can't figure out if there is the equivalent source environment variable12:04
=== hikiko is now known as hikiko|ln
caribounevermind, found it12:21
popeycaribou: i use "cp -a * $SNAPCRAFT_PART_INSTALL" in my scriptlet, what did you decide on?13:01
=== hikiko|ln is now known as hikiko
Son_Gokuis zyga back from the grave yet?13:16
Son_Gokumvo: hey, the 2.23 release tag doesn't match what you did last week13:17
Son_Gokuit's way older13:17
cachiojdstrand, hi13:26
Son_Gokumvo: please fix, because there's tons of stuff missing in the 2.23 download I get from GitHub :(13:30
mvoSon_Goku: in a meeting right now, but what is going wrong?13:31
Son_Gokumvo: the 2.23 tag published on GitHub is invalid13:31
mvoSon_Goku: I check in a little bit13:31
Son_Gokuit's over two weeks old13:31
Son_Gokuwhereas you just committed 2.23 a few days ago13:31
Son_Gokuso things like my SELinux policy and whatnot are missing13:32
mvoSon_Goku: yes, definitely wrong, sorry for that, let me fix13:32
Son_Gokuas well as all of zyga's merged fixes for CentOS/Fedora13:32
mvoSon_Goku: sorry for that! please checkout 2.23 again13:34
Son_Gokumvo: yay, thanks13:36
Son_Gokulooks right now13:36
Son_Gokumvo: is the vendored tarball supposed to have an inner directory "snappy.upstream"?13:36
Son_GokuI would have figured it'd be snapd-2.2313:36
mvoSon_Goku: yeah, its an artifcat of the way dpkg-buildpackage did it, I really should fix that, can do after the meeting :)13:37
Son_Gokumvo: do you know when zyga will get back?13:37
mvoSon_Goku: I think 2 more days13:38
Son_Gokuokay, thanks13:38
RumpleWhat's the deal with --classic snaps on the stable branch? Is there any other way to access /sys/ without --classic?13:38
didrockscjwatson: hey! it seems that all my npm install --global are failing in launchpad (while they do pass on my machine). Can be that I have some in a local cache, but I don't know if there can be some proxy issue IS-side. (https://launchpadlibrarian.net/309867959/buildlog_snap_ubuntu_xenial_amd64_chuck-norris-webserver_BUILDING.txt.gz) (Note that the same package did build successfully on the 27th FYI)13:44
cjwatson(the snap proxy isn't IS-side)13:45
didrocksah ok :)13:46
cjwatsondidrocks: I dunno, a chmod ENOENT doesn't seem very snap proxy-ish, and it does manage to download other files13:46
cjwatsonhave you tried snapcraft cleanbuild?13:46
didrockscjwatson: sorry, yeah, I didn't scroll high enough, I was stuck in the "npm install"13:47
didrockscjwatson: it's probably my side, need to try in cleanbuild, I always forget about this option as my lxd container was broken for a while. Sorry to have bothered you :)13:47
cjwatsonnp - let me know if you still can't get it to work, but it looks more likely to be a bug in the package's build system to me13:48
didrockscjwatson: agreed13:49
mvoSon_Goku: should be fixed now13:53
jdstrandcachio: hey14:06
cachiojdstrand, I was creating some performance tests for dbus14:07
cachiojdstrand, trying to validate dbus performance, then I found something interesting14:07
cachiojdstrand, I created some scripts in python and one snap which is running these scripts14:08
cachiowhen I run the python scripts I get about 50% more of performance compared with the snap execution14:08
cachioboth are executing the same scripts14:09
Son_Gokumvo: much better :D14:09
jdstrandcachio: this is testing the performance of starting a script?14:09
cachiojdstrand, no, it is measuring the bandwidth when I sent 20k signals14:10
cachiojdstrand, I is creating a client and a server and the client is creating the signals and the server is counting all the signals that are arriving to the specific address14:11
jdstrandcachio: did you factor out the startup cost of starting the snap command?14:11
cachiojdstrand, no, how can I do that?14:12
cachioI am not sure if I should14:13
cachiobecause the test start when the first message arrives to the server14:13
cachiothe server is getting metrics from the first message to the last14:14
cariboupopey: well, I just realized that the file I had to copy was in the . directory so cp sos.conf $SNAPCRAFT_PART_INSTALL/etc did the trick14:15
jdstrandcachio: I'm asking all this for two reasons. 1) tyhicks did extensive testing of dbus performance with the apparmor patches and found performed extremely well for normal and beyond use cases and 2) launching a snap command is not lightwight-- there is ipc to snapd involved, an exec(), reading several files, setting up a seccomp filter, setting up namespaces, etc, etc, then another exec()14:15
jdstrandcachio: ok, so if the test is first message to last, that should be ok. if it includes time to get to first message, then it is measuring too much14:16
jdstrandcachio: I don't know your test, but if it is waiting for the first message and that appears in the results, a simple way to adjust that would be to starting your timing on the 2nd message14:17
jdstrandcachio: and to be clear-- your test is a) start command b) send messages c) stop command and *not* a) start command b) send message c) stop command d) goto 'a'14:18
cachiojdstrand, the tests are:14:19
mupBug #1670371 opened: Configure hook breaks content interface plug <Snappy:New> <https://launchpad.net/bugs/1670371>14:20
=== fnordahl_ is now known as fnordahl
cachio1- start command  in parallel(2- spammer will send x signals 3- handler will receive those signals and report metrics) 3- stop command14:20
cachiojdstrand, so the start should not interfere in the tests results14:21
caribouoops, I think I may have run into a bug with the --classic confinement :14:23
jdstrandcachio: to be 100% sure, we can avoid the launcher and isolate apparmor14:23
caribouif I run the cmd, it appends the same argument over and over (see http://pastebin.ubuntu.com/24124987/)14:23
caribouI don't get that in --devmode14:24
jdstrandcachio: you can do: aa-exec <name of profile> -- /path/to/script <args>14:24
cachiojdstrand, sure14:24
jdstrandcachio: aa-exec is sufficiently lightweight to not skew the results. <name of profile> would be snap.name.command14:24
cariboucould be tied to a denied AppArmor profile request to rw on /dev/tty14:25
jdstrandcachio: and also to be 100% clear-- you comparisons are all on the same machine, correct?14:25
cachiojdstrand, yes14:26
cachioreal hardware14:26
jdstrandcaribou: the /dev/tty denial is likely harmless, but you can add '/dev/tty rw,' to /var/lib/snapd/apparmor/profiles/nap.your.profile and reload with 'sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/nap.your.profile'14:27
jdstrander, snap.your.profile14:27
cariboujdstrand: yeah, was reading on of your comment on a previous bug14:28
cariboujdstrand: so might not be tied to the CLI option repeating itself forever like the pastebin shows14:28
cariboujdstrand: let me try that first14:28
jdstrandcaribou: it wouldn't be impossible that it is tied to it, would just be surprised14:29
cariboujdstrand: looks quite similar to LP: #166442714:30
mupBug #1664427: thefuck snap gets an apparmor denial even in classic confinement <classic> <Snappy:Incomplete> <https://launchpad.net/bugs/1664427>14:30
jdstrandcachio: fyi, the tests tyhicks did were several years ago, and it was a similar test iirc (he would have the details)-- thousands and thousands in a short time span. iirc it was around 1% overhead, but I could be making that up14:31
cariboujdstrand: well, it's the snap-confine profile that rejects it14:34
jdstrandcaribou: ah, well, then yes, add it there14:34
jdstrandcaribou: but, are you running from your snap a command in /snap/bin?14:35
jdstrandcaribou: cause that is allowed in classic but not devmode or strict14:35
jdstrandcaribou: I also think that is the problem in bug #166442714:36
mupBug #1664427: thefuck snap gets an apparmor denial even in classic confinement <classic> <Snappy:Incomplete> <https://launchpad.net/bugs/1664427>14:36
cariboujdstrand: well, that's a python script I just invoke it as "command: sosreport"14:36
cariboujdstrand: and that's the classic mode that is failing, not devmode14:37
mupPR snapd#2986 opened: tests: specify the core version to be unsquashfs'ed in the failover tests <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2986>14:39
jdstrandoh right, 1664427 was also with classic. any way, feel free to add that rule to /etc/apparmor.d/usr.lib.snapd.snap-confine. I suspect it won't fix the issue14:39
cachiojdstrand, http://paste.ubuntu.com/24125055/14:43
cachiojdstrand, I ran in my machine the tests, using aa-exec, running the snap command and running python14:44
cachioI see like a 20% of difference if yo usee the metric 'messages_sec'14:45
cariboujdstrand: you're right, has nothing to do with it14:46
jdstrandcachio: at this point I'm going to point you at tyhicks for historical context. he may bounce it back to me14:47
jdstrandcachio: he should be online in a few minutes14:47
cachiojdstrand, sure, tx14:51
popeyjdstrand: you just rejected my ffscreencast snap - can I point you to https://bugs.launchpad.net/snapcraft/+bug/1670162 ? I don't believe it needs a .desktop file.14:55
mupBug #1670162: publish complains about desktop file un-necessarily <Canonical Click Reviewers tools:New> <Snapcraft:Triaged> <Software Center Agent:New> <https://launchpad.net/bugs/1670162>14:55
=== cachio is now known as cachio_lunch
jdstrandpopey: if it is a cli tool, why does it need x11?14:56
popeyjdstrand: it's a screen capture tool.14:57
popeyuses x11 utils etc14:57
cjwatsonkyrofa: snap proxy timeout is now two hours rather than one14:59
mupPR snapd#2592 closed: many: add support for session dbus services via snaps <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2592>15:03
jdstrandpopey: can you request for manual review?15:04
mupBug #1670384 opened: refresh to same revision yields broken SNAP_USER_DIR <Snappy:New> <https://launchpad.net/bugs/1670384>15:05
popeyjdstrand: done15:12
mupPR snapd#2987 opened: store: download from authenticated URL if there is a device session set <Created by matiasb> <https://github.com/snapcore/snapd/pull/2987>15:16
mupBug #1670397 opened: On Debian Stretch (9) /snap/bin is not added to path <Snappy:New> <https://launchpad.net/bugs/1670397>15:29
popeythanks jdstrand15:33
tyhickshi cachio15:52
tyhickscachio: I'm not sure if I still have my old performance testing data15:52
jdstrandpmcgowan: hey, do you have a branch with snapcraft.yaml for your webdemo snap?15:53
tyhickscachio: what does messages_sec represent?15:53
pmcgowanjdstrand, I do, I havent pushed the latest but could15:54
pmcgowanjdstrand, which bug you interested in15:54
mupPR snapd#2980 closed: client, daemon: move "snap list" name filtering into snapd <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2980>15:55
barryi'm trying to build a snap out of only ubuntu packages (mostly a custom command around nmap).  i'm running into trouble with missing shared libraries.  is there some snapcraft plugin that would automatically include dependent libraries or do i have to code that up myself?  i was thinking an 'apt' plugin might be nice for use cases like that15:56
jdstrandpmcgowan: the denials included in bug #166748015:57
mupBug #1667480: browser-support needs to be an implicit interface, not implicit classic <snapd-interface> <snapd (Ubuntu):Fix Committed by jdstrand> <https://launchpad.net/bugs/1667480>15:57
jdstrandpmcgowan: I fixed all of those already, but then I was wanting to test on dragonboard and saw some other stuff I want to investigate15:58
jdstrandpmcgowan: I have r19 from the store15:58
pmcgowanok the last branch is ok then, https://code.launchpad.net/~pat-mcgowan/+junk/webdemo15:59
pmcgowanjdstrand, ^15:59
jdstrandpmcgowan: thanks!16:00
=== JamesTait is now known as Guest7558
=== cachio_lunch is now known as cachio
mupBug #1670397 changed: On Debian Stretch (9) /snap/bin is not added to path <snapd:New> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1670397>16:14
tyhickscachio: I found my old benchmarks16:18
tyhickscachio: they were done on a nexus 7 phone16:18
tyhickscachio: at that time, the focus was click confinement and we expected that the common case would be a confined click application (client) talking to an unconfined trusted helper (daemon/service)16:19
tyhickscachio: measured overhead using the dbus-ping-pong test was steady at about 10%16:19
tyhickscachio: it sounds like you're confining both the client and the server in your benchmarks so that may explain the additional overhead16:20
cachiotyhicks, in some machines I got the 50% of overhead16:21
cachiotyhicks, i am not sure it is known16:21
cachioI mean, if this overhead is what you expect or it is so much16:22
cachiotyhicks, do you want to see the test code?16:23
cachiojust to verify the tests are ok ยก16:23
cachioifconfig16:23
tyhickscachio: yes, please share the test code with me16:24
tyhickscachio: 50% overhead should definitely not be happening16:24
tyhickscachio: I landed that code years ago and haven't been involved since so something may have changed16:25
cachiotyhicks, http://paste.ubuntu.com/24125526/16:25
cachioI have a snap here16:25
cachiohttp://bazaar.launchpad.net/~sergio-j-cazzolato/ubuntu-performance-tests/trunk/files/head:/resources/apps/kpi-dbus-tests/16:25
cachiotyhicks, the snap uses these py files16:25
cachiotyhicks, the I run the tests running python3 <script> <params> and through the snap16:26
cachioif you want to install the snap it is stored in edge16:27
tyhickscachio: thanks - I have to run off to a meeting now but will try take a closer look by tomorrow16:29
cachiotyhicks, sure16:30
tyhickscachio: is this just something interesting that you noticed or is there a real world snap that is affected by the performance?16:30
cachiothibautr__, well I did similar tests for python code and external libraries, to see if the confinment was affecting its performance, and in that case the results are pretty similar running with and without confinment16:32
cachiotyhicks,  well I did similar tests for python code and external libraries, to see if the confinment was affecting its performance, and in that case the results are pretty similar running with and without confinment16:32
timothyhi, why did you MOVED a git tag? =.=16:33
cachiotyhicks, so I am trying to measure and detect where the performance is degraded16:33
tyhickscachio: got it - I think you've narrowed in on it and, to some point, the degradation is expected16:35
tyhickscachio: we just want to make sure that the degradation is still within the acceptable bounds16:35
cachiotyhicks, exactly16:36
timothythe "new" tag of release 2.23 is not releaseable on archlinux :(16:36
timothysince we don't have libcap static16:36
timothyneither fedora16:37
BjornThi. could someone please unblock my snap bjornt-prometheus-node-exporter? it says it's pending review16:48
kyrofatimothy, that might be worth a mailing list post16:59
mupPR snapd#2988 opened: tests: do *not* nuke the entire /etc/systemd/system/snapd.conf.d dir when changing store settings <Created by mvo5> <https://github.com/snapcore/snapd/pull/2988>17:04
=== Guest7558 is now known as JamesTait
Pharaoh_Atemtimothy: the tag was a mistake and should have been deleted weeks ago17:37
Pharaoh_Atemit was just fixed this morning17:37
mupPR snapd#2988 closed: tests: do *not* nuke the entire /etc/systemd/system/snapd.conf.d dir when changing store settings <Created by mvo5> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2988>18:06
cholcombeso i'm building a Go snap for the first time and it's complaining about some package context stuff18:41
cholcombehttp://paste.ubuntu.com/24126216/18:43
cholcombei have no idea what i'm doing :) any help is appreciated18:43
kyrofacholcombe, looks like it's coming from the vendored gorilla18:53
kyrofacholcombe, are you using godep?18:54
kyrofacholcombe, because it looks like it wants you to use a Makefile18:55
kyrofacholcombe, maybe one of their standalone tarballs would be better: https://github.com/heketi/heketi/wiki/Standalone-Installation18:56
cholcombekyrofa: hmm ok19:05
cholcombeyeah i saw that Makefile19:05
cholcombethey've got a dockerfile also that i can follow19:06
cholcombekyrofa: no i wasn't using godep.  let me paste my snapcraft file19:06
cholcombekyrofa: http://paste.ubuntu.com/24126310/19:07
kyrofacholcombe, yeah I suggest you follow their README and wiki for installation guides19:07
cholcombekyrofa: not a good candidate for a snap?19:08
kyrofacholcombe, not necessarily, just saying you're not building it in a manner they suggest19:08
cholcombesure19:08
kyrofacholcombe, nowhere do they say `go get` will work19:09
cholcombethat's true19:09
kyrofaThe fact that they use a Makefile typically implies to me that `go get` will _not_ work19:09
cholcombethe docker file does a go get it looks like19:09
cholcombeok19:09
cholcombekyrofa: https://hub.docker.com/r/heketi/heketi/~/dockerfile/19:09
cholcombeif i remember correctly this is just a gluster CLI wrapper19:10
kyrofacholcombe, they're go-getting godep; they clone heketi19:10
cholcombeoh yeah i see it.  they call make19:10
cholcombecrap19:11
kyrofacholcombe, welcome to go19:11
* kyrofa runs19:11
cholcombei heard it was a mess19:11
kyrofaYeah, not my favorite19:11
cholcombethat reminds me.  i wonder if that snapcraft release has been made that allows you to install a snap to build a snap19:12
jdstrandogra_: hey, so I installed 'classic' on the dragonboard, but apt-get update gives me: http://paste.ubuntu.com/24126359/19:14
jdstrandogra_: apt-key and gnupg are present. I can kinda workaround this by using 'sudo apt-get -o APT::Sandbox::User=root ...' but that is icky. is this known?19:15
kyrofajdstrand, what revision of the core snap was used when `sudo classic` was first run?19:24
jdstrandr39719:24
jdstrandthat's too low19:24
jdstrandhmm19:24
kyrofaThat seems super old...19:25
kyrofa1337 is stable amd64, I'd expect a number closer to that19:25
jdstrandyeah. I though I snap refershed19:25
jdstrandthought*19:25
jdstrand$ sudo snap refresh19:25
jdstrandAll snaps up to date.19:25
kyrofa...19:25
* kyrofa fires up my dragonboard19:26
jdstrand$ sudo snap refresh core --stable19:26
jdstrandthat pulled down 126819:26
jdstrandweird19:26
kyrofaOh, dang. That seems like a bug19:26
kyrofaUnless you were on a channel that for some reason never was updated?19:27
jdstrandI just pulled it down from cdimage based on https://developer.ubuntu.com/core/get-started/dragonboard-410c19:28
jdstrandand it didn't update automatically19:28
kyrofaHuh... weird19:29
jdstrandindeed19:29
kyrofaThat might be worth trying again19:29
jdstrandwell, I'm updated now19:29
kyrofaHahaha19:29
kyrofaI just mean to figure out if there's a bug there19:29
kyrofaIf you have time19:30
jdstrandI've added a todo19:30
jdstrandkyrofa (cc ogra_): looks like if I upgrade the core snap, then install classic, then install classic from --edge, 'sudo apt-get update' still has an issue. I'll file a bug19:47
kyrofajdstrand, after you updated the core snap, you removed the classic snap?19:47
kyrofa(and then re-installed it)19:48
jdstrandyep19:48
jdstrandand it unshashfs'd, etc19:48
kyrofaYeah sounds like a bug then19:48
jdstrandkyrofa (cc ogra_): fyi, https://bugs.launchpad.net/snappy/+bug/167047519:56
mupBug #1670475: apt-secure complaints with classic snap <Snappy:New> <https://launchpad.net/bugs/1670475>19:56
mupBug #1670475 opened: apt-secure complaints with classic snap <Snappy:New> <https://launchpad.net/bugs/1670475>19:58
kyrofajdstrand, does snap-confine set things up such that the snap is mounted in /snap/<name>/<revision> even if in reality (e.g. fedora) it's not mounted there?21:16
kyrofaWow that was a terribly-phrased question21:16
kyrofajdstrand, I mean in the snap's execution context, does it appear there even if it isn't actually there on the host?21:16
jdstrandkyrofa: I've not played with fedora at all. my understanding is that the snap will see a consistent runtime. on fedora, you could install the hello-world snap then do 'hello-world.env|grep SNAP' and see what snapd is exporting21:18
kyrofajdstrand, alright. I don't have an install handy, but perhaps Pharaoh_Atem is around?21:18
Pharaoh_Atem?21:18
kyrofaPharaoh_Atem, snapd doesn't actually mount snaps in /snap on fedora, right?21:19
Pharaoh_Atemabsolutely not21:19
Pharaoh_Atemit better not21:19
kyrofaPharaoh_Atem, does it appear like it from the snap's perspective?21:19
Pharaoh_Atemit should look like any other snap from the inside21:19
kyrofaPharaoh_Atem, any chance you're in a position to install the `hello` snap and run the test jdstrand just suggested?21:19
Pharaoh_Atemwith the latest snapd?21:20
kyrofaIt doesn't have to be latest, but post November would be ideal21:20
jdstrandkyrofa: it looks like snap confine honors a configure option, SNAP_MOUNT_DIR and so it would *not* be /snap/foo/current/... but instead /wherever/it/is/on/fedora/snap/foo/current21:21
Pharaoh_Atemlatest I've got is snapd 2.16 with snap-confine 1.0.4421:22
Pharaoh_Atemonly started working on getting new snapd working today21:22
Pharaoh_Atemsince mvo tagged it properly today21:22
kyrofaPharaoh_Atem, good enough for me if you don't mind21:22
Pharaoh_Atemsure, give me a sec21:22
* jdstrand isn't sure it is good enough, but I guess we'll see21:22
jdstrand1.0.44 is Oct/Nov iirc21:22
kyrofajdstrand, yeah that makes sense. I knew that it supported mounting in other areas, my real question is: what does that look like to the snap?21:23
Son_Gokujdstrand, kyrofa: what do you want me to do?21:25
Son_GokuI have my Fedora system with snapd 2.16 and snap-confine 1.0.4421:26
kyrofaSon_Goku, install the `hello` snap, and run `hello.env | grep SNAP` and pastebin the output21:26
jdstrandit looks like SNAP_MOUNT_DIR is only for finding the core snap. snap-confine builds up the runtime environment from the core snap. I see that it will mount on /snap in the runtime environment but that what is mounted is configrable based on SNAP_MOUNT_DIR21:27
jdstrandkyrofa: ^21:28
jdstrandwe'll know if my quick read is correct soon enough :)21:28
Son_Gokuhello.env doesn't exist?21:28
Son_GokuI see hello and hello.universe21:28
kyrofaWha...21:28
jdstrandit's hello-world21:29
kyrofajdstrand, oh darnit21:29
kyrofaSon_Goku, sorry, I lied21:29
kyrofaSon_Goku, try hello-world :P21:29
Son_Gokukyrofa, jdstrand: https://paste.fedoraproject.org/paste/idScR6VoZkXLzjq21KyatV5M1UNdIGYhyRLivL9gydE=21:30
kyrofaSon_Goku, thank you very much :)21:31
Son_Gokuno problem21:31
Son_Gokualso keep in mind that snapd and snap-confine are permanently in devmode21:31
jdstrandSon_Goku: that is with snap-confine 1.0.44 and snapd 2.16?21:31
Son_Gokuyes21:31
jdstrandkyrofa: I think newer code will do something different21:32
Son_Gokusources here: http://pkgs.fedoraproject.org/cgit/rpms/snap-confine.git/tree/21:32
kyrofajdstrand, what do you think... too old to be a valid test?21:32
Son_Gokuhttp://pkgs.fedoraproject.org/cgit/rpms/snapd.git/tree/21:32
kyrofajdstrand, fair enough21:32
Son_Gokuwell, I'm working on snapd 2.2321:32
Son_Gokuwithout zyga, I have to kinda do it myself :/21:32
kyrofaSon_Goku, if you get that to a working point, I'd be curious to see the same test if you're able21:32
Son_Gokusure21:32
jdstrandkyrofa: https://github.com/snapcore/snapd/blob/master/cmd/snap-confine/mount-support.c#L35621:33
Pharaoh_Atemback to my workstation21:33
kyrofajdstrand, indeed, that does look relevant21:33
erimsaHello22:05
kyrofaHello erimsa, welcome!22:06
erimsaI have lots of questions about snappy and ubuntu core22:07
erimsabut I think it is too new using for a commercial product22:08
kyrofaerimsa, please ask away :)22:08
erimsathanks22:08
erimsaI want to use it for industrial batch controllers22:09
erimsaa headless system a webserver in22:10
erimsait22:10
kyrofaSure22:10
erimsaFirst, Can I create a snap package from existing executables ?22:11
kyrofaerimsa, definitely22:11
kyrofaerimsa, snaps are just squashfs images. They can contain whatever you like, organized however you like22:11
erimsaI couldnt find any documentation for that22:11
erimsaAhh ok then22:12
kyrofaerimsa, do you have just a tarball or binaries/libraries, then?22:12
erimsaYes, binaries22:12
erimsaI have to run Codesys "PLC runtime"22:13
naccthe dump plugin?22:13
erimsain Ubuntu Core22:13
erimsaOK I see22:13
naccerimsa: was just a thought, for copying binaries into the snap -- kyrofa knows way more than I :)22:13
kyrofanacc, yeah I'm throwing a quick example together using just that22:14
erimsaYou are saying use "dump plugin"22:14
erimsafor that22:14
kyrofaerimsa, yeah I'll show you22:14
erimsaOK Im waiting22:14
naccerimsa: right, the 'dump' plugin takes a source (as defined in the snapcraft.yaml) and verbatim copies it into the snap squashfs22:14
kyrofaerimsa, take a look at this: http://pastebin.ubuntu.com/24127222/22:15
kyrofaerimsa, of specific note, the last four lines22:15
kyrofaerimsa, there you see `plugin: dump` as nacc is suggesting22:16
kyrofaerimsa, that will download the tarball (assuming it's a URL) and extract it into the snap22:16
erimsaOk I will try it in a few days22:16
erimsaIn beagle bone black22:16
naccerimsa: and to be clear, that does assume the tarball's binaries have no dependencies themselves in the snap -- if they do, then you need to have those specified in your snapcraft.yaml22:16
kyrofaerimsa, you need a little more metadata there to actually expose a binary to be callable (add the `apps` section that you'll see in the docs/tutorials)22:16
kyrofanacc, good catch22:17
erimsaI think I getting to close to understand22:17
erimsaIm22:17
kyrofaerimsa, if for example your tarball depends on some debian packages, you can add them there using `stage-packages` (which you'll also see in the docs/tutorials)22:17
erimsaCan you send me link for that tutorials ?22:18
erimsaThere are lots web page22:18
erimsas22:18
nacchttp://snapcraft.io/22:18
naccprobably docs -> build snaps22:18
erimsaSecond Question22:19
erimsaWe need our own Custom Store22:19
erimsafor snap packages22:20
erimsaIs that possible ?22:20
kyrofaerimsa, there are a few possibilities for that. Can you explain what you're trying to accomplish with that? Or just a "we want it under our own roof" type of thing?22:21
erimsaIm working for a company that produces industrial controllers for food,chemisty,textile industries22:24
erimsaAnd using Debian Linux as OS for devies22:24
erimsaWe have really problems with package versioning and installing in fields22:25
erimsaI m trying to solve kind of problems22:25
kyrofaerimsa, sure-- I mean specifically what you're looking for/trying to accomplish with a "custom store"22:26
erimsaLets say I decided to use Ubuntu Core and Snap technology22:27
erimsaOur Snap packages should not be open for everyone22:28
erimsaPublicly22:28
erimsaIt should be private to keep them22:28
kyrofaerimsa, first of all, you can have private packages in the official store22:29
erimsaI didnt know that22:29
erimsaOfficial means Canonical Store ?22:30
kyrofaIndeed, the Ubuntu Store22:30
erimsaI see22:30
erimsaWe have lots of devices around the world ,22:31
kyrofaerimsa, if you need more control than that we do have an "on-premises store" offering, but I'm not the guy to talk to about that. I can put you in touch with the people who are, though22:31
erimsaYes definitly22:31
erimsaIf you can give me email address I can write then22:32
kyrofaerimsa, if you shoot me your email address in a private message I can send an introduction if you like22:33
erimsaOK22:33
mupPR snapd#2989 opened: many: some opensuse patches that are ready to go into master <Created by zyga> <https://github.com/snapcore/snapd/pull/2989>22:40
mupPR snapd#2990 opened: cmd: link libcap dynamically <Created by zyga> <https://github.com/snapcore/snapd/pull/2990>22:50
mupPR snapd#2991 opened: packaging: add opensuse permissions files <Created by zyga> <https://github.com/snapcore/snapd/pull/2991>22:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!