Skip to content

Upgrade build script

Rui Hu requested to merge upgrade-2204 into master

As the #1 (closed) described, this merge request upgraded the toolbox docker image by:

  1. Upgrade the base image from Ubuntu 20.04 to 22.04 (Jammy)
  2. Remove the following packages due to out-of-date versions:
    • postgresql
    • postgresql-contrib
    • mongodb-clients (This one is removed because the package is no longer available for 2204)
  3. Add the following packages (mainly from Michael Griffith if not commented):
    • postgresql-common (to install postgresql 16)
    • gnupg (to add official mongodb repo)
    • openssh-client
    • kmod
    • s3fs
    • xxd
    • micro
    • file
    • less
    • screen
    • tmux (I added this since I saw someone is using screen)
    • fuse
  4. Install mongocli and mongodb-org-tools to replace the missing mongodb-clients
  5. Install postgresql-16 and postgresql-client-16.
  6. Add CI pipeline to build and publish to internal container registry.
    • By NOT configuring the DOCKER_USER and DOCKER_TOKEN, you can omit the job for publishing to docker hub.

You can pull and test the image from our internal container registry:

docker login registry.cleverthis.com -u <YOUR_EMAIL_FOR_LOGIN_TO_GITHUB> # The password is the one you use for gitlab too
docker pull registry.cleverthis.com/cleverthis/modjular/toolbox:upgrade-2204
docker run -it --rm registry.cleverthis.com/cleverthis/modjular/toolbox:upgrade-2204 /bin/bash

(Ref: https://docs.gitlab.com/ee/user/packages/container_registry/authenticate_with_container_registry.html )

During the last step (docker run), the container will first try to install the correct linux modules package. The uname -r in container always reports the host kernel version. As I use openSUSE, naturally I got an error. But if you're using ubuntu or debian (the uname -r returns something like X.Y.Z-1-generic instead of default), the package will be installed. This step is optional so it can fail. But the result will be printed to the console before launching the bash.

Merge request reports

Loading