HUB
Sign inSign up
kitex logo

openeuler/kitex

Sponsored OSS

By openeuler

•Updated 3 days ago

Image
0

437

openeuler/kitex repository overview

⁠Quick reference

⁠Kitex | 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

TagCurrentlyArchitectures
0.14.5-oe2403sp4⁠Kitex 0.14.5 on openEuler 24.03-LTS-SP4amd64, arm64
0.16.4-oe2403sp4⁠Kitex 0.16.4 on openEuler 24.03-LTS-SP4amd64, arm64

⁠Usage

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
    

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:6e8e277f8…
Size
136.6 MB
Last updated
3 days ago
docker pull openeuler/kitex:latest
This week's pulls