An executable of a package can be a dockerfile. In that case, rapyuta.io applies docker build recipe while deploying the package. The tutorial illustrates this recipe, where a dockerfile builds a docker image.
The tutorial will show you how to use a dockerfile to build an executable of a package.
Beginner
10 minutes
To create the build, follow below steps :
web-app-build
https://github.com/rapyuta/io_tutorials
and select Build Recipe as Docker.flask_helloworld
.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 analyse the corresponding build logs, which help debug failing builds.
Please proceed to creation of 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:
simple-hello-world
Demo package for docker build recipe
.Flask_Application
.
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.
flask_runner
.
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-build
) created above
from the drop-down list.
HELLO_WORLD
, in the Endpoint Name box.5000
.
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 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.