Build clice container (#196)

This commit is contained in:
Myriad-Dreamin
2025-09-06 16:21:28 +08:00
committed by GitHub
parent 9e55381788
commit a942279765
5 changed files with 160 additions and 0 deletions

View File

@@ -147,3 +147,36 @@ $ pytest -s --log-cli-level=INFO tests/integration \
--executable=./build/linux/x86_64/debug/clice \
--resource-dir=./build/linux/x86_64/debug/lib/clang/20/
```
## Building Docker Image
Use the following command to build docker image:
```bash
$ docker build -t clice .
```
Run docker image by running the following command:
```bash
$ docker run --rm -it clice --help
OVERVIEW: clice is a new generation of language server for C/C++
...
```
The directory structure of the docker image is as follows:
```
/opt/clice
├── bin
│ ├── clice -> /usr/local/bin/clice
├── include
├── lib
├── LICENSE
├── README.md
```
Hint: launch clice in the docker container by running the following command:
```bash
$ docker run --rm -it --entrypoint bash clice

View File

@@ -146,3 +146,35 @@ $ pytest -s --log-cli-level=INFO tests/integration \
--executable=./build/linux/x86_64/debug/clice \
--resource-dir=./build/linux/x86_64/debug/lib/clang/20/
```
## Building Docker Image
使用以下命令构建 docker 镜像:
```bash
$ docker build -t clice .
```
运行 docker 镜像:
```bash
$ docker run --rm -it clice --help
OVERVIEW: clice is a new generation of language server for C/C++
...
```
docker 镜像的目录结构如下:
```
/opt/clice
├── bin
│ ├── clice -> /usr/local/bin/clice
├── include
├── lib
├── LICENSE
├── README.md
```
提示:可以使用以下命令进入 clice 容器:
```bash
$ docker run --rm -it --entrypoint bash clice