Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Converged motd banners in crpd, added helper tip for 'cli' command #343

Merged
merged 4 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## In development

- Converged motd banners in crpd, added helper tip for 'cli' command [#343](https://github.com/nre-learning/nrelabs-curriculum/pull/343)
- Misc curriculum updates for Antidote 0.7 compatibility [#341](https://github.com/nre-learning/nrelabs-curriculum/pull/341)
- Refurbish JSNAPy lesson and move to cRPD [#338](https://github.com/nre-learning/nrelabs-curriculum/pull/338)
- Update troubleshooting lesson with flavor and cRPD [#337](https://github.com/nre-learning/nrelabs-curriculum/pull/337)
- Add spelling checks in CI pipeline [#276](https://github.com/nre-learning/nrelabs-curriculum/pull/276)
Expand Down
3 changes: 2 additions & 1 deletion images/crpd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ ADD juniper.conf /
#
# ADD license.conf /

# Adjust MOTD
# Remove existing motd banners and add our own
RUN rm -f /etc/update-motd.d/*
RUN rm -f /etc/legal
RUN echo 'CRPD_BANNER_DISPLAYED="noplease"' >> /etc/environment
ADD motd.sh /etc/update-motd.d/00-antidote-motd

CMD ["bash", "/launch.sh"]
8 changes: 7 additions & 1 deletion images/crpd/motd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

printf "Welcome to \u001b[1;38;5;36mNRE Labs\033[1m%s\033[0m! \n"
printf " * Docs - https://docs.nrelabs.io/\n"
printf " * Docs - https://docs.nrelabs.io/\n"
printf "\n"
printf "Containerized Routing Protocols Daemon (CRPD)\n"
printf "Copyright (C) 2020, Juniper Networks, Inc. All rights reserved.\n"
printf "\n"
printf "(Type 'cli' to access Junos CLI)\n"
printf "\n"