Build a docker image with the latest Bailador source code
and running hello world
application.
This is the project to build docker image with the latest source code of Bailador and simple test application. Docker file contains a few instructions, the main logic is hidden in the sparrowfile.
I use sparrowdo to build docker images.
The base image is alpine-perl6.
$ git clone
$ docker build -t bailador .
$ docker run -d -p 3000:3000 bailador
This command should return hello world
when running from host OS:
$ curl 127.0.0.1:3000
If you need to check changes made by Bailador developers you don't have to build the docker image from the scratch. Instead use existed bailador image gets built previously:
- Run the docker container based on current image
- Apply bailador source code changes by executing sparrowdo scenario inside the container
- Update docker image
And, finally run updated the application the same way as described in the section earlier.
$ docker run -it -p 3000:3000 --entrypoint bash bailador
# get Bailador changes and apply them
$ sparrowdo --no_sudo --local_mode --sparrowfile=/tmp/sparrowfile
# to make it sure that the application runs on new code
$ perl /tmp/example.p6w
# to stop the application
$ ^C
$ docker ps # to find out the image id
$ docker commit $image_id bailador # to commit changes made in container into bailador image
$ docker stop -t 1 $container_id # stop current docker container
As described in the section above just say this:
$ docker run -d -p 3000:3000 bailador
This command should return hello world
when running from host OS:
$ curl 127.0.0.1:3000
Simple bailador application
Sparrowdo scenario to deploy Bailador
Default entrypoint
alpine-perl6 - base docker image
Alexey Melezhik