container-builder

command module
v0.0.0-...-87773b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

how to build a container image

Ensure the docker daemon is running on your machine. Then run the following command from the root of the project directory:

export ENVIRONMENT=dev && go run main.go

you can now access the grpc server on port 4040

Creating a build

Ensure you have grpcurl installed on your machine. Then run the following command to create a build:

grpcurl -plaintext -d '{"repoURL": "https://github.com/s1ntaxe770r/pong-server", "type": "go", "customerID": "jjj"}' localhost:4040 container.ContainerService/CreateContainer

sample response:

{
  "buildID": "b1b2b3b4b5b6b7b8b9b0"
}

it should respond with a build ID. You can then check the status of the build by running the following command:

grpcurl -plaintext -d '{"buildID": "b1b2b3b4b5b6b7b8b9b0"}' localhost:4040 container.ContainerService/ImageStatus
sample response:
{
  "status": "building"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
proto

Jump to

Keyboard shortcuts

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