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.
To create the build, follow 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 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:
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-build) created above from 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 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.