Install Community Extensions from Bash (for Dockerfile)

I have created a KNIME Dockerfile that automatically installs R, rJava, OpenBLAS, Java, Python + dependencies and KNIME and configures everything automatically (including, for example, PNG support for R in KNIME, which is not so straightforward when your build lacks an X11 server).  

What I don't know how to do is install extensions from the Dockerfile.  I know I can download the extensions and then install them from within KNIME, but for my build to be really elegant, I need a way to install the extensions from command line...then I will have created a fully portable and preconfigured KNIME instance.  

Any ideas?

-Brian

I think I would go following this description (I guess p2.director is (still) part of the standard KNIME distribution, I usually install other parts which might added it):

./eclipse \
-clean -purgeHistory \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \
http://update.knime.org/community-contributions/2.12 \
-installIUs \
com.vernalis.knime.feature,\
com.mind_era.knime_rapidminer.knime.feature \
-vmargs -Declipse.p2.mirrors=true -Djava.net.preferIPv4Stack=true

Thanks for creating Docker images.

Thanks Gabor that looks like what I was looking for.

Let me perfect my Dockerfile, and then I will post it here.

The Dockerfile will not be the end though (at least, for my needs) because there is still the issue of the best way of reading/writing a persistent workspace and any output files a person might create, but I am working on that and should have a solution soon. 

-Brian