Go to file
Serge Bazanski 2ce367681a *: move away from python_rules
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
2019-07-16 22:22:05 +00:00
app app/registry: allow inf and q3k to push to app/* and go/svc/* 2019-07-13 17:13:09 +02:00
bzl bzl/rules.bzl: fix incompatibilities 2019-07-16 22:21:55 +00:00
cluster *: move away from python_rules 2019-07-16 22:22:05 +00:00
gcp secretstore: add implr 2019-05-18 00:15:25 +02:00
go go/svc: finish porting services to Bazel 2019-07-16 23:31:25 +02:00
kube make cockroachdb into a cluster service 2019-06-20 16:43:01 +02:00
nix nix/cluster-configuration: mention CNI plugin issue 2019-06-20 12:55:02 +02:00
pip *: move away from python_rules 2019-07-16 22:22:05 +00:00
proto go/svc/invoice: add shitty multilanguage support 2019-06-07 10:37:22 +02:00
tools *: move away from python_rules 2019-07-16 22:22:05 +00:00
.bazelrc *: move away from python_rules 2019-07-16 22:22:05 +00:00
.gitignore *: move away from python_rules 2019-07-16 22:22:05 +00:00
BUILD *: move away from python_rules 2019-07-16 22:22:05 +00:00
COPYING isc license 2018-10-25 14:25:36 +02:00
README tools/: add nixops 2019-05-15 19:08:25 +02:00
WORKSPACE *: move away from python_rules 2019-07-16 22:22:05 +00:00
env.sh *: k0.hswaw.net somewhat working 2019-01-13 21:14:02 +01:00

README

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.