Last updated 6 months ago
Let's start by creating a simple Stack with a function called hello-koyeb
running the koyeb/cowsay
docker image. This docker image simply prints the
Koyeb logo on the standard output.
We will create our first Stack in Simple Koyeb Versioning mode, without git for now.
Creating a Stack takes three clicks:
hello-koyeb
. Then click the
Create Stack button.hello-koyeb
Stack view, click New revision.1functions: 2 - name: hello-koyeb # The function name 3 image: koyeb/cowsay # The Docker image to use 4
The Koyeb platform will now automatically build and deploy your Stack. After a few seconds, your new Stack revision will be deployed and appear Active in your Stack summary view.
Voilà! You have now deployed your first minimalist Stack.
Now that you have deployed your Stack, the hello-koyeb
function will appear in a
table in the Functions section of your Stack view.
To test that your function is working properly:
Congratulations, you now know how to deploy and test functions! 🎉
If you want to reproduce the Stack we just deployed locally, simply run:
1docker run --rm koyeb/cowsay 2
Now that you know the basics, you can head to the Stack Quickstart summary to learn more about functions, Git binding, Secrets, events, and more!
Get in touch or create an account and deploy your serverless stack in minutes.