adoptium / adoptium/infrastructure

Store SHA of infra repository within the image when a static docker image is built

Open
#4,143 1 comment 0 reactions 0 assignees View on GitHub
docker
Dominant language
Python
Stars
96
Forks
106
Avg merge
1d 23h
Merged PRs (30d)
13

Description

For normal host playbook executions we store a line in the log file `/var/log/ansible.log` which stores when the playbooks were last run on the system (and should include the SHA of the infrastructure repository).

We should add a similar log file into the static docker images when they are created indicating the SHA of the repository with the static dockerfiles which was used to create the image.

Contributor guide

Open the contributing guide

Research direction

Start by finding the static Docker image build entry point and the existing playbook code that writes /var/log/ansible.log. Add equivalent SHA information to images created from the static Dockerfiles, then verify a built image contains the log file with the infrastructure repository SHA used for the build.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, docker
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.