{"id":22599643,"url":"https://github.com/singularityhub/motd","last_synced_at":"2026-02-28T15:01:07.438Z","repository":{"id":92775804,"uuid":"167415865","full_name":"singularityhub/motd","owner":"singularityhub","description":"message of the day examples for Singularity containers","archived":false,"fork":false,"pushed_at":"2019-05-22T21:20:40.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T17:57:44.778Z","etag":null,"topics":["message-of-the-day","motd","singularity","singularity-container"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singularityhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-24T18:26:48.000Z","updated_at":"2021-12-13T08:09:35.000Z","dependencies_parsed_at":"2023-04-21T09:33:55.411Z","dependency_job_id":null,"html_url":"https://github.com/singularityhub/motd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/singularityhub/motd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singularityhub%2Fmotd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singularityhub%2Fmotd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singularityhub%2Fmotd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singularityhub%2Fmotd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singularityhub","download_url":"https://codeload.github.com/singularityhub/motd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singularityhub%2Fmotd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29938962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["message-of-the-day","motd","singularity","singularity-container"],"created_at":"2024-12-08T11:10:53.409Z","updated_at":"2026-02-28T15:01:07.417Z","avatar_url":"https://github.com/singularityhub.png","language":null,"readme":"# Message of the Day\n\nfor Singularity containers\n\n[![asciicast](https://asciinema.org/a/223333.svg)](https://asciinema.org/a/223333?speed=2)\n\nNote that these were modified for Singularity 3.x due to a [loss of functionality](https://github.com/singularityhub/motd/issues/2) \nto customize the actions shell file. If you are looking for the original recipes for 2.x containers,\nsee [release/2.x](https://github.com/singularityhub/motd/tree/release/2.x). The current\nmaster should work on both.\n\n## What is a message of the day?\n\nIf you've ever logged into a linux cluster, or played a computer \ngame like Half Life or World of Warcraft, you might be greeted with some\nasciiart, or something along the lines of a \"tip of the day.\" This is more\nofficial called a \"message of the day,\" (short is [motd](https://en.wikipedia.org/wiki/Motd_(Unix)) \nand there is a bit of [history behind it](https://ownyourbits.com/2017/04/05/customize-your-motd-login-message-in-debian-and-ubuntu/). In short, we print a message to the terminal \nfor the user to see when he or she first logs into a shell.\n\n## How can we use motd with containers?\n\nIn the context of a container, we might want to give the user a friendly message\nif they shell inside. The simplest use case is to greet the user. A more useful\nuse case is to provide some help for how to interact with the container, or\nwhere to find documentation.\n\n## How do we add motd to Singularity containers?\n\nIf we are creating a Singularity container,\nwe can't just echo a message in the runscript, because this gets executed on\na shell *or* a run. We need to edit the `/.singularity.d/actions/shell`\nscript that is executed **only** on a shell.\n\n# Singularity MOTDs\n\nIn this repository, we will provide you with a few fun examples for generating\nmessages of the day in Singularity containers.\n\n - [general](general): will show you how to customize a message for shell, exec, run, or test.\n - [greeting](greeting): a simple message of the day to greet the user\n - [fortune](fortune): give the user a fortune instead, add a cow, and some color!\n - [help](help): show the container's %help section to the user when they shell inside\n - [asciiart](asciiart): generate a greeting with awesome asciiart!\n - [graphic](graphic): generate a colored graphic to surprise the user with.\n\nClearly, many of these examples are for fun, and others are better for communicating\ninformation. I'm of the firm belief that we should aspire for both - interaction\nwith containers should be both informative and fun.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingularityhub%2Fmotd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingularityhub%2Fmotd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingularityhub%2Fmotd/lists"}