soztag / fossos

seminar series on data science, reproducible science and open source by @maxheld83
https://datascience.phil.fau.de/fossos/
Creative Commons Attribution Share Alike 4.0 International
12 stars 3 forks source link

hack on byod #146

Open maxheld83 opened 5 years ago

maxheld83 commented 5 years ago

improve automatisation for starting docker R images.

https://github.com/maxheld83/byod

Ch1pzZz commented 5 years ago

Pulle gerade erstmal das rocker/verse und kümmere mich um das Setup. Ist tatsächlich erstmal einiges einzugeben das stimmt.

Hat zumindest bis jetzt schonmal funktioniert und bin bis zu RStudio gekommen.

Ich könnte mir vorstellen, dass die "Text"eingaben, die jeweils gleich bleiben & z.B. das öffnen des browsers mit der Localhost URL scriptbar wären, allerdings würde mein wissensstand momentan dafür höchstens für einen rechner reichen bei dem ich die Pfade anspreche in denen beispielsweise die .exe des Browsers liegt. Werde mich heute abend dannn weiter einlesen wie zumindest der part gehen würde.

Würde gern versuchen ein skript zu basteln, dass der Student nur in bash ausführen muss und in dieses Skript die verschiedenen Eingaben packen, die zu machen sind.

Schreib mir doch gerne mal deine Gedanken dazu, ob du glaubst mein Denkansatz mit dem Skript ist so sinnvoll, nicht dass ich in die falsche Richtung laufe. Die Zusatzmaterialien habe ich auch noch nicht ganz gelesen, also ändert sich meine Sichtweise sowieso vermutlich nochmal :D

maxheld83 commented 5 years ago

ich find' den Ansatz gut, so ähnlich hatte ich mir das auch gedacht, wobei ich auch noch nicht in die tiefen geschaut habe. Ich schreibe dazu mal ein paar kleinere issues direkt in dem target repo. Ein paar sind da auch schon: https://github.com/maxheld83/byod.

Du findest dort auch schon ein erstes bash script, was ich so auch zur Zeit benutze.

Neben dem einfacher machen von docker run -e PASSWORD=yourpassword --rm -p 8787:8787 rocker/verse, gibt es leider auch noch ein paar mehr Aufgaben wenn

Das ist soweit auch schon so mehr schlecht als recht in dem script in https://github.com/maxheld83/byod/ gemacht. Aber eben mehr schlecht als recht.

maxheld83 commented 5 years ago

sorry, mache ich erst morgen weiter mit den kleineren issues, zu viel versprochen :) Morgen früh mehr!

maxheld83 commented 5 years ago

Hab' dich zu dem zielrepo byod als collaborator eingeladen: https://github.com/maxheld83/byod/invitations

maxheld83 commented 5 years ago

du kannst da einfach neue branches hinzufügen und darauf arbeiten; master habe ich geschützt.

maxheld83 commented 5 years ago

oh and by the way, do you have a mac or win? (I forget)

This whole thing probably requires a real Unix-compliant shell to develop, so the git bash shell might not do the trick ...

maxheld83 commented 5 years ago

and lastly, if this is turning out to be too much / too far off for your taste, always feel free to check out all other graded-x issues on here, there is still plenty of stuff to do.

And you certainly don't need to address all of the issues in the target repo; just one or two will do!

Ch1pzZz commented 5 years ago

Hi Max, leider war dieses Wochenende absolut keine Zeit mehr übrig weiter meinen Kopf in die Sache zu stecken. Ich werde morgen mit dem Einlesen weitermachen und dann über die nächsten 1-2 Wochen (eher 2-3 vllt.) versuchen daran etwas zu basteln. (Hoffe das ist so ok, dass ich die Zeit über einen größeren Zeitraum verteilt "reinstecke") Ich benutze tatsächlich Windows und habe leider auch keine anderen Rechner zur Verfügung ><

maxheld83 commented 5 years ago

sure no problem!

Windows does make this a bit more complicated for you; hadn't thought about that before.

You'll probably need a (unix-compliant) shell ready at all times to test your script, and git bash might not be unix-compliant enough (not sure).

Any chance you have the newfangled Windows 10 and can get the WSL to work? more info: https://docs.microsoft.com/en-us/windows/wsl/install-win10

If you don't/can't you might have to do your development work inside a container (you can use the rocker/verse image). I can't think of a reason why that wouldn't work in principle, but it might be a bit inconvenient to script docker inside a docker container. It's turtles all the way down, etc. ... :).

So it's not ideal, but possible.

Again, if you feel like you'd rather work on something else, that's also still an option!

Ch1pzZz commented 5 years ago

Think I´ll have to try and script inside the container then.

To be completely honest I don´t really understand the other issues well enough too think i could handle them :/ I´ll just try and do my best in participation of the hackonboyd issue with Research toward the issues and comment my findings into each of them.

maxheld83 commented 5 years ago

sure, no problem! It's also ok if you just spend a lot of time learning; that's what this is about.

I think I added enough literature/issues to keep you busy for a couple of days :) either way.