...
README.md (Since there isn't one on the repo)
How to runbuild:
Disclaimer: I've only tried this on vscode, since the repo already made support to create the development environment for vscode using (devcontainer.json)
- Open up the repo in vscode, and you will be prompted to open up the devcontainer.
- Click yes, give it a few minutes to setup, it will run docker-compose.yml which will setup the mongodb locally
- Now that your development environment is setup, open up a terminal in vscode. Which should open you in the container, at folder '/workspace'
- Do a 'make build'
At the moment there is errors- I solved the vcs status error by
- do a git status
- follow the command it outputs
- Got rid of the error:
- I solved the malformed import path "-o": leading dash by
- Edit line 8 in makefile
Original: go build ./... -o cbs
New: go build -o cbs ./...
- Then it should be able to run
- Example
How to run:
TBD
- Component list
- ./build-environment-builder component -h
- Specify a label (endpoint), but seems that no labels are configured. Check configure.go with the "add your map here" I think you specify the yaml
- Seems like this only works in vscode dev container, because the server is running there
- I first did a './build-environment-builder configure endpoint --label=dev --url=http://cbs:8080/api/' to create a label (endpoint)
- Then when i try to use it when listing components: './build-environment-builder component list --label=dev', it seems to connect to server, but gives error, probably because i have no components in it
- tip: do an 'echo=$EDITOR' and if you dont have anything specified, set it to vim. Otherwise, in this next step, when you create a component, it'll open up in nano.
- './build-environment-builder component list --label=dev'
- Left off here
Deployment Database
TBD