Skip to content

Commit

Permalink
chore: remove centos support (#2983)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Jul 4, 2024
1 parent ef93860 commit 4abeb38
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 299 deletions.
48 changes: 0 additions & 48 deletions .github/dockerfile/Dockerfile.centos

This file was deleted.

12 changes: 1 addition & 11 deletions .github/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright 2021 EMQ Technologies Co., Ltd.
# Copyright 2021-2024 EMQ Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,13 +29,3 @@ if dpkg --help >/dev/null 2>&1; then
dpkg -P kuiper
[ -z "$(dpkg -l |grep kuiper)" ]
fi

if rpm --help >/dev/null 2>&1; then
rpm -ivh $PKG_PATH/*.rpm
[ ! -z $(rpm -q emqx | grep -o emqx) ]
kuiperd &
sleep 1
if ! curl 127.0.0.1:9081 >/dev/null 2>&1; then echo "kuiper start failed"; exit 1; fi
rpm -e kuiper
[ "$(rpm -q emqx)" == "package emqx is not installed" ]
fi
12 changes: 0 additions & 12 deletions .github/workflows/build_base_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
matrix:
os:
- debian
- centos
- alpine
golang:
- 1.22.1
Expand All @@ -41,17 +40,6 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v4
if: matrix.os == 'centos'
with:
push: true
pull: true
cache-from: type=local,src=/tmp/.docker-buildx-cache,mode=max
cache-to: type=local,dest=/tmp/.docker-buildx-cache-new,mode=max
platforms: linux/amd64,linux/arm64
build-args: GO_VERSION=${{ matrix.golang }}
tags: ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }}
file: .github/dockerfile/Dockerfile.${{ matrix.os }}
- uses: docker/build-push-action@v4
if: matrix.os == 'debian'
with:
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
arch: ${{fromJson(needs.prepare.outputs.arch)}}
os:
- debian
- centos
exclude:
- os: centos
arch: linux/arm/v7

steps:
- uses: actions/checkout@v3
Expand All @@ -58,16 +54,6 @@ jobs:
--platform ${{ matrix.arch }} \
ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os }} \
bash -euc "git config --global --add safe.directory /ekuiper && make pkg && make pkg_core && make pkg_full && .github/scripts/test.sh"
- name: build
if: matrix.os == 'centos'
run: |
docker run -i --rm \
-v $(pwd):/ekuiper \
--workdir /ekuiper \
--env KUIPER_SOURCE='/ekuiper' \
--platform ${{ matrix.arch }} \
ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os }} \
bash -euc "make -C deploy/packages && .github/scripts/test.sh"
- name: create sha file
run: |
cd _packages && for var in $(ls); do sudo bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"; done && cd -
Expand Down
19 changes: 3 additions & 16 deletions deploy/packages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,18 @@ endif
# The version-release used for package
export PKG_VSN := $(shell git describe --tags --always | sed 's/^v//g')

ifneq ($(shell cat /etc/*-release |grep -o -i centos),)
ID := centos
VERSION_ID := $(shell rpm --eval '%{centos_ver}')
else
ID := $(shell sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g' | sed 's/"//g' )
VERSION_ID := $(shell sed -n '/^VERSION_ID=/p' /etc/os-release | sed -r 's/VERSION_ID=(.*)/\1/g' | sed 's/"//g')
endif
ID := $(shell sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g' | sed 's/"//g' )
VERSION_ID := $(shell sed -n '/^VERSION_ID=/p' /etc/os-release | sed -r 's/VERSION_ID=(.*)/\1/g' | sed 's/"//g')
SYSTEM := $(shell echo $(ID)$(VERSION_ID) | sed -r "s/([a-zA-Z]*)-.*/\1/g")
##
## Support RPM and Debian based linux systems
## Support Debian based linux systems
##
ifeq ($(ID),ubuntu)
PKGERDIR := deb
else ifeq ($(ID),debian)
PKGERDIR := deb
else ifeq ($(ID),raspbian)
PKGERDIR := deb
else
PKGERDIR := rpm
endif

.PHONY: all
Expand All @@ -35,14 +28,8 @@ all: clean

clean:
rm -rf package
make -C rpm clean
make -C deb clean

.PHONY: deb
deb:
make -C deb

.PHONY: rpm
rpm:
make -C rpm

48 changes: 0 additions & 48 deletions deploy/packages/rpm/Makefile

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/packages/rpm/kuiper.service

This file was deleted.

103 changes: 0 additions & 103 deletions deploy/packages/rpm/kuiper.spec

This file was deleted.

3 changes: 2 additions & 1 deletion docs/en_US/getting_started/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ For Kubernetes, eKuiper offers helm chart. Please refer to [install via helm](..

eKuiper can be deployed directly to bare metal servers or virtual machines.

eKuiper has prebuilt packages downloadable for Linux such as CentOS, Debian and Ubuntu and macOS. You can [install from zip](../installation.md#install-from-zip) or [from packages](../installation.md#install-from-package).
eKuiper has prebuilt packages downloadable for Linux such as Debian and Ubuntu and macOS. You
can [install from zip](../installation.md#install-from-zip) or [from packages](../installation.md#install-from-package).

For other platforms, you may [build the runnable from source code](../installation.md#compile-from-source-code).

Expand Down
15 changes: 0 additions & 15 deletions docs/en_US/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ Please check [use of eKuiper management console](./operation/manager-ui/overview

eKuiper binary packages are released on below operating systems with AMD64, ARM and ARM64 support:

- CentOS 7 (EL7)
- CentOS 8 (EL8)
- Raspbian 10
- Debian 9
- Debian 10
Expand Down Expand Up @@ -122,13 +120,6 @@ After installation, all the files are inside the unzipped directory. Please chec
$ sudo apt install ./kuiper-x.x.x-linux-amd64.deb
```

- RPM package:

```shell
# for CentOS
$ sudo rpm -ivh kuiper-x.x.x-linux-amd64.rpm
```

3. Start eKuiper.
- quick start

Expand All @@ -149,12 +140,6 @@ After installation, all the files are inside the unzipped directory. Please chec
sudo apt remove --purge kuiper
```

- RPM:

```shell
sudo yum remove kuiper
```

When installing by package, the eKuiper folders are not in the same directory. The installation structure is as below:

```text
Expand Down
4 changes: 3 additions & 1 deletion docs/zh_CN/getting_started/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ docker run -p 9081:9081 -d --name kuiper -e MQTT_SOURCE__DEFAULT__SERVER="tcp://

eKuiper 可以直接部署在裸机服务器或虚拟机上。

eKuiper 有预先构建的软件包,可供 Linux, 如CentOS、Debian 和 Ubuntu 以及 macOS 的安装包下载下载。你可以[从压缩包安装](../installation.md#通过-zip-包安装)[从软件包安装](../installation.md#通过软件包安装)
eKuiper 有预先构建的软件包,可供 Linux, 如Debian 和 Ubuntu 以及 macOS
的安装包下载下载。你可以[从压缩包安装](../installation.md#通过-zip-包安装)
[从软件包安装](../installation.md#通过软件包安装)

对于其他平台,你可以[从源代码构建可运行程序](../installation.md#从源码编译)

Expand Down
Loading

0 comments on commit 4abeb38

Please sign in to comment.