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

[Feature] Releases for arm(64) architectures. #39

Open
blmhemu opened this issue Dec 19, 2020 · 2 comments
Open

[Feature] Releases for arm(64) architectures. #39

blmhemu opened this issue Dec 19, 2020 · 2 comments

Comments

@blmhemu
Copy link

blmhemu commented Dec 19, 2020

I was wondering if releases for docker arm / arm64 is possible, since most of this is shell scripts and no extra compiling is not necessary.

@blmhemu blmhemu changed the title Releases for arm(64) architectures ? [Feature] Releases for arm(64) architectures. Dec 19, 2020
@blmhemu
Copy link
Author

blmhemu commented Dec 19, 2020

# Jackett and OpenVPN, JackettVPN

FROM arm64v8/ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive
ENV XDG_DATA_HOME="/config" \
XDG_CONFIG_HOME="/config"

WORKDIR /opt

RUN usermod -u 99 nobody

# Make directories
RUN mkdir -p /blackhole /config/Jackett /etc/jackett

# Update, upgrade and install required packages
RUN apt update \
    && apt -y upgrade \
    && apt -y install --no-install-recommends \
    iproute2 \
    openresolv \
    apt-transport-https \
    wireguard-tools \
    openvpn \
    ca-certificates \
    wget \
    curl \
    gnupg \
    sed \
    curl \
    moreutils \
    net-tools \
    dos2unix \
    kmod \
    iptables \
    ipcalc \
    grep \
    libcurl4 \
    liblttng-ust0 \
    libkrb5-3 \
    zlib1g \
    iputils-ping \
    jq \
    libicu60 \
    grepcidr \
    && apt-get clean \
    && apt -y autoremove \
    && rm -rf \
    /var/lib/apt/lists/* \
    /tmp/* \
    /var/tmp/*

# Install Jackett
RUN jackett_latest=$(curl --silent "https://api.github.com/repos/Jackett/Jackett/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') \
    && curl -o /opt/Jackett.Binaries.LinuxARM64.tar.gz -L https://github.com/Jackett/Jackett/releases/download/$jackett_latest/Jackett.Binaries.LinuxARM64.tar.gz \
    && tar -xzf /opt/Jackett.Binaries.LinuxARM64.tar.gz \
    && rm /opt/Jackett.Binaries.LinuxARM64.tar.gz

VOLUME /blackhole /config

ADD openvpn/ /etc/openvpn/
ADD jackett/ /etc/jackett/

RUN chmod +x /etc/jackett/*.sh /etc/jackett/*.init /etc/openvpn/*.sh /opt/Jackett/jackett

EXPOSE 9117
CMD ["/bin/bash", "/etc/openvpn/start.sh"]

The above code was building (cross compiled from x86) fine.

@DyonR
Copy link
Owner

DyonR commented Dec 19, 2020

For this pull request #34 is open already. But WireGuard is untested yet.

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