Building a data service backend
As you've learned a considerable amount of the options within Docker, your manager would like you to work towards containerizing your company's application in a multi-container configuration. To start, your application relies on a data service that provides some calculations on a set of Parquet data files. The data service itself is already written and you have the source code, the data files, and a Dockerfile available to you.
The data files are present in the ~/workspace/datasets
directory. The Dockerfile is in the ~/workspace
directory. Refer to the Dockerfile for more information regarding application requirements.
This exercise is part of the course
Intermediate Docker
Exercise instructions
- Use the appropriate Docker command to build the image for your service, using the tag name
dataservice
. - Start an instance of the
dataservice
container. Make sure to specify a port map for5000:5000
and volume location mapped to/data
with your Docker command and run in detached mode. - Run the application testing program by typing
./app_test.sh
and press enter in the terminal to verify yourdataservice
instance is running as expected.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
