Coder Social home page Coder Social logo

create-ss-demo's People

Contributors

robbieaverill avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

create-ss-demo's Issues

Validate that docker hub image exists in instantiate command

If you run instantiate with a docker image that doesn't exist, you'll end up getting a build error from SSP. We could save time and resources here by checking from the command and exiting early.

Example error:

  Warning  Failed                 13m (x4 over 14m)  kubelet, ip-xx-xx-x-xxx.us-west-2.xyz.xyz  Failed to pull image "robbieaverill/mfademo:0.1": rpc error: code = Unknown desc = Error response from daemon: pull access denied for robbieaverill/mfademo, repository does not exist or may require 'docker login'

In this case the image name was mfa-demo with a dash in it.

Auto-queue destroy jobs for 2 weeks (configurable) after instantiate command has run

Creating a demo site via the SSP API will not automatically destroy it. You must do this manually. The CWP demo site does this with a queued job scheduled to clean up later on, but if you're doing this via CLI it will need something else in place.

Note: This would probably involve some infrastructure changes somewhere, rather than be bundled directly into this application.

I'm thinking of something like:

  • CLI pushes notification to AWS SQS or a SSP API to destroy a specific demo site on a particular date
  • When that date hits, the job is processed
  • The job pings the SSP API to delete the site

Perhaps SQS -> DynamoDB -> Lambda or something similar.

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.