Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rtorrent-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
rtorrent-docker
Commits
a3bcd59c
Verified
Commit
a3bcd59c
authored
2 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: allow specifying external ip easily
parent
e88d2fbc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2889
passed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/Dockerfile
+4
-0
4 additions, 0 deletions
daemon/Dockerfile
daemon/entrypoint.sh
+8
-3
8 additions, 3 deletions
daemon/entrypoint.sh
with
12 additions
and
3 deletions
daemon/Dockerfile
+
4
−
0
View file @
a3bcd59c
...
...
@@ -72,6 +72,10 @@ ENV RT_MAX_PEERS_SEED=80
ENV
RT_TRACKERS_WANT=80
ENV
RT_MEMORY_MAX="1800M"
ENV
RT_LOGLEVEL="info"
# Set to automatically run this command on startup to set the external address
ENV
EXTERNAL_IP_CMD=""
# Set to automatically set the external address
ENV
EXTERNAL_IP=""
VOLUME
["/data"]
VOLUME
["/tmp"]
...
...
This diff is collapsed.
Click to expand it.
daemon/entrypoint.sh
+
8
−
3
View file @
a3bcd59c
...
...
@@ -5,8 +5,13 @@ mkdir -p /tmp/.session
echo
>
/tmp/rtorrent.log
rm
/tmp/.session/rtorrent.lock /tmp/.session/rtorrent.pid
||
true
# Start rtorrent as a daemon with the setting in the config file
# & to actually run it in the background
rtorrent
-n
-o
"import=/rtorrent.rc"
&
if
[
-n
"
$EXTERNAL_IP_CMD
"
]
;
then
EXTERNAL_IP
=
$(
eval
"
$EXTERNAL_IP_CMD
"
)
fi
if
[
-n
"
$EXTERNAL_IP
"
]
;
then
rtorrent
-i
"
$EXTERNAL_IP
"
-n
-o
"import=/rtorrent.rc"
&
else
rtorrent
-n
-o
"import=/rtorrent.rc"
&
fi
tail
-f
/tmp/rtorrent.log
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment