This is how you build an app using Docker

< 1 min reading
04 April 2016
This is how you build an app using Docker
This is how you build an app using Docker


How to build, send and run an app using the Docker technology. For those of you who haven’t used this technology, this is a good tutorial for trying it. To implement it, there were some lucky developers who were able to do so at the event that celebrated the third anniversary of Docker at the BBVA Innovation Center, who had personal mentors.

The developers who were more familiar with Docker directly developed an application for voting that included Python code, which enables voting, and a queue in Rails for storing the votes.

Java was also used for collecting the votes, as well as a Postgres database to store the data. Lastly, Javascript was used to access the database and display the results.

How to create the app?

The first thing you have to do is download and install Docker on the computer and then check that it works. Once it has been configured, you run the Alpine Linux container, which provides a sample that enables commands to be run using Docker. In this phase it’s very important to have a clear idea of some concepts of the platform, such as Docker daemon, Docker Hub, etc.

You then build a static web page through a Docker image, and this will configure a web server easily. After the Docker images have been created, the next step is to customize or design the app using j.son. Once this step has been completed, the app is built using Docker Compose to be able to run several containers.

Compose is used to define a .yml file that describes all the containers and volumes you want, like networks. Lastly, the images and tags are built. 

If you are interested in the world of APIs, find out more about BBVA’s APIs here.

Follow us on @BBVAAPIMarket

It may interest you