-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Include python drivers in container #57
Comments
The steps for installing the drivers in the container...
|
The best way to solve is create another dockerfile with this contents
|
I would also create a 2nd docker file that contains Python. CIs can pickup the Python-less image to run tests. Users can pickup the Python version and run RDB in production. |
I used a variation of the suggestion by @zafhiel but instead of an extra Dockerfile I just added the required packages in an earlier stage.
This way the first stage is cached so if the entrypoint script changes then only the final stage needs to be rebuilt. |
I confirm that a python version can be very interesting while I'm using RethinkDB inside Kubernetes. |
@metal3d, I maintain an Alpine based image with the python drivers included which you could use.
|
This answer worked best for me. Other answers required modifications to the docker-deamon or on @besworks own image the browser interface lacked some features. Also if someone is interesed this is how my Dockerfile looked in the end:
In the scripts folder I have two files: ./dump.sh # !/bin/bash
# dumping the data to a backup file with date prefix
rethinkdb dump -f /srv/rethinkdb/backup/$(date -d "today" +"%Y-%m-%d.%H:%M").tar.gz ./restore.sh # !/bin/bash
# restoring the db from the latest dumped file
newest=$(ls ../backup | sort -t _ -k 2,2 | tail -n 1)
rethinkdb restore /srv/rethinkdb/backup/$newest Also my docker-compose part is: rethinkdb:
build: ./rethinkdb
ports:
- 29015:29015
- 28015:28015
- 8080:8080
volumes:
- ./rethinkdb/backup:/srv/rethinkdb/backup
command: rethinkdb --bind all |
@u-rogel didn't specifically mention what features were lacking from the web interface, but I'm pretty sure this issue that affects v2.4.3 is what he was referring to. |
Is your feature request related to a problem? Please describe.
After upgrading from version 2.3.6 → 2.4.0, I needed to rebuild some indexes but could not do so within/using the docker container. I tried running it within the container and got the following:
Describe the solution you'd like
Include the python drivers in the container for running these utilities.
Describe alternatives you've considered
I manually installed python in the container and then pip and rethinkdb (somewhat involved). I also installed the python drivers on my host machine for completing this.
The text was updated successfully, but these errors were encountered: