Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
a4f00d0f
Unverified
Commit
a4f00d0f
authored
Jul 30, 2020
by
Svetomir Smiljkovic
Committed by
GitHub
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add localpinning test into CI (#497)
parent
22687437
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
beekeeper-localpinning.yaml
.github/workflows/beekeeper-localpinning.yaml
+52
-0
No files found.
.github/workflows/beekeeper-localpinning.yaml
0 → 100644
View file @
a4f00d0f
name
:
BeekeeperLocalPinning
on
:
push
:
branches
:
-
master
jobs
:
beekeeper
:
env
:
REPLICA
:
5
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Install k3d
run
:
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=v1.7.0 bash
-
name
:
Install latest beekeeper
run
:
|
export TAG=$(curl -s https://api.github.com/repos/ethersphere/beekeeper/releases/latest | jq -r .tag_name)
curl -Ls https://github.com/ethersphere/beekeeper/releases/download/${TAG}/beekeeper-linux-amd64 -o beekeeper
chmod +x beekeeper
-
name
:
Create cluster
run
:
k3d create --publish="80:80" --enable-registry --registry-name registry.localhost
-
name
:
Set kubeconfig
run
:
|
until k3d get-kubeconfig --name='k3s-default' &> /dev/null; do echo "Waiting for the cluster..."; sleep 1; done
mkdir ~/.kube
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
-
name
:
Add entries to /etc/hosts
run
:
|
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts
-
name
:
Set helm repo and namespace
run
:
|
helm repo add ethersphere "https://ethersphere.github.io/helm"
kubectl create ns bee
-
name
:
Build latest bee image
run
:
|
docker build --network=host -t registry.localhost:5000/ethersphere/bee:latest .
docker push registry.localhost:5000/ethersphere/bee:latest
-
name
:
Set bees
run
:
|
export LAST_BEE=$(($REPLICA-1))
until kubectl get svc traefik -n kube-system &> /dev/null; do echo "Waiting for the traefik service..."; sleep 1; done
helm install bee -f .github/beekeeper/bee.yaml ethersphere/bee --namespace bee --set image.repository=registry.localhost:5000/ethersphere/bee --set replicaCount="${REPLICA}" --set libp2pSettings.enabled=true --beeConfig.db_capacity=500 --wait
until [[ "$(curl -s bee-${LAST_BEE}-debug.localhost/readiness | jq -r .status)" == "ok" ]] &> /dev/null; do echo "Waiting for the last bee..."; sleep 1; done
-
name
:
Test localpinning
1
run
:
./beekeeper check localpinning --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
-
name
:
Test localpinning
2
run
:
./beekeeper check localpinning --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --large-file-disk-ratio
2
-
name
:
Test localpinning
3
run
:
./beekeeper check localpinning --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" --large-file-disk-ratio 2 --large-file-count
10
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment