Skip to content

Commit

Permalink
Release 2.5.0 (#38)
Browse files Browse the repository at this point in the history
Since version 2.5.0 has been released, we could add docs for 2.5.0 for official website, such as download links and building commands:

- https://github.com/apache/incubator-pegasus/releases/tag/v2.5.0
- https://cwiki.apache.org/confluence/display/PEGASUS/Apache+Pegasus+2.5.0+Release+Notes
  • Loading branch information
empiredan authored Dec 12, 2023
1 parent 57d1c9c commit ad249d2
Show file tree
Hide file tree
Showing 10 changed files with 314 additions and 26 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ sass:
latest_pegasus_version: master
pegasus_versions:
- master
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
Expand Down
12 changes: 6 additions & 6 deletions _docs/en/2.4.0/compile-by-docker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
permalink: 2.4.0/docs/build/compile-by-docker/
redirect_from:
- 2.4.0/docs/build/compile-from-source/
- 2.4.0/docs/build/compile-by-docker/
version: 2.4.0
---

Expand All @@ -11,7 +11,7 @@ Pegasus encapsulates the building environments into [docker images](https://hub.

For example, you can use the image based on `Ubuntu 20.04`:
```sh
docker pull apache/pegasus:build-env-ubuntu2004
docker pull apache/pegasus:build-env-ubuntu2004-v2.4
```

## Compilation
Expand All @@ -20,7 +20,7 @@ Please refer to [Downloads](/docs/downloads) to fetch the sources under a direct

```sh
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j $(nproc)"
```

Expand All @@ -32,23 +32,23 @@ Package server binaries for deployment:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_server"
```

Package client libraries for C/C++ development:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_client"
```

Package toolset which includes various tools (shell, bench):

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_tools"
```

Expand Down
73 changes: 73 additions & 0 deletions _docs/en/2.5.0/compile-by-docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
permalink: 2.5.0/docs/build/compile-by-docker/
redirect_from:
- 2.5.0/docs/build/compile-by-docker/
version: 2.5.0
---

## Download the docker image

Pegasus encapsulates the building environments into [docker images](https://hub.docker.com/r/apache/pegasus/tags?page=1&name=env), you can build directly based on these environments.

For example, you can use the image based on `Ubuntu 20.04`:
```bash
docker pull apache/pegasus:build-env-ubuntu2004-v2.5
```

## Compilation

Please refer to [Downloads](/docs/downloads) to fetch the sources under a directory (`/your/local/apache-pegasus-source`). Then run the following command:

If you want to run tests, you should build Pegasus by the following command:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "cd /root/pegasus; ./run.sh build --test -c --clear_thirdparty -j $(nproc)"
```

If you want to build Pegasus without runing tests, just execute the following command:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j $(nproc)"
```

The output of compilation will be placed under `build/latest/output/` of the source directory. It includes `bin`, `include` and `lib`.

## Run tests

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "cd /root/pegasus; ./run.sh test"
```

## Packaging

Package server binaries for deployment:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "./run.sh pack_server"
```

Package client libraries for C/C++ development:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "./run.sh pack_client"
```

Package toolset which includes various tools (shell, bench):

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004-v2.5 \
/bin/bash -c "./run.sh pack_tools"
```

If this is your first time compiling Pegasus, it's recommended to try [onebox](/overview/onebox).
67 changes: 67 additions & 0 deletions _docs/en/2.5.0/compile-from-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
permalink: 2.5.0/docs/build/compile-from-source/
redirect_from:
- 2.5.0/docs/build/compile-from-source/
version: 2.5.0
---

Since 2.4.0, Pegasus supports to build both on Linux and macOS. Please don't hesitate to contact us via [Github Issues]({{ site.pegasus_github_url }}/issues) when you encountered any problem.

## Requirements

- GCC 5.4.0+
- CMake 3.11.0+

## Linux environment

You can refer to the docker images to install dependencies and set environment variables. For example:
- [CentOS 7](https://github.com/apache/incubator-pegasus/blob/master/docker/pegasus-build-env/centos7/Dockerfile)
- [Ubuntu 18.04](https://github.com/apache/incubator-pegasus/blob/master/docker/pegasus-build-env/ubuntu1804/Dockerfile)
- [Ubuntu 20.04](https://github.com/apache/incubator-pegasus/blob/master/docker/pegasus-build-env/ubuntu2004/Dockerfile)
- [Ubuntu 22.04](https://github.com/apache/incubator-pegasus/blob/master/docker/pegasus-build-env/ubuntu2204/Dockerfile)

## Compilation

Please refer to [Downloads](/docs/downloads) to fetch the sources。

If you want to run tests, you should build Pegasus by the following command:

```bash
./run.sh build --test -c --clear_thirdparty -j $(nproc)
```

If you want to build Pegasus without runing tests, just execute the following command:

```bash
./run.sh build -c --clear_thirdparty -j $(nproc)
```

The output of compilation will be placed under `build/latest/output/` of the source directory. It includes `bin`, `include` and `lib`.

## Run tests

```bash
./run.sh test
```

## Packaging

Package server binaries for development:

```bash
./run.sh pack_server
```

Package client libraries for C/C++ development:

```bash
./run.sh pack_client
```

Package toolset which includes various tools (shell, bench):

```bash
./run.sh pack_tools
```

If this is your first time compiling Pegasus, it's recommended to try [onebox](/overview/onebox).
16 changes: 8 additions & 8 deletions _docs/en/build/compile-by-docker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
permalink: docs/build/compile-by-docker/
redirect_from:
- master/docs/build/compile-from-source/
- master/docs/build/compile-by-docker/
version: master
---

Expand All @@ -11,7 +11,7 @@ Pegasus encapsulates the building environments into [docker images](https://hub.

For example, you can use the image based on `Ubuntu 20.04`:
```bash
docker pull apache/pegasus:build-env-ubuntu2004
docker pull apache/pegasus:build-env-ubuntu2004-master
```

## Compilation
Expand All @@ -22,15 +22,15 @@ If you want to run tests, you should build Pegasus by the following command:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "cd /root/pegasus; ./run.sh build --test -c --clear_thirdparty -j $(nproc)"
```

If you want to build Pegasus without runing tests, just execute the following command:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j $(nproc)"
```

Expand All @@ -40,7 +40,7 @@ The output of compilation will be placed under `build/latest/output/` of the sou

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "cd /root/pegasus; ./run.sh test"
```

Expand All @@ -50,23 +50,23 @@ Package server binaries for deployment:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "./run.sh pack_server"
```

Package client libraries for C/C++ development:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "./run.sh pack_client"
```

Package toolset which includes various tools (shell, bench):

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-master \
/bin/bash -c "./run.sh pack_tools"
```

Expand Down
5 changes: 5 additions & 0 deletions _docs/en/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ We recommend downloading the signed source release that follows [ASF Release Pol
[2.4.0-asc]: https://downloads.apache.org/incubator/pegasus/2.4.0/apache-pegasus-2.4.0-incubating-src.zip.asc
[2.4.0-sha]: https://downloads.apache.org/incubator/pegasus/2.4.0/apache-pegasus-2.4.0-incubating-src.zip.sha512
[2.4.0-rn]: https://cwiki.apache.org/confluence/display/PEGASUS/Apache+Pegasus+2.4.0+Release+Notes
[2.5.0-src]: https://www.apache.org/dyn/closer.lua?path=/incubator/pegasus/2.5.0/apache-pegasus-2.5.0-incubating-src.zip
[2.5.0-asc]: https://downloads.apache.org/incubator/pegasus/2.5.0/apache-pegasus-2.5.0-incubating-src.zip.asc
[2.5.0-sha]: https://downloads.apache.org/incubator/pegasus/2.5.0/apache-pegasus-2.5.0-incubating-src.zip.sha512
[2.5.0-rn]: https://cwiki.apache.org/confluence/display/PEGASUS/Apache+Pegasus+2.5.0+Release+Notes

| Name | Package | Signature | Checksum | Release Notes |
|----------------------|---------------------|------------------|---------------------|------------------------|
| Apache Pegasus 2.1.0 | [Source][2.1.0-src] | [asc][2.1.0-asc] | [sha512][2.1.0-sha] | [2020-11-30][2.1.0-rn] |
| Apache Pegasus 2.2.0 | [Source][2.2.0-src] | [asc][2.2.0-asc] | [sha512][2.2.0-sha] | [2021-06-27][2.2.0-rn] |
| Apache Pegasus 2.3.0 | [Source][2.3.0-src] | [asc][2.3.0-asc] | [sha512][2.3.0-sha] | [2021-11-26][2.3.0-rn] |
| Apache Pegasus 2.4.0 | [Source][2.4.0-src] | [asc][2.4.0-asc] | [sha512][2.4.0-sha] | [2022-10-22][2.4.0-rn] |
| Apache Pegasus 2.5.0 | [Source][2.5.0-src] | [asc][2.5.0-asc] | [sha512][2.5.0-sha] | [2022-12-01][2.5.0-rn] |

10 changes: 5 additions & 5 deletions _docs/zh/2.4.0/compile-by-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pegasus将编译环境封装至[Docker镜像](https://hub.docker.com/r/apache/pe
比如,你可以使用基于`Ubuntu 20.04`的镜像:

```sh
docker pull apache/pegasus:build-env-ubuntu2004
docker pull apache/pegasus:build-env-ubuntu2004-v2.4
```

## 编译
Expand All @@ -22,7 +22,7 @@ docker pull apache/pegasus:build-env-ubuntu2004

```sh
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "cd /root/pegasus; ./run.sh build -c --clear_thirdparty -j $(nproc)"
```

Expand All @@ -34,23 +34,23 @@ docker run -v /your/local/apache-pegasus-source:/root/pegasus \

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_server"
```

打包client端库,用于C/C++端客户端开发:

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_client"
```

打包tools工具集,里面包含了各种工具(shell、bench):

```bash
docker run -v /your/local/apache-pegasus-source:/root/pegasus \
apache/pegasus:build-env-ubuntu2004 \
apache/pegasus:build-env-ubuntu2004-v2.4 \
/bin/bash -c "./run.sh pack_tools"
```

Expand Down
Loading

0 comments on commit ad249d2

Please sign in to comment.