An executable of a package can be a dockerfile. In that case, rapyuta.io applies dockerfile build strategy while deploying the package. The tutorial illustrates this strategy, where a dockerfile builds a docker image.
The tutorial will show you how to use a dockerfile to build an executable of a package.
You will add and deploy simple-hello-world package. To create a new package, follow the below instructions in sequence:
Demo package for dockerfile build strategy.
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.
HELLO_WORLD, in the Endpoint Name box.
The package takes about five minutes to build the dockerfile in the flask_helloworld directory into a running docker container. You can analyze the corresponding build logs for debugging failing builds.
A flickering yellow dot next to the package name indicates that the Build Status is BuildInProgress, while a green dot indicates that the Build Status is Complete.
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.