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

Commit

Permalink
Tiny adj's for purged anncs
Browse files Browse the repository at this point in the history
  • Loading branch information
rcthomas committed Oct 1, 2019
1 parent d0046ad commit a287c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyter-localhost/web-jupyterhub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN \
echo master:you-have-failed-us-torgo | chpasswd

RUN \
pip install --no-cache-dir git+https://github.com/rcthomas/jupyterhub-announcement.git@persist-announcements
pip install --no-cache-dir git+https://github.com/rcthomas/jupyterhub-announcement.git

WORKDIR /srv
ADD announcement_config.py .
Expand Down
4 changes: 3 additions & 1 deletion jupyter-localhost/web-jupyterhub/announcement_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
# AnnouncementQueue(LoggingConfigurable) configuration
#------------------------------------------------------------------------------

c.AnnouncementQueue.lifetime_days = 0.00416666666

## File path where announcements persist as JSON.
#
# For a persistent announcement queue, this parameter must be set to a non-empty
Expand All @@ -68,5 +70,5 @@
# just empty at initialization and the queue is ephemeral; announcements will
# not be persisted on updates to the queue.
#c.AnnouncementQueue.persist_path = ''
c.AnnouncementQueue.persist_path = 'announcements.json'
c.AnnouncementQueue.persist_path = '/tmp/announcements.json'

0 comments on commit a287c62

Please sign in to comment.