ソースを参照

Backup Rethikdb (#1937)

- You requiere run python-pip for backing up your data
Miguel Ortiz 6 年 前
コミット
99f7e65c99
2 ファイル変更9 行追加1 行削除
  1. 2 1
      DOCUMENTATION/content/documentation/index.md
  2. 7 0
      rethinkdb/Dockerfile

+ 2 - 1
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/).
 
 
 <br>

+ 7 - 0
rethinkdb/Dockerfile

@@ -4,6 +4,13 @@ LABEL maintainer="Cristian Mello <cristianc.mello@gmail.com>"
 
 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"]