All rapyuta.io docs are open source. See something that's wrong or unclear? Submit a pull request.Make a contribution
This tutorial guides you to create a web application and deploy it in the rapyuta.io platform with the docker build recipe.
The tutorial will show you how to use a docker file to build an executable of a package.
To create the build, follow the below steps :
https://github.com/rapyuta/io_tutorialsand select Build Recipe as Docker.
The build takes about two to five minutes to build the source code in the io_tutorials repository into a running docker container. You may analyze the corresponding build logs, which help debug failing builds.
Please proceed to the creation of the package once the build is complete.
You will add and deploy simple-hello-world package. To create a new package, follow the below instructions in sequence:
Demo package for docker build recipe.
The name of a component must consist of alphabets [A-Z, a-z], digits [0-9], hyphen - and an underscore _ character. It must not begin with a digit.
The name of an executable must consist of alphabets [A-Z, a-z], digits [0-9], hyphen - and an underscore _ character. It must not begin with a digit.
web-app-buildfrom the drop-down list.
HELLO_WORLD, in the Endpoint Name box.
Additionally, you may verify if the package is built successfully and is ready to be deployed by checking to see if the Deploy package button is active.
To deploy the simple-hello-world package, walk through the below instructions in sequence:
Simple Flask Application.
You will be redirected to the Details page of the newly created deployment. The Simple Flask Application deployment is successfully running only when the green colored bar moves to Succeeded and Status: Running indicating that the DEPLOYMENT PHASE is Succeeded and the STATUS is Running.
You can also analyze the corresponding deployment logs to check if everything is working as expected by clicking on the Historical Logs or Live Logs tab.
Once the package is successfully deployed, the NETWORK ENDPOINTS generates a URL address on the Details page. Copy this specific URL address (it may be different from that shown in the below image), paste in the web browser, and press Enter.
You will view Hello from rapyuta.io message.