# Ubuntu dockerbuild environment

**URL:** <https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322>\
**Category:** Development\
**Tags:** build, docker, linux\
**Created:** [March 3, 2021, 7:28am UTC](https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322 "2021-03-03T07:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [March 3, 2021, 7:28am UTC](https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322/1 "2021-03-03T07:28:28Z")

</div>

Yesterday in the devs hangout we discussed about making a dockerbuild environment for testing 3D Slicer in newer Ubuntu distributions. I’ve looked at the existing `ubuntu-2004-gcc9/Dockerfile` and have a few questions:

1. The existing Ubuntu environments in the current [dockbuild](https://github.com/dockbuild/dockbuild/tree/b35d6d70e2b785d8dd5985422ddfd1fda8800909) all match `xx.04` releases. Did I understand correctly that we want to prepare an `ubuntu-2010-gcc10` environment?

2. These environments come with a thin layer of core packages provided by the package-manager (e.g., `libssl-dev` and `curl`) and scripts to build/install some other packages (e.g., `install-cmake-binary.sh` and `build-and-install-git.sh`). Why do some packages rely on the package-manager while others don’t? Should the version of the scripted packages (e…g, `ARG CMAKE_VERSION=...` correspond to that of the packages in the package-manager?

3. There are some Slicer dependencies that are not considered in `dockbuild` (e.g., Qt). What to do with these?

Thank you.

---

<div class="post-metadata">

**Author:** ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Post date:** [March 3, 2021, 10:57am UTC](https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322/2 "2021-03-03T10:57:48Z")

</div>

Hey 👋

20.04 is an LST release and 20.10 will reach end of life in less than 6 months (July 2021 as said [here](https://wiki.ubuntu.com/Releases))

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [March 3, 2021, 2:48pm UTC](https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322/3 "2021-03-03T14:48:20Z")

</div>

For 3:

Once we have the dockbuild image set up, we will create an image for Slicer (see [SlicerBuildEnvironment](https://github.com/Slicer/SlicerBuildEnvironment) ) that takes care of Qt. The Qt stuff can be non-trivial, so if when you get to that point you find you are having issues, I can help out with that.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 3, 2021, 3:46pm UTC](https://discourse.slicer.org/t/ubuntu-dockerbuild-environment/16322/4 "2021-03-03T15:46:40Z")

</div>

> [@RafaelPalomar](#):
>
> scripts to build/install some other packages

This scripts are copied from dockcross using [this script](https://github.com/dockbuild/dockbuild/blob/master/imagefiles/UpdateFromUpstream.sh).

There are useful to (for example) ensure we have a specific version of CMake available in all images.

If someone has bandwidth, it would be great to work on these issues as well:

> <https://github.com/dockbuild/dockbuild/issues/67>
>
> Similarly to dockcross, we should have tagged images with the following name \`YY…YYMMDD-SHA{7}\`
> 
> For reference, see https://github.com/dockcross/dockcross/blob/master/Makefile
> 
> 
> !\[image\](https://user-images.githubusercontent.com/219043/109829449-89019980-7c0b-11eb-81a6-49bb931a04eb.png)

> <https://github.com/dockbuild/dockbuild/issues/68>

> <https://github.com/dockbuild/dockbuild/issues/69>
>
> See https://github.com/dockcross/dockcross/blob/master/.github/workflows/main.ym…l
