Create a docker image to Cantor
Open, WishlistPublic


@rgomes presented during LaKademy 2016 a prototype version of a Docker image to run Cantor. It is insteresting and there is potential to use it as a tool for users and contributors.

@rgomes let's work to provide it. :)

Yeah! Take a look in my first Dockerfile

Thanks @rgomes, that is very nice! :)

I would like to suggest the follow idea to the Dockerfile:

Add options to download a set of specific backends or all backends. For instance, Cantor has 10 backends currently, the user/contributor could select the download of only one backend, just a few, or all of them. Currently Cantor has the follow backends:

  • KAlgebra;
  • Lua;
  • Maxima;
  • Octave;
  • Python 2;
  • Python 3;
  • Qalculate;
  • R;
  • Sage;
  • Scilab.

So for each backend the Docker script can to download only those specific dependencies for that backend.

That do you think?

I changed to accept build argument

To build that:

docker build --build-arg backend="octave python" -t cantor .

Hi @rgomes your Dockerfile is ok for a first version. Can you push it to Cantor repository? You must to create a diff file in Differential so I can to review and accept the contribution.

I have an idea to improve it in a next version, what do you think? I would like to inform the user about the options of backend installations, maybe printing the options after run docker. Like:

Select the backends to installation:

  • all (All backends)
  • kalgebra (KAlgebra)
  • luajit2 (Lua)
  • maxima (Maxima)
  • ...

So if the user select 'all' the process will install all backends; if the user select 'kalgebra luajit2', the process will install KAlgebra and Lua.

Anyway, you need to list which is the package name for each backend.

I liked your idea! We can create a bash script or another stuff to ask it to user and use docker with specific "string" in build-args :)

I will read more how to do that "diff file" here :)

In T2760#39837, @rgomes wrote:

I will read more how to do that "diff file" here :)

You must to add the dockerfile to your local Cantor repository using the commands of git. After it, you can to create a diff.

Put the diff file in Differential and set the repository and reviewers to Cantor.

If you have some doubt we can chat on IRC.

Hi @rgomes, let's to finish this feature until July 21? I would like to release it officially together with Cantor 16.08.