The official Kitex docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current Kitex docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
Kitex [kaɪt'eks] is a high-performance and strong-extensibility Go RPC framework that helps developers build microservices.
Kitex has built-in code generation tools that support generating Thrift, Protobuf, and scaffold code. This image provides the kitex command line tool for code generation.
Learn more on CloudWeGo.
The tag of each kitex docker image is consist of the version of kitex and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 0.14.5-oe2403sp4 | Kitex 0.14.5 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 0.16.4-oe2403sp4 | Kitex 0.16.4 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
In this usage, users can select the corresponding {Tag} based on their requirements.
Pull the openeuler/kitex image from docker
docker pull openeuler/kitex:{Tag}
Check the installed kitex version
docker run --rm openeuler/kitex:{Tag} kitex --version
Generate code from a Thrift IDL
Place example.thrift in the current directory and run:
docker run --rm -v "$(pwd)":/workspace openeuler/kitex:{Tag} \
kitex -module example.com/hello example.thrift
The generated code is written to the kitex_gen directory under the current directory.
Generate a server scaffold from a Thrift IDL
docker run --rm -v "$(pwd)":/workspace openeuler/kitex:{Tag} \
kitex -module example.com/hello -service hello example.thrift
Start a long-running container for exploration
docker run -d --name my-kitex openeuler/kitex:{Tag} sleep infinity
View the container logs
docker logs -f my-kitex
To get an interactive shell
docker exec -it my-kitex bash
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
docker pull openeuler/kitex:latestLast week