@@ -34,23 +34,27 @@ jobs:
3434 # Clean up any old containers from previous runs
3535 docker rm -f apisix etcd 2>/dev/null || true
3636
37- # Using APISIX 3.8.0 (late 2023)
38- # etcd is required as a dependency
39-
37+ # APISIX 3.8.0 (late 2023) + etcd 3.5.10
4038 docker network create apisix-net 2>/dev/null || true
4139
42- echo "Starting etcd (bitnami /etcd:3 .5.10)..."
40+ echo "Starting etcd (gcr.io /etcd-development/etcd:v3 .5.10)..."
4341 docker run -d --name etcd \
4442 --network apisix-net \
4543 -p 2379:2379 \
46- -e ALLOW_NONE_AUTHENTICATION=yes \
47- -e ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379 \
48- -e ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 \
49- bitnami/etcd:3.5.10
50-
51- # Give etcd time to start
44+ gcr.io/etcd-development/etcd:v3.5.10 \
45+ /usr/local/bin/etcd \
46+ --name s1 \
47+ --data-dir=/etcd-data \
48+ --listen-client-urls=http://0.0.0.0:2379 \
49+ --advertise-client-urls=http://etcd:2379 \
50+ --listen-peer-urls=http://0.0.0.0:2380 \
51+ --initial-advertise-peer-urls=http://etcd:2380 \
52+ --initial-cluster=s1=http://etcd:2380 \
53+ --initial-cluster-state=new
54+
55+ # Give etcd time to start (no etcdctl loop)
5256 echo "Waiting for etcd to start..."
53- sleep 20
57+ sleep 25
5458
5559 echo "Starting APISIX..."
5660 docker run -d --name apisix \
6266
6367 # Wait for APISIX
6468 echo "Waiting for APISIX to start..."
65- sleep 20
69+ sleep 25
6670
6771 echo "install_status=success" >> $GITHUB_OUTPUT
6872
0 commit comments