/srv/irclogs.ubuntu.com/2017/12/12/#ubuntu-google.txt

EmeraldKnight15hi01:39
EmeraldKnight15anyone there01:40
EmeraldKnight15guess not01:40
EmeraldKnight15bye01:40
Tate_SHey all!02:52
daniellimwshey there02:56
Tate_SHey all, I'm working on a task right now that requires me to go through a basic snaps usage tutorial and report any issues that I find04:11
Tate_Showever, after completing the tutorial, I wasn't able to find any meaningful issues04:11
Tate_Sdoes this mean i can't finish the task?04:11
heesenHi could could someone please review the Translate Ubuntu components task07:06
sanskarjainhi10:08
konrad11901hi10:08
sanskarjaincan u help me10:08
konrad11901I'm one of the participants, so my knowledge is quite limited, but describe your problem here10:10
konrad11901someone else will help you if I won't be able to10:10
sanskarjaini want to package and publish python snap10:11
konrad11901ok, what have you already done?10:15
sanskarjainnothing10:15
konrad11901ok, so you should choose a project to snap (you can find a list of candidates here: https://bit.ly/ugcicandidates) and follow the instructions described in the task description ;)10:17
konrad11901what are you waiting for? :)10:17
konrad11901elopio, sergiusens, kyrofa: could you take a look at my submission for "Package and publish your first ruby snap" task, please? :)10:35
AcceleratorHi...Actually its been already 36 hours since i last submitted my work and there is still no response from my mentors. Is there anything else i can do?11:14
daniellimwshello11:48
MaskySAccelerator, .11:48
MaskyShello daniellimws11:49
daniellimwshello MaskyS11:49
Acceleratorpopey,It has already been 36 hours since i submitted my work and there is still no respoonse11:50
Acceleratorpopey,Can you please look into this11:51
popeyLooking...11:51
popeyAccelerator: can you link to the instance pls?11:53
Acceleratorpopey,https://codein.withgoogle.com/dashboard/task-instances/6384315959083008/11:54
popeythanks!11:54
Acceleratorpopey,thanks to you too11:55
heesencan you please check mine also12:01
heesenhttps://codein.withgoogle.com/dashboard/12:01
daniellimwsthe task instance is not there12:02
heesentry this one12:03
heesenhttps://codein.withgoogle.com/dashboard/task-instances/4825391275442176/12:03
heesenpopey,It has already been 4 days since I submitted my task but no one has checked it could you please have a look the link is https://codein.withgoogle.com/dashboard/task-instances/4825391275442176/12:08
popeyLooking!12:09
heesenpopey, Thanks a lot12:12
daniellimwshi sergiusens are you able to look at my pr today?12:43
jakewalkerHey, I'm having a bit of trouble with Python snaps in general. I tried making httpstat and I just made another snap using Python and both times I get an error message saying `python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python3)`13:08
m4sk1n_jakewalker: install 16.04 LTS13:09
m4sk1n_easiest way to do it is using LXD container13:09
daniellimwsjakewalker perhaps you can share your snapcraft.yaml file?13:11
jakewalkerI've got 17.1013:11
m4sk1n_jakewalker: that's the problem13:11
jakewalkerOh13:11
m4sk1n_you can use snapcraft from LXD container13:12
m4sk1n_that's what I did13:12
daniellimwsthere's a tutorial here https://tutorials.ubuntu.com/tutorial/tutorial-setting-up-lxd-1604#013:12
jakewalkerWell here's the snapcraft.yaml anyway: https://gist.github.com/jake-walker/bc3b803fe1f43fbf61d6f64e9dea7fef13:12
jakewalkerThanks13:12
sergiusensdaniellimws I asked for one of my colleagues to look at it13:23
daniellimwsah ok thanks13:24
daniellimwsJust curious, although ubuntu is open source, I believe you guys still work for Ubuntu full time right? In that case, where does most of the revenue come from?13:26
m4sk1n_partnership, support etc.13:33
daniellimwsahh13:33
m4sk1n_services13:34
daniellimwsanyways I believe the GLIBC issue could be a problem for deployment?13:34
m4sk1n_daniellimws: it's because snapcraft `core` package uses old glibc, the same that's used by 16.0413:35
daniellimwsoh13:35
m4sk1n_you can wait for next LTS, 18.04 :P13:35
m4sk1n_at least that's what they told me13:36
daniellimwsoh that sucks13:36
m4sk1n_for me it's ok13:37
m4sk1n_at least you can choose between stable and veeeery stable, not as on windows – unstable (called stable) and veeeery unstable (windows insider)  ;)13:38
Nadelie_what a windows hater :P13:40
m4sk1n_luckily, if you can't get used to the fact that you don't have to reinstall system once a month (or even more frequently), you can use daily builds (sometimes unstable)13:44
daniellimwswhy would you even do that13:45
m4sk1n_but if you have masochistic tendencies (and you don't have enough time to compile everything by your own), using windows 10 is great13:45
m4sk1n_daniellimws: I ask myself about it every time I see people using windows XD13:46
tatelshey all, was just wondering, do I have to "submit a task for review" when I want the mentor to view a comment that I have made?14:21
m4sk1n_no, you don't have to14:22
=== MaskyS_ is now known as MaskyS
daniellimwsjakewalker hi have you managed to get your thing working?14:50
daniellimwsjakewalker m4sk1n I came across this https://forum.snapcraft.io/t/per-project-containers/388/314:50
daniellimwsyou can do `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft` or `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft prime` whatsoever and this will create a lxc for you and mount everything for you14:51
daniellimwswith this you do not need to go through the trouble of creating a lxc yourself and mounting stuff and all that, and your snap will now work14:52
daniellimwsaccording to this https://forum.snapcraft.io/t/clean-up-stale-lxd-containers-created-by-snapcraft/952 you can do `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft clean` to remove the container14:52
daniellimwsthe lxc is 16.04 so the snap will now work14:53
jakewalkerdaniellimws Ok, I left it installing while I went and did something else, I'll try that now15:28
daniellimwsjust the initial pulling of the image will take some time, but it should only be a one-time thing15:29
jakewalkerSeems to be working OK though15:29
daniellimwsthe snap?15:30
jakewalkerI did that thing but there's just more errors about permissions: https://gist.github.com/jake-walker/f7bac6443baa2b0c7225013f7a7ae3cb15:33
jakewalkerI tried running as sudo aswell but didn't work15:33
daniellimwshmm did you do sudo adduser <USER> lxd15:35
daniellimwsor sudo lxd init15:36
jakewalkerYes, I did both15:37
daniellimwsoh did it prompt you to add a line in /etc/subuid and /etc/subgid15:37
jakewalkerNo15:37
daniellimwsbecause it did ask me to add root:1000:115:37
daniellimwsto those 2 files15:37
daniellimwsor maybe its just me15:38
jakewalkerMy user and root are already in there15:39
jakewalker*in both15:39
daniellimwsoh how about try lxc delete snapcraft-cheat15:40
daniellimwsthen retry doing sudo15:40
jakewalkerNope, same error daniellimws15:43
jakewalkerI'm going to try something else15:43
daniellimwsok15:48
jakewalkerSorry to keep bothering but I've just created a Docker container on my VPS using the ubuntu:16.04 (https://store.docker.com/images/ubuntu) container just to test my snap. I think this version of Ubuntu is very minimal so `snap` is not installed by default. I just installed it using `sudo apt install snapd`. Running `snap --help` works and show the16:04
jakewalkerhelp page, but if I do something like `snap list` or `snap install` I get this error: `error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: no such file or directory`16:04
daniellimwsyou are running this inside docker?16:17
daniellimwsi think it should work outside docker but not sure if that's what you want16:17
jakewalkerYes, inside Docker and I do want it inside Docker because I'm not running 16.0416:19
daniellimwshttps://github.com/ogra1/snapd-docker16:36
daniellimwshow about this ^16:36
daniellimwsjakewalker16:36
daniellimwswait sorry that thing uses 17.0416:37
daniellimwshow about using vagrant https://app.vagrantup.com/ubuntu/boxes/xenial6416:38
daniellimwsbecause apparently it probably isnt that simple to set up a docker for snap16:39
daniellimwshttps://askubuntu.com/questions/907126/snap-fails-from-inside-docker-container16:39
m4sk1n_just created another PR with tutorial16:39
sergiusensdaniellimws hey, can you join #snappy ?16:47
kyrofaelopio, can you review the python snap task? I'll review the ruby one18:02
daniellimwsI filed an issue based on the discussion earlier regarding the GLIBC issue. It should be better if it mentions such error on ubuntu 17 machines and lets the reader know that they can do snapcraft cleanbuild or the per project containers.18:07
daniellimwshttps://github.com/canonical-websites/tutorials.ubuntu.com/issues/55018:07
ubot93Issue 550 in canonical-websites/tutorials.ubuntu.com "[Snap a Python application] Add solution to GLIBC problem on 17.10" [Open]18:07
elopiokyrofa: I am a little short of time today. I will try to catch up with my pending tasks tonight, or tomorrow for sure.18:16
kyrofaelopio, no problem :)18:16
popeyelopio: you have some which are really old.18:17
elopiopopey: sorry. I will catch up.18:22
konrad11901kyrofa, one question, is there any example of a snap using ruby plugin?19:11
kyrofakonrad11901, yeah I've done the Travis gem that way. Let me dig it up for you to reference19:11
kyrofakonrad11901, take a look at this: https://pastebin.ubuntu.com/26171992/19:14
kyrofakonrad11901, isn't that prettier?19:15
konrad11901great, thanks a lot! :)19:15
konrad11901yes, it is19:15
kyrofaIt takes a little time since it builds ruby from source. But that way you can request any version of ruby you want19:15
konrad11901i had some problems with using this plugin, but thanks to your example it's much easier now19:15
kyrofakonrad11901, oh everything is easier with an example! No problem :)19:16
konrad11901:)19:16
m4sk1n_https://github.com/search?utf8=✓&q=ruby+gem+filename%3Asnapcraft.yaml+extension%3Ayaml+language%3AYAML&type=Code&ref=advsearch&l=YAML&l=19:18
konrad11901m4sk1n_: I was looking for the example of snapcraft using ruby plugin (not nil, autotools, etc.), and yeah, I've found two examples, one installing the gem (not compiling it from the github), and the second one had the "command" field quite messed up, so that's why I decided to ask kyrofa for an example ;)19:25
konrad11901I just wanted to be absolutely sure about what I'm doing19:26
kyrofaYeah that'll build it from source. Note that `--env-shebang` is required otherwise the binaries will have shebangs with absolute paths pointing into the install directory instead of using /usr/bin/env19:27
kyrofaAt least, it was required for travis19:28
kyrofaI think the rest is relatively clear?19:28
konrad11901Yes, it is :)19:30
konrad11901For how long will you be available today, kyrofa?19:31
konrad11901just curious19:31
kyrofakonrad11901, it's 1100 for me. Several hours19:31
kyrofakonrad11901, feel free to ping me :)19:31
konrad11901Ok :)19:31
m4sk1n_thanks kyrofa, you helped me too :)19:34
kyrofam4sk1n_, I did? Well good! Two birds with one stone!19:34
kyrofaI'm sorry about the out-of-date documentation, we'll try to get that fixed19:35
konrad11901kyrofa: I've made some changes to my snap, can you check the submission? :)19:59
kyrofakonrad11901, sure thing20:00
kyrofaThat was fast20:00
kyrofakonrad11901, the YAML looks excellent. Have you already published this?20:00
konrad11901Yes20:00
kyrofastable channel?20:01
konrad11901Of course :)20:01
kyrofayay! Works awesome20:01
konrad11901Thanks!20:02
kyrofakonrad11901, can you make a call for testing in the forum?20:03
konrad11901Yes, I can, give me a minute20:04
konrad11901kyrofa: if you have some free time, could you take a look at my submission for the task called "Package and publish your first go snap"?21:01
kyrofakonrad11901, you're on a roll! Yeah, give me a few21:01
konrad11901ok, no problem21:03
kyrofakonrad11901, done, looks excellent21:38
kyrofaPerfect candidate for a snap21:39
konrad11901thanks kyrofa! :)21:39
konrad11901I'll submit another snap for a review in a while (last one for today, I promise :D)21:40
konrad11901I just prepared a few of them yesterday and today21:40
konrad11901while waiting for my submission to be reviewed21:40
kyrofaNice21:43
konrad11901Ok,  kyrofa, I've just sent a submission, so if you have some spare time, you can take a look, thanks :)21:53
konrad11901and yeah, enough for today21:53
kyrofakonrad11901, sweet, I'll take a look in a bit21:54

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