GithubHelp home page GithubHelp logo

hello-do's Introduction

hello-do

This repo deploys a simple web service as a Digital Ocean App.

Terraform

The required resources are created by the terraform code under terraform/.

Once "gotcha" here is that we want to create both the DOCR (Digital Ocean Container Registry) to host our image, as well as the DO App that runs the image. Creating the App requires an image to be present in the container registry, so the resources must be created in two separate applies.

Note the outputs.

  • docr_repo is where we will push our images
  • app_live_url is our app's endpoint

Dagger

The Dagger pipeline in ci/main.go builds our image and pushes it to DOCR.

  1. Authenticate docker to DOCR: docker login registry.digitalocean.com
  2. Run the Dagger pipeline: go run ci/main.go
  3. Once the pipeline is complete, the DO App will detect a new image at :latest and automatically deploy the new version of our image
  4. Send a request to the app_live_url from above: curl $app_live_url. You should get a successful response Hello

hello-do's People

Contributors

kpenfound avatar

Stargazers

Abhimanyu Selvan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.