forked from hswaw/hscloud
infra monorepo (https://gerrit.hackerspace.pl)
2ce367681a
python_rules is completely broken when it comes to py2/py3 support. Here, we replace it with native python rules from new Bazel versions [1] and rules_pip for PyPI dependencies [2]. rules_pip is somewhat little known and experimental, but it seems to work much better than what we had previously. We also unpin rules_docker and fix .bazelrc to force Bazel into Python 2 mode - hopefully, this repo will now work fine under operating systems where `python` is python2 (as the standard dictates). [1] - https://docs.bazel.build/versions/master/be/python.html [2] - https://github.com/apt-itude/rules_pip Change-Id: Ibd969a4266db564bf86e9c96275deffb9610dd44 |
||
---|---|---|
app | ||
bzl | ||
cluster | ||
gcp | ||
go | ||
kube | ||
nix | ||
pip | ||
proto | ||
tools | ||
.bazelrc | ||
.gitignore | ||
BUILD | ||
COPYING | ||
env.sh | ||
README | ||
WORKSPACE |
HSCloud ======= This is a monorepo. You'll need bash and Bazel 0.20.0+ to use it. You'll also need Nix installed globally in your system until [rules_nixpkgs/75](https://github.com/tweag/rules_nixpkgs/issues/75) is resolved. Or run on NixOS. Getting started --------------- cd hscloud . env.sh # setup PATH and hscloud_root tools/install.sh # build tools Then, to get Kubernets: echo "185.236.240.36 k0.hswaw.net" >> /etc/hosts # temporary hack until we get loadbalancers working bazel run //cluster/clustercfg:clustercfg admincreds $(whoami)-admin # get administrative creds (valid for 5 days) kubectl version Clusters ======== The following kubernetes clusters are available: k0.hswaw.net ------------ 3 nodes (bc01n{01,02,03}.hswaw.net), mixed worker/master. No persistent storage (yet). Temporary development cluster. Will become base production cluster once configuration is done, but will *likely be fully cleared*. Feel free to use for tests, but your pods might disappear at any time.