Skip to content

Implement building functionality in `spread build` #59

Open
mfburnett opened this Issue · 2 comments

2 participants

@mfburnett
Redspread member

In addition to creating and updating Kubernetes objects, spread deploy will also locally build a Docker context based on the path specified. It should then push to a Docker registry (if we’re not building it, we assume it shouldn’t be pushed).

Images are indicated to be built with an ampersand (&) placed immediately before the image name field in the container struct. Only those images built are pushed to the registry by default, taking configuration from ~/.docker/config.json.

@mfburnett mfburnett added the p1 label
@mfburnett
Redspread member

We're now discussing having spread build be build-push-deploy, while spread deploy is solely updating Kubernetes objects. We think it's important to be explicit in the commands.

@ethernetdan ethernetdan changed the title from Implement building functionality in `spread deploy` to Implement building functionality in `spread build`
@ethernetdan
Redspread member

In order to build an image, a field of type BuildImageOptions in image.Image must be populated. The solution above works well for image name but we probably want a way to incorporate the other settings.

@jsquirrelz jsquirrelz referenced this issue in redspread/localkube
Open

Developer Experience with Spread #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.