-
Notifications
You must be signed in to change notification settings - Fork 21
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
Docs: Command to run app with docker doesn't work #739
Labels
Milestone
Comments
The new docker configuration requires executing the container as root. We can't pass this argument: cd /tmp \
&& mkdir torrust-index \
&& cd torrust-index \
&& export USER_ID=1000 \
&& docker run -it \
--env USER_ID="$USER_ID" \
--publish 3001:3001/tcp \
--volume "$(pwd)/storage/index/lib":"/var/lib/torrust/index" \
--volume "$(pwd)/storage/index/log":"/var/log/torrust/index" \
--volume "$(pwd)/storage/index/etc":"/etc/torrust/index" \
torrust/index:develop You can also create the needed folder manually: cd /tmp \
&& mkdir torrust-index \
&& cd torrust-index \
&& mkdir -p ./storage/index/lib/database \
&& mkdir -p ./storage/index/log \
&& mkdir -p ./storage/index/etc \
&& sqlite3 "./storage/index/lib/database/sqlite3.db" "VACUUM;" \
&& export USER_ID=1000 \
&& docker run -it \
--env USER_ID="$USER_ID" \
--publish 3001:3001/tcp \
--volume "$(pwd)/storage/index/lib":"/var/lib/torrust/index" \
--volume "$(pwd)/storage/index/log":"/var/log/torrust/index" \
--volume "$(pwd)/storage/index/etc":"/etc/torrust/index" \
torrust/index:develop |
We have to update the docs: https://docs.rs/torrust-index/3.0.0-rc.1/torrust_index/#run-with-docker |
Merged
josecelano
added a commit
to josecelano/torrust-index
that referenced
this issue
Oct 2, 2024
josecelano
added a commit
that referenced
this issue
Oct 2, 2024
7f605b1 fix: clippy errors (Jose Celano) fdf62e9 docs: [#739] fix command to run with docker (Jose Celano) 15adcb9 docs: [#738] fix command (Jose Celano) Pull request description: Fix the command to run the index from sources after compilation. ACKs for top commit: josecelano: ACK 7f605b1 Tree-SHA512: f0b7161fc038db601da31b30f5a1dad4ecd90d1cfda7630526b612b6895e543ae15adbae91aef9274b420cb3ec172c3c914072df62121f2feb9b1d69f80f2da1
josecelano
added a commit
that referenced
this issue
Oct 2, 2024
8383e3b release: version 3.0.0 (Jose Celano) 7f605b1 fix: clippy errors (Jose Celano) fdf62e9 docs: [#739] fix command to run with docker (Jose Celano) 15adcb9 docs: [#738] fix command (Jose Celano) 17de729 refactor: moved test to authorization mod (Mario) e3baeda test: new authorization test for guests to download a torrent file searching by info hash (Mario) 6df7a7e refactor: moved test to new authorization mod (Mario) 3c046b1 refactor: move authorization test for guests to new mod (Mario) 840e1d8 ci: move testing with MySQL to a new workflow (Jose Celano) b0a458c develop: bump to version 3.0.0-develop (Jose Celano) Pull request description: Release Version 3.0.0 ACKs for top commit: josecelano: ACK 8383e3b Tree-SHA512: 9a623e32ba350fc11798bf18b3f494bb95ced3a012d378447fa64dc658d306de2755d17d15d5a241478d3ecb54ed30e86392f3ec02360753a4fbf9bb64fc52dc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Parent issue: #738
Source: https://docs.rs/torrust-index/latest/torrust_index/index.html#run-with-docker
The text was updated successfully, but these errors were encountered: