Bug 51969 - (ucs500docker) UCS 5.0-0 docker images
(ucs500docker)
UCS 5.0-0 docker images
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 5.0
All other
: P5 normal (vote)
: UCS 5.0
Assigned To: Arvid Requate
Dirk Wiesenthal
: interim-9
Depends on: 51965
Blocks: ucs500meta
  Show dependency treegraph
 
Reported: 2020-09-08 13:01 CEST by Florian Best
Modified: 2021-06-01 10:31 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-09-08 13:01:05 CEST
UCS 5.0-0 docker images should be created by using the jenkins job.
Comment 1 Florian Best univentionstaff 2020-09-22 10:15:24 CEST
0ef1ee1ff962 | Bug #51969: Switch to UCS-5.0-0 docker image for building
Comment 2 Arvid Requate univentionstaff 2021-05-19 23:04:50 CEST
I've build UCS Appliance Container images from updates-test following this manual build process:

root@master50:~# git clone git@git.knut.univention.de:univention/ucs-appliance-container.git
root@master50:~# cd ucs-appliance-container
root@master50:~# git checkout updates-test
root@master50:~# VERSION="5.0-0"; \
time sh bootstrap/bootstrap.sh \
    --use-cache \
    --arch amd64 \
    --distribution univention-corporate-server \
    --codename ucs$(echo ${VERSION} | tr --complement --delete '[:digit:]')

root@master50:~/ucs-appliance-container# docker images
REPOSITORY                                TAG                 IMAGE ID            CREATED             SIZE
univention-corporate-server-debootstrap   5.0-0               0bc93a48e613        2 minutes ago       426MB
univention-corporate-server-debootstrap   latest              0bc93a48e613        2 minutes ago       426MB

root@master50:~# VERSION="5.0-0"; IMAGE="univention-corporate-server-debootstrap"; TAG="latest"; \
time docker build \
    --build-arg DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
    --build-arg VERSION=${VERSION} \
    --build-arg COMMENT="$(docker image inspect --format '{{.Comment}}' ${IMAGE}:${TAG})" \
    --build-arg IMAGE=${IMAGE} \
    --build-arg TAG=${TAG} \
    --tag univention-corporate-server:${VERSION} \
    --tag univention-corporate-server:${TAG} .

root@master50:~/ucs-appliance-container# docker images
REPOSITORY                                TAG                 IMAGE ID            CREATED              SIZE
univention-corporate-server               5.0-0               f479963c25dd        About a minute ago   549MB
univention-corporate-server               latest              f479963c25dd        About a minute ago   549MB
univention-corporate-server-debootstrap   5.0-0               0bc93a48e613        6 minutes ago        426MB
univention-corporate-server-debootstrap   latest              0bc93a48e613        6 minutes ago        426MB


I've test-uploaded the resulting image to https://quay.io/repository/reqa/univention-corporate-server

The Image can be tested e.g. by running:

root@master50:~# FQDN=dc.ucs.example; \
docker run \
    --detach \
    --cap-add SYS_ADMIN \
    --cap-add MKNOD \
    --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
    --tmpfs /run \
    --tmpfs /tmp \
    --restart unless-stopped \
    --hostname ${FQDN} \
    --name ${FQDN} \
    quay.io/reqa/univention-corporate-server:5.0-0-rc1



TODO after UCS 5.0 Release:
* build final images using the official UCS repository
* upload them to hub.docker (and maybe quay.io too).
* Adjust the Jenkins job to automate this

Please reopen and set Keyword to interim-9 after initial QA.
Comment 3 Dirk Wiesenthal univentionstaff 2021-05-21 03:05:13 CEST
I like the new images. Everything seems to work flawless (once you read the instructions...)
Comment 5 Dirk Wiesenthal univentionstaff 2021-06-01 02:26:14 CEST
The image works. Repository settings are now up to date.
Comment 6 Florian Best univentionstaff 2021-06-01 10:31:51 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".