Skip to content
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

Request: dante ARM64/aarch64 v8 support #211

Open
stevenlafl opened this issue Mar 5, 2024 · 1 comment
Open

Request: dante ARM64/aarch64 v8 support #211

stevenlafl opened this issue Mar 5, 2024 · 1 comment

Comments

@stevenlafl
Copy link

config.guess provided is from 2011, and newer ones allow it to compile under aarch64.

Available at stevenlafl/dante for expediency.

Only changed lines:

ARG GUESS_URL=http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
ARG GUESS_FILE=config.guess
...
        && curl -sSL $GUESS_URL -o $GUESS_FILE \

and finally, the result:

#
# Dockerfile for dante
#

FROM debian:bookworm
MAINTAINER EasyPi Software Foundation

ARG DANTE_VER=1.4.3
ARG DANTE_URL=https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ARG DANTE_SHA1=1e264ec532774324b5508ba5f2ad226d479b4977
ARG DANTE_FILE=dante.tar.gz
ARG DANTE_TEMP=dante
ARG DANTE_DEPS="build-essential curl"

ARG GUESS_URL=http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
ARG GUESS_FILE=config.guess

RUN set -xe \
    && apt-get update \
    && apt-get install -y $DANTE_DEPS \
    && mkdir $DANTE_TEMP \
        && cd $DANTE_TEMP \
        && curl -sSL $DANTE_URL -o $DANTE_FILE \
        && echo "$DANTE_SHA1 *$DANTE_FILE" | sha1sum -c \
        && tar xzf $DANTE_FILE --strip 1 \
        && curl -sSL $GUESS_URL -o $GUESS_FILE \
        && ./configure \
        && make install \
        && cd .. \
        && rm -rf $DANTE_TEMP \
    && apt-get purge -y --auto-remove $DANTE_DEPS \
    && rm -rf /var/lib/apt/lists/*

COPY data/sockd.conf /etc/dante/sockd.conf

ENV CFGFILE=/etc/dante/sockd.conf
ENV PIDFILE=/run/sockd.pid
ENV WORKERS=10

EXPOSE 1080

CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
@vimagick
Copy link
Owner

vimagick commented Mar 5, 2024

Thanks! I'll add this feature to Dockerfile.

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

No branches or pull requests

2 participants