gianarb / gourmet Goto Github PK
View Code? Open in Web Editor NEWOpen Source Application to manage serverless/vmless environment
License: Mozilla Public License 2.0
Open Source Application to manage serverless/vmless environment
License: Mozilla Public License 2.0
At the moment I don't use the output of exec inspect, in order to understand if a command was good or not
I migrated the old logger to stream.
Now gourmet needs of a logger.
At the moment you can not override my IP ๐
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)
At the moment this application is without tests :( bad bad bad..
Start to cover with unit test
Take a decision about which lib uses and integrate that
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
We can use different images to start different environment and we can switch from req body.
{
"env": "php",
"source": "http://you.net/app.zip"
}
Split docker output logger from application logger.
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.
Thanks @fntlnz
We will add an environment variable like
ENV=gourmet
GOURMET_VERSION=0.0
In order to know that you are running your function in gourmet.
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.
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.
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"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.