"Tallinn": BuildKit & Docker build mismatch
Scenario: "Tallinn": BuildKit & Docker build mismatch
Level: Medium
Type: Fix
Tags: docker realistic-interviews
Access: Email
Description: This VM runs a tiny container app, tallinn-service, whose only job is to print an API version string (for example tallinn-api-version=1.4.0). The image is built from /home/admin/tallinn-app with docker build.
The dev team raised the API contract to 2.0.0 in src/api_version.txt and ran a new build, but QA still rejects the image tagged tallinn-app:current: it reports 1.4.0 at runtime. A recent CI log is in /home/admin/build.log.
Fix the docker build outcome so the deploy image matches what the sources ask for.
Fix the image tagged tallinn-app:current so the on-disk contract file and the shipped binary both report API 2.0.0.
Root (sudo) Access: True
Test: Image tallinn-app:current exists, /etc/tallinn/api_version is 2.0.0, and /usr/local/bin/tallinn-service prints tallinn-api-version=2.0.0.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.