From 99f7e65c9992b0ee9141776e991e87408c9896c9 Mon Sep 17 00:00:00 2001 From: Miguel Ortiz Date: Sat, 9 Feb 2019 06:26:50 -0500 Subject: [PATCH] Backup Rethikdb (#1937) - You requiere run python-pip for backing up your data --- DOCUMENTATION/content/documentation/index.md | 3 ++- rethinkdb/Dockerfile | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index 089e4ecf..0e11cf75 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1018,8 +1018,9 @@ docker-compose up -d rethinkdb - set the `DB_DATABASE` to `database`. +#### Additional Notes - +- You may do backing up of your data using the next reference: [backing up your data](https://www.rethinkdb.com/docs/backup/).
diff --git a/rethinkdb/Dockerfile b/rethinkdb/Dockerfile index f7db9a1f..f905769b 100644 --- a/rethinkdb/Dockerfile +++ b/rethinkdb/Dockerfile @@ -4,6 +4,13 @@ LABEL maintainer="Cristian Mello " VOLUME /data/rethinkdb_data +#Necessary for the backup rethinkdb +RUN apt-get -y update \ + && apt-get -y upgrade \ + && apt-get -y install python-pip \ + && pip install rethinkdb \ + && rm -rf /var/lib/apt/lists/* + RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf CMD ["rethinkdb", "--bind", "all"]