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

Adds a dockerfile #614

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# next (unreleased)
* Add a dockerfile (#614, Eric Chazan).

# 2.24 (2022-02-21)
* Revert to plain naming scheme for data files since reverse DNS naming causes problems (#611, Phil Wyett).

Expand Down
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 1) Install Docker:
# For macOS, see https://gist.github.com/paul-krohn/e45f96181b1cf5e536325d1bdee6c949.
# For Windows, you can use something like Cygwin.

# 2) Install xwindows on your machine, and run it with a script like startx.
# $ docker build . --tag rednotebook:LATEST
# $ export REDNOTEBOOK_HOME=<select a directory for your journal> && mkdir $REDNOTEBOOK_HOME

# 3) Start RedNotebook:
# $ docker run --rm -e DISPLAY=host.docker.internal:0 -it --volume ${REDNOTEBOOK_HOME}:/root/.rednotebook rednotebook:LATEST

# You can update to the latest RedNotebook release by running "docker build" again.

FROM ubuntu:latest
RUN apt-get update
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:rednotebook/stable
RUN apt-get update
RUN apt-get install -y rednotebook adwaita-icon-theme-full

# Hide GTK accessibility warnings.
ENV NO_AT_BRIDGE=1

CMD ["/usr/bin/rednotebook"]