mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
fix zk
This commit is contained in:
parent
d70dc25bd2
commit
37162615b5
@ -30,8 +30,9 @@ before_install:
|
||||
- chmod +x docker-compose
|
||||
- sudo mv docker-compose /usr/local/bin
|
||||
# zookeeper
|
||||
- wget "http://apache.cs.utah.edu/zookeeper/zookeeper-${ZK_VERSION}/apache-zookeeper-${ZK_VERSION}.tar.gz"
|
||||
- tar -xvf "apache-zookeeper-${ZK_VERSION}.tar.gz"
|
||||
- wget "http://apache.cs.utah.edu/zookeeper/zookeeper-${ZK_VERSION}/apache-zookeeper-${ZK_VERSION}-bin.tar.gz"
|
||||
- tar -xvf "apache-zookeeper-${ZK_VERSION}-bin.tar.gz"
|
||||
- chmod +x ./apache-zookeeper-${ZK_VERSION}-bin/bin/zkServer.sh
|
||||
|
||||
# Skip the install step. Don't `go get` dependencies. Only build with the code
|
||||
# in vendor/
|
||||
@ -47,7 +48,7 @@ before_script:
|
||||
- curl -sfL https://raw.githubusercontent.com/bilibili/discovery/master/cmd/discovery/discovery-example.toml -o $GOPATH/bin/discovery.toml
|
||||
- nohup bash -c "$GOPATH/bin/discovery -conf $GOPATH/bin/discovery.toml &"
|
||||
# zookeeper
|
||||
- ./apache-zookeeper-${ZK_VERSION}/bin/zkServer.sh start ./zk/conf/zoo_sample.cfg 1> /dev/null
|
||||
- ./apache-zookeeper-${ZK_VERSION}-bin/bin/zkServer.sh start ./zk/conf/zoo_sample.cfg 1> /dev/null
|
||||
|
||||
script:
|
||||
- go build ./...
|
||||
|
Loading…
x
Reference in New Issue
Block a user