Skip to content

Improvements and fixes on the develop branch#104

Open
Jolly-Pirate wants to merge 17 commits intoromancin:developfrom
Jolly-Pirate:develop
Open

Improvements and fixes on the develop branch#104
Jolly-Pirate wants to merge 17 commits intoromancin:developfrom
Jolly-Pirate:develop

Conversation

@Jolly-Pirate
Copy link

@Jolly-Pirate Jolly-Pirate commented Feb 19, 2023

build.sh script in conjunction with a .env file
use docker BuildKit and heredocs to simplify the Dockerfile syntax
fix for errors and ssl
update default config.php as of version 4.0.2

MAINTAINER has been deprecated
Add RUTORRENT_VER argument for specific version. "--depth 1" only pulls the master branch, which can be behind on the most recent version.
Build script with override variables stored in .env. This provides a more flexible setup without having to update Dockerfile with frequent versions.
BuildKit and heredocs reduce the clutter in Dockerfile in multiline RUN commands.

https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
- Add DOCKER_REPOSITORY environment variable to the build.sh
- Change buildkit version to latest
- Edit environment variables defaults to Dockerfile
@Jolly-Pirate Jolly-Pirate changed the title Various improvements Various improvements to the develop branch Feb 19, 2023
The default SSL_ENABLED is off when running the container. However, when choosing to enable it with SSL_ENABLED="yes" after it was ran with no ssl, the ssl didn't work. This fix allows toggling between non-ssl and ssl when stopping/removing and restarting the container.

Also, I deleted the redundant nginx_ssl.conf file, since the only difference with nginx.conf was the listening port; I enabled toggling the listening port with a sed command.
Adapted from the latest ruTorrent v4.0.2 config.php
@Jolly-Pirate Jolly-Pirate changed the title Various improvements to the develop branch Improvements and fixes on the develop branch Feb 21, 2023
logging fix for:
tail: cannot open '' for reading: No such file or directory

I think you forgot to add the --pid switch, which stops tailing when the process dies. Also, get the pid with pidof command, it's much simpler.
network=host doesn't do anything when building, only when running a container
@Jolly-Pirate Jolly-Pirate force-pushed the develop branch 3 times, most recently from dd55971 to cdc70ea Compare February 28, 2023 21:11
Save the session every 12 hours instead of the default 20 minutes. This 300 sec setting is too fast and will thrash the disks.

https://github.com/rakshasa/rtorrent/wiki/Performance-Tuning#session-save

rakshasa/rtorrent#180 (comment)
rtorrent and libtorrent master branches removed autogen.sh. We need to use autoreconf before running ./configure. Also, the package autoconf-archive is needed to avoid errors during the autoreconfg step.
@Jolly-Pirate Jolly-Pirate force-pushed the develop branch 4 times, most recently from 3e792a2 to 4cf9aab Compare April 18, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant