We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi. i manged to update to bullseye by changin 2 things on dockerfile. Change sources.list and add libsodium23 I atach here:
# Stage 1 : builder debian image FROM debian:bullseye as builder # properly setup debian sources ENV DEBIAN_FRONTEND noninteractive RUN echo "deb http://deb.debian.org/debian bullseye main\n\ deb-src http://deb.debian.org/debian bullseye main\n\ deb http://deb.debian.org/debian-security/ bullseye-security main\n\ deb-src http://deb.debian.org/debian-security/ bullseye-security main\n\ deb http://deb.debian.org/debian bullseye-updates main\n\ deb-src http://deb.debian.org/debian bullseye-updates main\n\ " > /etc/apt/sources.list # install package building helpers # rsyslog for logging (ref https://github.com/stilliard/docker-pure-ftpd/issues/17) RUN apt-get -y update && \ apt-get -y --force-yes --fix-missing install dpkg-dev debhelper &&\ apt-get -y build-dep pure-ftpd # Build from source - we need to remove the need for CAP_SYS_NICE and CAP_DAC_READ_SEARCH RUN mkdir /tmp/pure-ftpd/ && \ cd /tmp/pure-ftpd/ && \ apt-get source pure-ftpd && \ cd pure-ftpd-* && \ ./configure --with-tls | grep -v '^checking' | grep -v ': Entering directory' | grep -v ': Leaving directory' && \ sed -i '/CAP_SYS_NICE,/d; /CAP_DAC_READ_SEARCH/d; s/CAP_SYS_CHROOT,/CAP_SYS_CHROOT/;' src/caps_p.h && \ dpkg-buildpackage -b -uc | grep -v '^checking' | grep -v ': Entering directory' | grep -v ': Leaving directory' # Stage 2 : actual pure-ftpd image FROM debian:bullseye-slim # feel free to change this ;) LABEL maintainer "Andrew Stilliard <[email protected]>" # install dependencies # FIXME : libcap2 is not a dependency anymore. .deb could be fixed to avoid asking this dependency ENV DEBIAN_FRONTEND noninteractive RUN apt-get -y update && \ apt-get --no-install-recommends --yes install \ libc6 \ libcap2 \ libmariadb3 \ libpam0g \ libssl1.1 \ lsb-base \ libsodium23 \ openbsd-inetd \ openssl \ perl \ rsyslog COPY --from=builder /tmp/pure-ftpd/*.deb /tmp/pure-ftpd/ # install the new deb files RUN dpkg -i /tmp/pure-ftpd/pure-ftpd-common*.deb &&\ dpkg -i /tmp/pure-ftpd/pure-ftpd_*.deb && \ # dpkg -i /tmp/pure-ftpd/pure-ftpd-ldap_*.deb && \ # dpkg -i /tmp/pure-ftpd/pure-ftpd-mysql_*.deb && \ # dpkg -i /tmp/pure-ftpd/pure-ftpd-postgresql_*.deb && \ rm -Rf /tmp/pure-ftpd # prevent pure-ftpd upgrading RUN apt-mark hold pure-ftpd pure-ftpd-common # setup ftpgroup and ftpuser RUN groupadd ftpgroup &&\ useradd -g ftpgroup -d /home/ftpusers -s /dev/null ftpuser # configure rsyslog logging RUN echo "" >> /etc/rsyslog.conf && \ echo "#PureFTP Custom Logging" >> /etc/rsyslog.conf && \ echo "ftp.* /var/log/pure-ftpd/pureftpd.log" >> /etc/rsyslog.conf && \ echo "Updated /etc/rsyslog.conf with /var/log/pure-ftpd/pureftpd.log" # setup run/init file COPY run.sh /run.sh RUN chmod u+x /run.sh # cleaning up RUN apt-get -y clean \ && apt-get -y autoclean \ && apt-get -y autoremove \ && rm -rf /var/lib/apt/lists/* # default publichost, you'll need to set this for passive support ENV PUBLICHOST localhost # couple available volumes you may want to use VOLUME ["/home/ftpusers", "/etc/pure-ftpd/passwd"] # startup CMD /run.sh -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P $PUBLICHOST EXPOSE 21 30000-30009
The text was updated successfully, but these errors were encountered:
Hi @rodriciru Thanks this looks interesting, I'll take a look soon about upgrading the base to bullseye now it's out.
Sorry, something went wrong.
I'm looking forward to this!
I've just opened a PR (#182 ) about this issue.
No branches or pull requests
Hi. i manged to update to bullseye by changin 2 things on dockerfile.
Change sources.list and add libsodium23
I atach here:
The text was updated successfully, but these errors were encountered: