Docker

Dockerfile - executing shell script file on Entrypoint

While creating auto deployment process, sometime it is needed that you will have to run bash shell script on Entrypoint or at starting point of container. Like you may need to execute multiple commands at start point of container which is not easy to do that. But fortunetly , you can add shell script file in Entrypoint and it will get executed.

Here is the example how you can run shell script from file on Entrypoint in dockerfile.

init.sh file

Tags

Stoplight Prism - Creating Docker image with API specification embeded inside

Prism is very lightweight and easy to use API mocking server which reads API specification and creates mock API endpoints for the developer. It can create dynamic values for fields and can validate request data against the specification.

Another feature is creating a proxy server that will help you debug API call from client to API server. In this mode, prism intercepts incoming requests and outgoing responses so you can validate the work done by the backend developer.

Tags