Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affect / add to motd (Message of the Day) at Codespace start #295

Open
cnuss opened this issue Nov 16, 2022 · 2 comments
Open

Affect / add to motd (Message of the Day) at Codespace start #295

cnuss opened this issue Nov 16, 2022 · 2 comments

Comments

@cnuss
Copy link

cnuss commented Nov 16, 2022

I'd like to add/append my own Message-of-the-Day (motd) at terminal start in Codespaces using Features, but it doesn't look like /etc/motd is displayed.

Is there a file I can modify or drop in to augment it?

Screen Shot 2022-11-16 at 9 07 16 AM

@joshspicer
Copy link
Member

joshspicer commented Nov 17, 2022

Here is the source code for the default Codespaces image, if you'd like to see how it is set up there.

This is primed in the Dockerfile, and the common-utils Feature picks it up: https://github.com/devcontainers/features/blob/main/src/common-utils/install.sh#L243-L264

@joshspicer
Copy link
Member

I think a Feature that extracted this functionality would be valuable to other folks as well.

I encourage you to check out https://github.com/devcontainers/feature-starter if you are interested in trying to author the Feature yourself and contribute it back to https://containers.dev/features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants