Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apps): Add deploy #257

Merged
merged 5 commits into from
Feb 22, 2022
Merged

feat(apps): Add deploy #257

merged 5 commits into from
Feb 22, 2022

Conversation

raulb
Copy link
Member

@raulb raulb commented Feb 14, 2022

Description of change

Fixes https://github.com/meroxa/turbine-project/issues/9

  • Update to latest turbine

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

  • Unit Tests
  • Tested in staging

Demo

$ meroxa apps deploy --path ~/code/meroxa/turbine-go-examples/simple
rm -rf docs/cmd && mkdir -p docs/cmd/{md,www}
rm -rf etc && mkdir -p etc/man/man1 && mkdir -p etc/completion
go run gen-docs/main.go
go build -mod=vendor -o meroxa cmd/meroxa/main.go
Building image "raulmxio/simple" located at "/Users/rb/code/meroxa/turbine-go-examples/simple"
{"stream":"Step 1/11 : FROM golang:1.17 as build-env"}
{"stream":"\n"}
{"stream":" ---\u003e 836f6d7d89c3\n"}
{"stream":"Step 2/11 : WORKDIR /go/src/app"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 841ade62e1e2\n"}
{"stream":"Step 3/11 : COPY . ."}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 93163beda644\n"}
{"stream":"Step 4/11 : ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e c58960b0cefd\n"}
{"stream":"Step 5/11 : RUN go install --tags=platform -mod=vendor ./..."}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 70620edce778\n"}
{"aux":{"ID":"sha256:70620edce7786644cc38de04138997bb896dda2bc9a49d0e937921386a17f406"}}
{"stream":"Step 6/11 : FROM gcr.io/distroless/static"}
{"stream":"\n"}
{"stream":" ---\u003e e70108cdcff6\n"}
{"stream":"Step 7/11 : USER nonroot:nonroot"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e d9f354b85162\n"}
{"stream":"Step 8/11 : WORKDIR /app"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 2f8952bcd85d\n"}
{"stream":"Step 9/11 : COPY --from=build-env /go/bin/* /app"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 5289450aa64a\n"}
{"stream":"Step 10/11 : COPY --from=build-env /go/src/app/app.json /app"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 395de78bc575\n"}
{"stream":"Step 11/11 : ENTRYPOINT [\"/app/simple\", \"--serve\"]"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 7a5468175f19\n"}
{"aux":{"ID":"sha256:7a5468175f1926bd3af0db4c68ba2b9ad94838c466fae5d3b4c3bb39209ea6c8"}}
{"stream":"Successfully built 7a5468175f19\n"}
{"stream":"Successfully tagged raulmxio/simple:latest\n"}
pushing image "raulmxio/simple" to container registry
{"status":"The push refers to repository [docker.io/raulmxio/simple]"}
{"status":"Preparing","progressDetail":{},"id":"6223cb6701d2"}
{"status":"Preparing","progressDetail":{},"id":"868fcc369307"}
{"status":"Preparing","progressDetail":{},"id":"317d03e2da9e"}
{"status":"Preparing","progressDetail":{},"id":"5b1fa8e3e100"}
{"status":"Layer already exists","progressDetail":{},"id":"6223cb6701d2"}
{"status":"Layer already exists","progressDetail":{},"id":"868fcc369307"}
{"status":"Layer already exists","progressDetail":{},"id":"5b1fa8e3e100"}
{"status":"Layer already exists","progressDetail":{},"id":"317d03e2da9e"}
{"status":"latest: digest: sha256:dbbcd52c8fff04962ba5b1213a89db5b6c097a73d5406dda01533eeb2ab12c51 size: 1152"}
{"progressDetail":{},"aux":{"Tag":"latest","Digest":"sha256:dbbcd52c8fff04962ba5b1213a89db5b6c097a73d5406dda01533eeb2ab12c51","Size":1152}}
image successfully pushed to container registry!
deploying app...

Additional references

Documentation updated

@raulb raulb force-pushed the rb-bg/app-deploy branch 2 times, most recently from c1086d3 to ef264bb Compare February 17, 2022 21:04
@raulb raulb requested a review from ahmeroxa February 19, 2022 00:18
@raulb raulb marked this pull request as ready for review February 19, 2022 00:18
Co-authored-by: Ali Hamidi <[email protected]>
Co-authored-by: Brett Goulder <[email protected]>
Copy link
Contributor

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads great and awesome work! ✨

@jayjayjpg jayjayjpg merged commit 326f3e7 into master Feb 22, 2022
@jayjayjpg jayjayjpg deleted the rb-bg/app-deploy branch February 22, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants