The Tectonic Console
Bridge consists of a frontend webapp and a backend service which serves the following purposes:
- Proxy the Kubernetes API
- Provide additional non-Kubernetes APIs for interacting with the cluster
- Serve all frontend static assets
- User Authentication (TBD)
Build the backend:
./build
Backend binaries are output to /bin
.
Build and package all frontent assets for deployment:
./build-web
Frontend build assets are output to: /frontend/public/dist
.
Start the application:
./bin/bridge
The go-docker
script will run any command from a docker container to ensure a consistent build environment.
For example to build with docker run:
./go-docker ./build
Build a docker image, tag it with the current git sha, and pushes it to the quay.io/coreos/tectonic-console
repo.
Must set env vars DOCKER_USER
and DOCKER_PASSWORD
or have a valid .dockercfg
file.
./build-docker-push
go, godep, nodejs, gulp
For interactive frontend development compiling html templates and sass is required. The following build task will watch the source code for changes and compile automatically:
gulp dev
If gulp is not installed, install with npm install -g gulp
.
All frontend build tasks are defined in /frontend/gulpfile.js
Run backend tests:
./test
Run frontend tests:
./test-web
Add new frontend dependencies:
bower install
the dependency- From
/frontend
rungulp deps
- Add and commit generated
deps.js
anddeps.min.js
files in/frontend/public/lib/
Add new backend dependencies:
go get ...
as usual- run
godep save ./...
Update existing backend dependencies:
go get -u foo/bar
as usualgodep update foo/bar
If changes are made to the schema/v1.json
file you must regenerate the go bindings:
./schema/generator