[Support] BGameiro - Community Applications


33 posts in this topic Last Reply

Recommended Posts

Hi and thank your for your Jupyterlab application!

It's so nice to have it as a "real" Unraid community app.

 

I wanted to use the pandas and scikitLearn modules to do some fiddling around with machine learning in notebooks, so I found the proper pacman packages : "python-pandas" and "python-scikit-learn" and added them to the "packages" section of the container config.

They were not added successfully to arch, so being a arch user myself, I switched to the console of the container and tried installing them manually.

 

I first updated with "pacman -Syu" because otherwise it would not let me install successfully. I also updated the mirrorlist to use the latest ones from USA. With that done, I could use the libraries in Jupyter. Success !

 

I took a look at the dockerfile of the container but to be honest, It was my first look at one of those and I'm not sure what is missing to have the container be all set to install new packages like python-pandas. In my understanding, your line: 

RUN pacman --noconfirm -Syyu

should do it, and it should be able to then accept some "pacman -S packages_variable_from_the_config". I think the commented part with the packages variable is what you are about to attempt.

That is pretty much where my understanding of all this is at the moment, but I feel it is very close to working perfectly with that packages list config and that is going to be awesome :D

Link to post
  • 2 weeks later...
Hi and thank your for your Jupyterlab application!
It's so nice to have it as a "real" Unraid community app.
 
I wanted to use the pandas and scikitLearn modules to do some fiddling around with machine learning in notebooks, so I found the proper pacman packages : "python-pandas" and "python-scikit-learn" and added them to the "packages" section of the container config.
They were not added successfully to arch, so being a arch user myself, I switched to the console of the container and tried installing them manually.
 
I first updated with "pacman -Syu" because otherwise it would not let me install successfully. I also updated the mirrorlist to use the latest ones from USA. With that done, I could use the libraries in Jupyter. Success !
 
I took a look at the dockerfile of the container but to be honest, It was my first look at one of those and I'm not sure what is missing to have the container be all set to install new packages like python-pandas. In my understanding, your line: 
RUN pacman --noconfirm -Syyu

should do it, and it should be able to then accept some "pacman -S packages_variable_from_the_config". I think the commented part with the packages variable is what you are about to attempt.

That is pretty much where my understanding of all this is at the moment, but I feel it is very close to working perfectly with that packages list config and that is going to be awesome

Just adding the RUN command to the dockerfile would work as RUN commands are integrated as layers into the Docker upon build.

If the packages are only specified when pulling the (already built) docker image, it can't be integrated to the build.

I'm currently in exams, I'll try to solve it after that.

Sent from my ONEPLUS A5000 using Tapatalk

Link to post
  • 1 month later...
On 7/21/2020 at 5:35 PM, BGameiro said:

This thread can be used as support for the applications I maintain.

 

Links

 

Trilium

 

Attention: Due to some recent changes to the repository and docker image being used, the Trilium Notes Server should appear with the option "install" in the community applications tab. The changes will allow me to better maintain the application. Please install the new version with the same paths and user as the old version. Sorry for the inconvenience.

 

About the template

 

This template refers to the Trilium Notes Server running as a docker container.

It uses the latest released version as the "latest" tag isn't recommended for stable use. This is done in the Docker itself and as such the application will always fetch the bgameiro/trilium:latest.

The "/trilium-data" directory can be configured and has a default of "/mnt/user/appdata/trilium". It contains the "backup" and "log" directories as well as the configuration and database files.

The backup directory ("/trilium-data/backup") directory can be configured to a different location. The default location is "/mnt/user/appdata/trilium/backup"

 

About Trilium

 

Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.

 

Links

 

Application Name: Trilium

Wiki: https://github.com/zadam/trilium/wiki

Github Repo: https://github.com/zadam/trilium

Docker Hub: https://hub.docker.com/repository/docker/bgameiro/trilium

Template Repo: https://github.com/BGameiro2000/unraid-ca/tree/master/trilium

 

JupyterLab

 

Attention: Only the basic features are supported at this time. More languages and functionalities will be added.

 

About the template

 

This template refers to the JupyterLab running as a docker container.

It runs on an ArchLinux-based Docker.

Support for more features and kernels is based on Arch Packages. Features that aren't in the Official Arch Repositories are installed from my repository using AUR pkgbuilds.

 

About JupyterLab

 

JupyterLab is a web-based interactive development environment for Jupyter notebooks, code, and data.

 

Links

 

Application Name: JupyterLab

Wiki: https://jupyterlab.readthedocs.io/en/stable/

Github Repo: https://github.com/jupyterlab/jupyterlab

Docker Hub: https://hub.docker.com/repository/docker/bgameiro/arch-jupyterlab

Template Repo: https://github.com/BGameiro2000/unraid-ca/tree/master/jupyterlab

 

Application requests | Contact | Last Updated: 2020/08/19

 

Thanks for your work on this. 

I can't get the Jupyter docker to start at all, I get "jupyter-lab: error: unrecognized arguments: --app-dir=/appdata/lab" in the log. Any suggestions for what might be going wrong?

Link to post
15 hours ago, waeggles said:

Thanks for your work on this. 

I can't get the Jupyter docker to start at all, I get "jupyter-lab: error: unrecognized arguments: --app-dir=/appdata/lab" in the log. Any suggestions for what might be going wrong?

Yup, i just updated the app and now I'm running into the same issue. 

Link to post

I pushed a fix about 1 hour ago. It shouldn't take more than 2 hours to propagate.

EDIT: Explanation of the error.

The template for JupyterLab is based on Archlinux, a rolling distribution, and when I make another build of the container (even if I don't update the template nor the dockerfile) it updates all packages.
A change was made to the jupyterlab package in the Arch repos. From what I could gather, it changed the server app it relies on, making the argument

`--app-dir` unusable.

This was solved using the `JUPYTERLAB_DIR` environment variable instead.

I'm leaving this here in case this is of any use for someone.

Edited by BGameiro
Link to post
On 9/22/2020 at 8:36 PM, timebaby said:

I was wondering what the correct syntax would be for the "Packages" variable in the Docker template section (I am trying to install the R kernel but I am a noob with Jupyter to put it lightly)? Would it simply be package name separated by comma? or a full "pacman -S XYZ". Thanks for any help you can provide.


There is a Docker specific to R: https://github.com/IRkernel/IRkernel

I'll try to add it in a few days.

You can find more information regarding other kernels for Jupyter here: https://wiki.archlinux.org/index.php/Jupyter#Kernels
To update all packages in the docker run `pacman -Syyu`. This shouldn't make any breaking changes, but from the previous replies you can see it there was one between 2 major versions. It is solved now.

Link to post
  • 4 weeks later...

Thanks for your work on this! It's been such a great help.

 

I would appreciate some insight into what I'm doing wrong.

I installed git through the console from the Docker Containers page

I then attempted to run the following code within a notebook:

import sys
!{sys.executable} -m pip install git+git://github.com/okpy/ok-client

 

But I get the below error:

ERROR: Command errored out with exit status 1: git clone -q git://github.com/okpy/ok-client /tmp/pip-req-build-xyzkbync Check the logs for full command output.

 

I couldn't find the log file and when I ran the same code within the web version of jupyter notebooks, it installs as expected without error.

Is this a docker limitation? Or did I miss a very key step?

 

Thank you in advance

 

EDIT:

In case anyone else runs into this issue, run 'git --version' within the console from the Docker Containers page. This command told me that I did not have a required package installed. After installing said package and running 'git --version', I was provided the installed git version and the above code now executes properly.

Edited by magg1e16
Resolved error message
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.