Skip to content

Commit

Permalink
add motd context (#196)
Browse files Browse the repository at this point in the history
* add motd context

* store motd in infra

* add motd cmd in deployable image
  • Loading branch information
kvootla authored Apr 19, 2024
1 parent 88b7798 commit 5069496
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .docker/production/Dockerfile.gha
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ RUN apt-get update -qq \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& truncate -s 0 /var/log/*log

RUN mkdir /etc/infra

# Configure bundler and PATH, install bundler version
ENV GEM_HOME=/usr/local/bundle
ENV BUNDLE_PATH=$GEM_HOME
Expand Down Expand Up @@ -168,6 +170,8 @@ COPY --chown=$USERNAME:$USERNAME ./.docker/config/production.rb $HOME/config/env
COPY --chown=$USERNAME:$USERNAME ./.docker/config/secrets.yml $HOME/config
COPY --chown=$USERNAME:$USERNAME ./.docker/config/unicorn.rb $HOME/config

RUN echo '[ ! -z "$TERM" -a -r /etc/infra/motd ] && cat /etc/infra/motd' >> /etc/bash.bashrc

USER $USERNAME

################################################################
Expand Down

0 comments on commit 5069496

Please sign in to comment.