If you want to contribute to Kubespider, please read the following content.
Before developing, you need to install Kubespider first.
git clone https://github.com/opennaslab/kubespider.git
cd kubespider
bash hack/install_kubespider.sh
If you add/update python lib dependencies( requirements.txt needs to be modified), you need to deploy Kubespider with the following steps:
In china mainland, it may build failed if without HTTP_PROXY/HTTPS_PROXY, so please set if you have proxy. But if you don't have it, please delete --build-arg
related.
docker build -t cesign/kubespider:latest -f Dockerfile ./ --build-arg HTTP_PROXY=http://<server>:<port> --build-arg HTTPS_PROXY=http://<server>:<port>
docker rm kubespider --force
export image_registry=cesign
export KUBESPIDER_VERSION=lates
docker run -itd --name kubespider \
-v ${HOME}/kubespider/.config:/app/.config \
--network=host \
--restart unless-stopped \
${image_registry}/kubespider:${KUBESPIDER_VERSION}
If no new dependencies are added/updated, you can run the following command to run Kubespider with the modified code:
# Run it in Kubespider code directory
docker cp kubespider kubespider:/app/ && docker restart kubespider
Once you finish developing and do enough testing, you can create a PR in this repository. The maintainer will check and merge it as soon as possible.