bob

module
v0.0.0-...-612dd4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: MIT

README

Bob (The builder)

Build a repo in the cloud, download the binary.

Getting started

To use the CLI:

go run cmd/cli/main.go -repository=https://github.com/Manzanit0/golarm -out="/Users/manzanit0/Desktop"

To run the web server:

go run cmd/web/main.go

Then you can go to locahost:8080 for the UI or use curl to access the actual endpoint:

curl localhost:8080/build -X POST -d '{"url":"https://github.com/Manzanit0/golarm", "entry_point": "."}' --output golarm

That should download the executable in the current directory. You might have to give it executable permissions though. chmod +x <executable> should do the trick.

Deploying the application

The application is hosted on Heroku. According to the instructions) to deploy, run the following commands:

heroku container:login
heroku container:push web
heroku container:release web
heroku open

To run the container locally:

docker build -t bob .
docker run -p 8080:8080 -e PORT=8080 bob

Directories

Path Synopsis
cmd
cli command
web command
pkg
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL