Add capability for a simple deprecation notice, and add one for ubuntu-debootstrap and ubuntu-upstart

This commit is contained in:
Tianon Gravi 2016-01-18 08:54:41 -08:00
parent d986c18860
commit 002db62a45
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1 @@
This image is officially deprecated in favor of [the standard `ubuntu` image](https://hub.docker.com/_/ubuntu/), and will receive no further updates. Please adjust your usage accordingly.

View File

@ -0,0 +1 @@
This image is officially deprecated (especially now that Upstart is no longer the default init system for Ubuntu) and will receive no further updates. Please adjust your usage accordingly.

View File

@ -132,7 +132,14 @@ for repo in "${repos[@]}"; do
composeYml=$'```yaml\n'"$(cat "$repo/docker-compose.yml")"$'\n```'
fi
cp -v "$helperDir/template.md" "$repo/README.md"
deprecated=
if [ -f "$repo/deprecated.md" ]; then
deprecated=$'# **DEPRECATED**\n\n'
deprecated+="$(cat "$repo/deprecated.md")"
deprecated+=$'\n\n'
fi
{ echo -n "$deprecated"; cat "$helperDir/template.md"; } > "$repo/README.md"
echo ' TAGS => generate-dockerfile-links-partial.sh'
partial="$("$helperDir/generate-dockerfile-links-partial.sh" "$repo")"