[SAC] [OSGeo] #2582: Create ubuntu 20 base container

#2582: Create ubuntu 20 base container
---------------------------+--------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2021-I
Component: Systems Admin | Keywords:
---------------------------+--------------------------------------
I think a lot of OSGeo folks feel more comfortable with Ubuntu than Debian
and also Ubuntu tends to have more modern stuff.

So though for stability I like debian, for bleeding edge, I prefer Ubuntu.
That said we really need an Ubuntu 20 image ready to go with OSGeo ldap-
ssh ready to go. Going to add that to our inventory of lxd images.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2582&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2582: Create ubuntu 20 base container
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2021-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------

Comment (by wildintellect):

The alternate solution would be to write an Ansible role to handle the
LDAP setup, and make it work with Ubuntu and Debian (likely to work on
future versions too).

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2582#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2582: Create ubuntu 20 base container
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2021-II
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+----------------------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed

Comment:

This is done. called osgeo-ubuntu-20 and uses LDAP for ssh auth. The
script to create it is in ansible repo - https://git.osgeo.org/gitea/sac
/ansible-deployment/src/branch/master/deployment/roles/images/tasks/build-
osgeo-ubuntu-20.04.yml

I had to manually edit the description of image cause don't know how to do
that in ansible.

#one thing left is to have it use osuosl repos (which darkblueb already
changed on live)

I created the image on osgeo9. I'm using osgeo9 as an image store and
drone client, cause the disk size is too small to do much else with. I
used this image to create the live container on osgeo7 host

{{{
#lists images
  lxc image list osgeo9:
#creates new container based on image osgeo-ubuntu-20 and calls the
container n20
lxc launch osgeo9:osgeo-ubuntu-20 n20

}}}

outputs:

{{{
| ALIAS | FINGERPRINT | PUBLIC |
DESCRIPTION | ARCHITECTURE | TYPE |
SIZE | UPLOAD DATE |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+
| hop | 18e74aa0a707 | no | Debian buster amd64
(20190106_05:25) | x86_64 |
CONTAINER | 269.00MB | Jun 28, 2021 at 9:27pm (UTC) |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+
| osgeo-debian-10 (1 more) | f32428620de4 | no | Debian buster amd64
(20190106_05:25) - Debian 10 with OSGeo LDAP SSH | x86_64 |
CONTAINER | 249.31MB | May 29, 2021 at 1:48am (UTC) |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+
| osgeo-debian-11 | a64bd7b1d088 | no | Debian buster amd64
(20190106_05:25) upgraded to Debian 11 OSGeo LDAP SSH | x86_64 |
CONTAINER | 280.48MB | Oct 3, 2021 at 3:27am (UTC) |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+
| osgeo-debian-11-docker | 6876eee33d83 | no | Debian bullseye amd64
with OSGeo LDAP + docker (2021-10-23) | x86_64 |
CONTAINER | 607.39MB | Oct 23, 2021 at 11:34pm (UTC) |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+
| osgeo-ubuntu-20 | 86b7088cd715 | no | Ubuntu 20.04 LTS
server with OSGeo LDAP SSH (20211004) | x86_64 |
CONTAINER | 529.15MB | Oct 8, 2021 at 4:56am (UTC) |
+--------------------------+--------------+--------+---------------------------------------------------------------------------+--------------+-----------+----------+-------------------------------+

}}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2582#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.