From a CI pipeline I would like to be able to do the following.

  • Launch a droplet of a specific cpu/ram configuration with metadata to run a specific container image on start up
  • have the droplet run a single container on startup
  • pass environment variables into the container that will be launched
  • tag the droplet with a specific tag so that DO LB starts sending it traffic
  • the droplet will never be modified after it is launched. When a new version of the app code is deployed a new droplet will be launched pointing to a new container to run at startup.

I know how do all the above using Kubernetes but I am specifically looking for a non k8s solution. Questions about the questions above.

  • Are the above steps possible on Digital Ocean?
  • Can the steps above be completed with the doctl cli from within a pipeline?

There is on digital-ocean tag but I don't have enough reputation to create one

  • Where do you have the CI pipeline? On github or on your own installation of Jenikins or something else? – sridhar pandurangiah Nov 24 '20 at 5:24
  • bitbucket pipelines, but I am happy to use github actions. – ams Nov 24 '20 at 6:31
  • You could probably consider writing a few lines of shell script that can be called by the pipeline. You will need doctl to spin the droplets and tag it. – sridhar pandurangiah Nov 24 '20 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.