Hi, > Am 14.10.2019 um 09:07 schrieb Hernán Morales Durand > <hernan.mora...@gmail.com>: > > Hi guys, > > Because I am lazy and want to avoid searching through all DockerHub > repository pages... Do you know a Dockerfile to generate the smallest > possible docker image for Pharo?
Please have a look at https://github.com/pharo-contributions/Docker-Alpine <https://github.com/pharo-contributions/Docker-Alpine> This was the first step in unify work on this. It’s based on alpine. It may need to be ironed out a bit as alpine has a different libc implementation. Further steps should include building a pharo minimal image to bring it down in size. 10 MB per docker image is theoretically possible. > > I am also interested in which stage you use to install packages into the > image, and why? Do you copy the contained image into docker already built? or > do you prefer install packages on building? (as done by pip -r > requirements.txt) > Anyone using xpra binding from subuser [1]? > Anyone could make it work Pharo on Alpine since it uses different libc? > Building the docker image you can do either way. I have one public project where I provide the software as docker image. Doing this is easier when you build the pharo image inside the docker container. Because you can then use dockerhub [1] to build it. You just add your project there and it builds it and releases it. In our inhouse products I use building the image outside of the docker container. The process is building the product image then load the test code and test it and when everything is fine use the image and package as a docker image. I don’t know subuser but using xpra will bloat the docker image because AFAIK it works over X11 which means you need those libraries in the docker container and in the pharo vm. What I’m working on is to be able to connect a running docker container directly from my laptop and use TelePharo [2] on it. Norbert > Anyway sharing opinions would be also appreciated. > > [1] http://subuser.org/news/0.3.html <http://subuser.org/news/0.3.html> > > Cheers. > > Hernán > [1] https://hub.docker.com <https://hub.docker.com/>[2] https://github.com/pharo-ide/TelePharo <https://github.com/pharo-ide/TelePharo>