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
d8afd6e6
Verified
Commit
d8afd6e6
authored
2 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: use jesec rtorrent instead
parent
c4887921
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2901
passed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/Dockerfile
+3
-43
3 additions, 43 deletions
daemon/Dockerfile
daemon/entrypoint.sh
+1
-0
1 addition, 0 deletions
daemon/entrypoint.sh
with
4 additions
and
43 deletions
daemon/Dockerfile
+
3
−
43
View file @
d8afd6e6
FROM
alpine:3.15
AS
builder
ARG
RTORRENT_VERSION=0.9.8
ARG
LIBTORRENT_VERSION=0.13.8
RUN
apk add
--no-cache
\
alpine-sdk
\
autoconf
\
automake
\
curl-dev
\
libsigc++-dev
\
libtool
\
linux-headers
\
ncurses-dev
\
openssl-dev
\
xmlrpc-c-dev
\
zlib-dev
RUN
git clone
--branch
v
${
RTORRENT_VERSION
}
--single-branch
https://github.com/rakshasa/rtorrent.git /rtorrent
RUN
git clone
--branch
v
${
LIBTORRENT_VERSION
}
--single-branch
https://github.com/rakshasa/libtorrent.git /libtorrent
WORKDIR
/libtorrent
RUN
./autogen.sh
&&
\
./configure
\
--prefix
=
/usr
\
--disable-debug
\
--disable-instrumentation
&&
\
make
-j
$(
nproc
)
&&
\
mkdir
-p
/build
&&
\
DESTDIR
=
/build make
install
&&
\
make
install
WORKDIR
/rtorrent
RUN
./autogen.sh
&&
\
./configure
\
--prefix
=
/usr
\
--disable-debug
\
--with-xmlrpc-c
&&
\
make
-j
$(
nproc
)
&&
\
mkdir
-p
/build
&&
\
DESTDIR
=
/build make
install
FROM
alpine:3.15
RUN
apk add
--no-cache
\
...
...
@@ -48,13 +8,13 @@ RUN apk add --no-cache \
ncurses-libs
\
xmlrpc-c
COPY
--from=builder /build/usr/bin/rtorrent
/usr/bin/rtorrent
COPY
--from=builder /build/usr/lib/libtorrent.so* /usr/lib/
RUN
curl
-L
https://github.com/jesec/rtorrent/releases/latest/download/rtorrent-linux-amd64
>
/usr/bin/rtorrent
&&
\
chmod
+x /usr/bin/rtorrent
RUN
adduser
-u
1000
-D
rtorrent
&&
\
addgroup rtorrent rtorrent
&&
\
mkdir
-p
/data
&&
chown
rtorrent /data
&&
\
mkdir
-p
/
private
&&
chown
rtorrent /
private
mkdir
-p
/
session
&&
chown
rtorrent /
session
USER
rtorrent
...
...
This diff is collapsed.
Click to expand it.
daemon/entrypoint.sh
+
1
−
0
View file @
d8afd6e6
...
...
@@ -6,6 +6,7 @@ rm /session/rtorrent.lock /session/rtorrent.pid || true
if
[
-n
"
$EXTERNAL_IP_CMD
"
]
;
then
EXTERNAL_IP
=
$(
eval
"
$EXTERNAL_IP_CMD
"
)
echo
"external ip:
${
EXTERNAL_IP
}
"
fi
if
[
-n
"
$EXTERNAL_IP
"
]
;
then
rtorrent
-i
"
$EXTERNAL_IP
"
-n
-o
"import=/rtorrent.rc"
&
...
...
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