Time |
S |
Nick |
Message |
16:05 |
|
pdurbin |
sivoais codex: https://github.com/IQSS/dataverse/issues/3937#issuecomment-310425326 :( |
17:39 |
|
sivoais |
handily enough, I recently had to convert a bunch of bash scripts to a single Perl script for some devops. It ran fine on Windows, macOS, and Linux (which I test with CI) |
17:40 |
|
sivoais |
It uses a different package for commands that work on each system <https://github.com/project-renard/devops/blob/master/script/helper.pl>. Still a WIP, but it also is used to setup our Vagrant and Docker boxes. |
17:41 |
|
pdurbin |
"for some devops" he says :) |
17:44 |
|
pdurbin |
Yeah but Project Renard is already in Perl so it makes sense that the installer is also written in Perl. What if your application is written in Java? And you want sysadmins to be able to hack on your installer? I'm thinking Python or Javascript. Javascript is built in to Java as of Java 8 via Nashorn. |
17:46 |
|
sivoais |
That makes sense. Developers should be able to understand their devops system in order to reduce turnaround. |
17:46 |
|
sivoais |
What about Groovy? |
17:51 |
|
sivoais |
btw, I did teach the people on my team for Project Renard how to write Perl. It's not that hard to pick up and if you actually teach it rather than pick it up ad-hoc, people will stick to best practices. :-D |
18:36 |
|
pdurbin |
I wrote Perl on and off professionally for half a dozen years. It's a nice language, but I don't want to be responsible for teaching it to people. |
19:08 |
|
sivoais |
Fair enough. |
19:30 |
|
pdurbin |
I've never used Groovy. Python and Javascript are more popular. |
19:30 |
|
pdurbin |
I'm not sure how often installers are written in Javascript though. |
19:35 |
|
sivoais |
Ayyy, that install script could use more functions :-O |
19:36 |
|
sivoais |
I have seen this for Electron apps <https://github.com/electron-userland/electron-builder> |
19:37 |
|
pdurbin |
Which install script? |
19:37 |
|
sivoais |
The Dataverse one :-P |
19:38 |
|
pdurbin |
Ok, so you aren't looking at the one for TwoRavens, which is also in Perl. |
19:38 |
|
sivoais |
the TwoRavens one looks much simpler |
19:38 |
|
pdurbin |
yeah |
19:39 |
|
pdurbin |
Man, maybe I should suggest re-writing the installing in Javascript. I don't understand https://github.com/electron-userland/electron-builder#installation at all. |
19:45 |
|
pdurbin |
whoops |
19:45 |
|
pdurbin |
I meant to say maybe I shouldn't suggest using Javascript. |
19:48 |
|
sivoais |
here's the other one I was looking for <https://github.com/zeit/pkg> |
19:56 |
|
pdurbin |
Well, I understand and have used `npm install [whatever]` but I'm wondering how people get Java webapps installed and configured. |
20:02 |
|
sivoais |
Yeah, these are for installing node-based applications. Perhaps the internals might be useful for you to look at. |
20:02 |
|
pdurbin |
perhaps |
20:02 |
|
sivoais |
Also, another idea (yes, it's Groovy) <https://blog.heckel.xyz/2014/05/29/gradle-create-windows-installers-debian-packages-manage-a-ppa-and-optional-sub-projects/> |
20:04 |
|
pdurbin |
hmm, I guess we do have https://github.com/IQSS/dataverse-android/blob/master/build.gradle |
22:19 |
|
pdurbin |
Any other opinions? |
23:46 |
|
|
philbot joined #sourcefu |
23:46 |
|
|
Topic for #sourcefu is now http://sourcefu.com | logs at http://irclog.greptilian.com/sourcefu/today |