Skip to content

Commit cdd1a5e

Browse files
committed
🍱 Better image metadata plus welcome message
- Added documentation URL - Added link to Github Sponsors
1 parent e16c55f commit cdd1a5e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build/base/templates/Dockerfile.erb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ ENV CONTAINER_PLATFORM=$TARGETPLATFORM
2626
# Docker image tag for internal container use, set via Docker build argument
2727
ENV MADSCIENCELAB_VERSION=$CONTAINER_VERSION
2828

29+
# Docker Hub URL
30+
ENV DOCKERHUB_URL=https://hub.docker.com/r/$IMAGE_NAME
31+
2932
##
3033
## Docker Image Best Practices
3134
## https://docs.docker.com/develop/develop-images/instructions/
3235
##
3336

3437
## Metadata
3538
LABEL org.opencontainers.image.source=https://github.com/ThrowTheSwitch/MadScienceLabDocker/releases
36-
LABEL org.opencontainers.image.url=https://hub.docker.com/r/$IMAGE_NAME
39+
LABEL org.opencontainers.image.url=$DOCKERHUB_URL
3740
LABEL org.opencontainers.image.base.name=docker.io/bitnami/minideb
3841
LABEL org.opencontainers.image.title="Mad Science Lab"
3942
LABEL org.opencontainers.image.description="Contains Ceedling, supporting frameworks, and GNU C toolchain to provide a unit testing and build system environment for C projects"

build/base/templates/welcome.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ echo " This container includes:"
55
<%# INSERT CONTENTS LIST -%>
66
<% @contents.each {|item|%><%= "if [[ \"$CONTAINER_PLATFORM\" == #{item['platform']} ]]; then echo \" * #{item['entry']}\"; fi\n"%><% } -%>
77
echo "\e[0m"
8+
echo " Documentation available at $DOCKERHUB_URL"
89
echo " NOTICE: Container user \`$(whoami)\` lacks root privileges as a security best practice."
9-
echo " This limits installing software and more. See Docker Hub page for security docs and options."
10+
echo ""
11+
echo " Please consider supporting this work: https://github.com/sponsors/ThrowTheSwitch"
1012
echo "\e[33m"
1113
echo " To get started, enter \`ceedling help\` at the command line..."
1214
echo "\e[0m"

0 commit comments

Comments
 (0)