#openteacher - 2017-04-15

[17:03:18] <commandoline> Hi lordnoid_, whenever you read this, could you CNAME web.openteacher.org to vps.marten-de-vries.nl again? It seems to have gotten lost during a migration to (best guess through whois) strato. :P
[20:24:09] <lordnoid_> Lol correct, including the new host
[20:27:27] <lordnoid_> commandoline: setting it up was a pain in the strato config tool, so I hope it's correct, but it should be there
[20:27:32] <lordnoid_> After the ttl of course
[20:28:09] <lordnoid_> No I see your 503 nginx page already :P
[20:29:28] <commandoline> yay. Still working on something to put there. Using the opportunity to polish up my skills with Docker and Travis-CI. :)
[20:31:11] <lordnoid_> yes my travis ci dashboard is red now!
[20:31:43] <lordnoid_> oh you fixed it, all green
[20:32:02] <commandoline> yep, took me some time to get it to build a dmg on Mac without having access to one
[20:32:22] <lordnoid_> how did you do that?
[20:32:52] <commandoline> well, Travis can give you a mac, and most of the mac packager stuff in OT still worked
[20:33:04] <lordnoid_> that's quite a miracle
[20:33:14] <commandoline> just needed to figure out the dependencies etc. Which was try something, push, see if it works, correct, repeat.
[20:33:42] <commandoline> I also have docker images for doing the same on ubuntu, fedora and arch.
[20:33:47] <lordnoid_> I think pyinstaller also does mac builds
[20:34:14] <commandoline> yeah, it uses pyinstaller internally. But info on how to call pyinstaller was all already in the mac packager module.
[20:34:57] <commandoline> so I haven't had to really look into that. I hope Windows will be the same (planning to try AppVeyor for that, which I haven't used before)
[20:35:27] <lordnoid_> does travis not do windows builds?
[20:36:11] <commandoline> No, they seem to be planning to add them, but not yet.
[20:36:25] <lordnoid_> oh that's surprising
[20:36:43] <commandoline> Probably because they pretty much try to fit all their machines in the same format. For mac, that's doable.
[20:36:53] <commandoline> install bash, git, some version of ruby, etc.
[20:37:08] <commandoline> for windows, it's possible but harder. They have quite a lot of stuff they install on these machines
[20:37:43] <commandoline> I actually didn't use all that functionality and run different scripts depending on the OS, but the idea is that you can use a single script for both if you only use the stuff they support.
[20:38:16] <lordnoid_> ah.. and that's a bash script?
[20:38:17] <commandoline> (.travis.yml is pretty much: linux? Build + run these Docker containers. Mac? run this shell script)
[20:38:29] <commandoline> yep
[20:39:14] <lordnoid_> hmm i just used it with a 5 line yaml file
[20:39:52] <lordnoid_> at work we use jenkins but i don't really like that
[20:41:45] <commandoline> yeah, for most normal projects you can just use all the default settings. Which is nice, but exactly why porting Travis-CI to windows is more difficult.
[20:42:39] <lordnoid_> makes sense
[20:43:16] <commandoline> Never tried Jenkins myself.
[20:43:35] <lordnoid_> they could use bash on windows but if you compile something it will have posix system calls :P
[20:45:28] <commandoline> If it results in developers putting a proper terminal on windows systems, it's worth it. :P
[20:46:14] <lordnoid_> i'm talking to you on bash on windows now!
[20:47:17] <lordnoid_> not that i'm great at bash scripting, but i'm worse at powershell for sure
[20:49:00] <commandoline> same for me, I know the basics, but the more scripting related features I all have to google.
[20:49:14] <commandoline> Using the windows subsystem for linux perhaps?
[20:49:25] <lordnoid_> no cygwin
[20:49:32] <lordnoid_> but i do have the subsystem thing
[20:50:44] <lordnoid_> there's a set of bash scripting challenges at hackerrank. started it once and will finish it some day :P
[20:50:56] <lordnoid_> but they help well to learn it
[20:51:41] <commandoline> ah, never tried WSL myself but was curious if it works acceptably well.
[20:52:05] <lordnoid_> yes it's like a vm
[20:52:33] <commandoline> oh, I thought it was more like reverse wine?
[20:52:42] <lordnoid_> yes it is
[20:52:55] <lordnoid_> but when you start it you basically get ubuntu
[20:53:08] <lordnoid_> with aptitude and everything
[20:53:56] <lordnoid_> it feels like a vm, but it's not
[20:54:04] <lordnoid_> depends on your definition of vm :P
[20:58:33] <lordnoid_> but I think it's ubuntu 14.04
[21:00:43] <lordnoid_> hm the internet says a recent windows update should have made it 16.04 but mine is still 14.04 :'(
[21:01:11] <commandoline> well, I guess that means they did a good job implementing it.
[21:01:33] <lordnoid_> yeah canonical must have helped
[21:01:51] <lordnoid_> they use the ubuntu logo too
[21:08:01] <commandoline> Right, I forgot about that. Yeah, then it makes sense.