Giter VIP home page Giter VIP logo

gourmet's People

Contributors

gianarb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gourmet's Issues

Use the command status code

At the moment I don't use the output of exec inspect, in order to understand if a command was good or not

Application log

I migrated the old logger to stream.
Now gourmet needs of a logger.

Authentication layer

The first step is integrate an authentication layer to speak with our api.

What I am looking for is something that allow gourmet to don't care too much about users. It's a platform to manage serverless not to manage user.

Oauth2 could be a good solution. It's a framework and a lot of client/server and devs already use it.

But I am still thinking about a way to verify users and a in future roles (ldap or similar)

Bootstrap testsuite

At the moment this application is without tests :( bad bad bad..

Start to cover with unit test

Script content

At the moment is not supported a content for our script..
https://github.com/gianarb/gourmet/blob/master/api/project.go#L30

Maybe we can use another parameter content to increase dynamicity.

{
    "img": "gourmet/php",
    "source": "https://ramdom-your-source.net/gourmet.zip",
    "env": [
        "AWS_KEY=EXAMPLE",
        "AWS_SECRET=super-secret-ecrypted-with-vault-parameter",
        "AWS_QUEUE=https://sqs.eu-west-1.amazonaws.com/test"
    ],
    "content": {
    }
}

I don't know if it works but..

runner.Exec(containerId, []string{fmt.Sprintf("bin/console %s", t.Content})

In this way we can use content for example in PHP with $args

Support for more languages

We can use different images to start different environment and we can switch from req body.

{
    "env": "php",
    "source": "http://you.net/app.zip"
}

Tag unsupported

When you create a new function

POST /func
{
    "source": "https://ccc.com/gourmet-php-deploy/gourmet.zip",
    "img": "gourmet/php:7.0.0"
}

Doesn't work because the image's version is not supported right now.

Logs like response for the run

When you run

POST /func/<id>

Right now the idea is return a logs related the function runned in order to understand how it worked.

Status code 200 is the exit code is 0, 500 for all other status code.

Download source with authentication

At the moment the zip with your codebase must be public.
It is not a good stuff.

At the moment I don't know how implement this feature but maybe we can use a simple token auth.

Start gourmet with a token, it use your token to require the zip.

Build container with environment variables

Env vars are a good way to pass private key or configuration into the container and fetch them by your script.

{
    "...":  "...",
    "env": {
        "GITHUB_TOKEN":  "3t2ga4gs4ha35ga4ga34afaf3wg4"
    }
}

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.