File tree 7 files changed +2
-51
lines changed
7 files changed +2
-51
lines changed Original file line number Diff line number Diff line change 26
26
name : run ubi8 docker and mapping apisix-runtime rpm into container
27
27
command : |
28
28
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubiInstance --net="host" registry.access.redhat.com/ubi8/ubi:8.6 /bin/bash
29
- - run :
30
- name : install dependencies in container
31
- command : |
32
- docker exec ubiInstance bash -c "dnf install -y yum-utils"
33
- docker exec ubiInstance bash -c "yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo"
34
- docker exec ubiInstance bash -c "yum -y install openresty-openssl111 openresty-pcre openresty-zlib"
35
29
- run :
36
30
name : install rpm in container
37
31
command : |
Original file line number Diff line number Diff line change 35
35
run : |
36
36
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" docker.io/ubuntu:20.04 /bin/bash
37
37
38
- - name : install dependencies in container
39
- run : |
40
- docker exec ubuntu20.04Instance bash -c "DEBIAN_FRONTEND=noninteractive apt-get update"
41
- docker exec ubuntu20.04Instance bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -y libreadline-dev lsb-release libssl-dev perl build-essential"
42
- docker exec ubuntu20.04Instance bash -c "DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends wget gnupg ca-certificates"
43
- docker exec ubuntu20.04Instance bash -c "wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -"
44
- docker exec ubuntu20.04Instance bash -c 'echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/openresty.list'
45
- docker exec ubuntu20.04Instance bash -c "DEBIAN_FRONTEND=noninteractive apt-get update"
46
- docker exec ubuntu20.04Instance bash -c "DEBIAN_FRONTEND=noninteractive apt-get -y install openresty-pcre openresty-zlib"
47
-
48
38
- name : install deb in container
49
39
run : |
50
40
docker exec ubuntu20.04Instance bash -c "dpkg -i /output/apisix-runtime_${BUILD_APISIX_RUNTIME_VERSION}-0~ubuntu20.04_amd64.deb"
Original file line number Diff line number Diff line change 35
35
run : |
36
36
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name centos7Instance --net="host" docker.io/centos:7 /bin/bash
37
37
38
- - name : install dependencies in container
39
- run : |
40
- docker exec centos7Instance bash -c "yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo"
41
- docker exec centos7Instance bash -c "yum -y install openresty-pcre openresty-zlib"
42
-
43
38
- name : install rpm in container
44
39
run : |
45
40
docker exec centos7Instance bash -c "yum -y localinstall /output/apisix-runtime-${BUILD_APISIX_RUNTIME_VERSION}-0.el7.x86_64.rpm"
Original file line number Diff line number Diff line change 42
42
docker exec centos8Instance bash -c "dnf install -y centos-release-stream"
43
43
docker exec centos8Instance bash -c "dnf swap -y centos-{linux,stream}-repos"
44
44
docker exec centos8Instance bash -c "dnf distro-sync -y"
45
-
46
45
docker exec centos8Instance bash -c "dnf install -y yum-utils"
47
- docker exec centos8Instance bash -c "yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo"
48
- docker exec centos8Instance bash -c "yum -y install openresty-pcre openresty-zlib"
49
46
50
47
- name : install rpm in container
51
48
run : |
Original file line number Diff line number Diff line change 33
33
run : |
34
34
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubiInstance --net="host" registry.access.redhat.com/ubi8/ubi:8.6 /bin/bash
35
35
36
- - name : install dependencies in container
37
- run : |
38
- docker exec ubiInstance bash -c "dnf install -y yum-utils"
39
- docker exec ubiInstance bash -c "yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo"
40
- docker exec ubiInstance bash -c "yum -y install openresty-pcre openresty-zlib"
41
-
42
36
- name : install rpm in container
43
37
run : |
44
38
docker exec ubiInstance bash -c "ls -la /output"
Original file line number Diff line number Diff line change 14
14
15
15
ARCH=${ARCH:- `(uname -m | tr ' [:upper:]' ' [:lower:]' )`}
16
16
17
- openresty_zlib_version=" 1.2.12-1"
18
- openresty_pcre_version=" 8.45-1"
19
- if [ " $PACKAGE_TYPE " == " deb" ]; then
20
- pkg_suffix=" ${codename} 1"
21
- openresty_zlib_version=" $openresty_zlib_version ~$pkg_suffix "
22
- openresty_pcre_version=" $openresty_pcre_version ~$pkg_suffix "
23
- fi
24
-
25
17
fpm -f -s dir -t " $PACKAGE_TYPE " \
26
18
--" $PACKAGE_TYPE " -dist " $dist " \
27
19
-n " $artifact " \
28
20
-a " $( uname -i) " \
29
21
-v " $RUNTIME_VERSION " \
30
22
--iteration " $ITERATION " \
31
- -x openresty/zlib \
32
- -x openresty/pcre \
33
- -d " openresty-zlib >= $openresty_zlib_version " \
34
- -d " openresty-pcre >= $openresty_pcre_version " \
35
23
--post-install post-install-apisix-runtime.sh \
36
24
--description " APISIX's OpenResty distribution." \
37
25
--license " ASL 2.0" \
Original file line number Diff line number Diff line change @@ -35,20 +35,13 @@ install_dependencies_deb() {
35
35
}
36
36
37
37
install_openresty_deb () {
38
- # install openresty and openssl111
39
- arch_path=" "
40
- if [[ $ARCH == " arm64" ]] || [[ $ARCH == " aarch64" ]]; then
41
- arch_path=" arm64/"
42
- fi
43
38
DEBIAN_FRONTEND=noninteractive apt-get update
44
- DEBIAN_FRONTEND=noninteractive apt-get install -y libreadline-dev lsb-release libpcre3 libpcre3-dev libldap2-dev libssl-dev perl build-essential
39
+ DEBIAN_FRONTEND=noninteractive apt-get install -y libreadline-dev lsb-release libpcre3 libpcre3-dev libldap2-dev perl build-essential
45
40
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends wget gnupg ca-certificates
46
41
}
47
42
48
43
install_openresty_rpm () {
49
- yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
50
- yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo
51
- yum install -y openresty-openssl111-devel pcre pcre-devel openldap-devel
44
+ yum install -y pcre pcre-devel openldap-devel
52
45
}
53
46
54
47
install_luarocks () {
You can’t perform that action at this time.
0 commit comments