Upgrade build script
As the #1 (closed) described, this merge request upgraded the toolbox docker image by:
- Upgrade the base image from Ubuntu 20.04 to 22.04 (Jammy)
- 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)
- 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 usingscreen
) fuse
-
- Install
mongocli
andmongodb-org-tools
to replace the missingmongodb-clients
- Install
postgresql-16
andpostgresql-client-16
. - Add CI pipeline to build and publish to internal container registry.
- By NOT configuring the
DOCKER_USER
andDOCKER_TOKEN
, you can omit the job for publishing to docker hub.
- By NOT configuring the
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
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.