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

♻️ This code now supports the armv7l architecture, referring to it as armhf in the context of Ubuntu's architecture naming. #1366

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
31 changes: 23 additions & 8 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ARG GECKOVERSION=0.33.0
ARG GOVERSION=1.21.5

RUN ARCH=$(dpkg --print-architecture) \
&& if [ "${ARCH}" ! "arm64" ] || [ "${ARCH}" ! "amd64" ]; then \
echo "reNgine not supported, encountered unknown architecture: ${TARGETPLATFORM}" \
&& if [ "${ARCH}" != "arm64" ] && [ "${ARCH}" != "amd64" ] && [ "${ARCH}" != "armhf" ]; then \
echo "reNgine not supported, encountered unknown architecture: ${ARCH}" \
&& exit 1; \
fi

Expand Down Expand Up @@ -55,16 +55,27 @@ RUN apt install -y --no-install-recommends \

RUN add-apt-repository ppa:mozillateam/ppa

RUN ARCH=$(dpkg --print-architecture) \
&& wget https://go.dev/dl/go${GOVERSION}.linux-${ARCH}.tar.gz \
&& tar -xvf go${GOVERSION}.linux-${ARCH}.tar.gz -C /usr/local \
&& rm go${GOVERSION}.linux-${ARCH}.tar.gz
# Download and install Go
RUN ARCH=$(dpkg --print-architecture) \
&& if [ "${ARCH}" = "arm64" ]; then \
GOFILE="go${GOVERSION}.linux-arm64.tar.gz"; \
elif [ "${ARCH}" = "amd64" ]; then \
GOFILE="go${GOVERSION}.linux-amd64.tar.gz"; \
elif [ "${ARCH}" = "armhf" ]; then \
GOFILE="go${GOVERSION}.linux-armv6l.tar.gz"; \
fi \
&& wget https://go.dev/dl/${GOFILE} \
&& tar -xvf ${GOFILE} -C /usr/local \
&& rm ${GOFILE}

# Download and install Geckodriver
RUN ARCH=$(dpkg --print-architecture) \
&& if [ "${ARCH}" = "arm64" ]; then \
GECKOPATH="geckodriver-v${GECKOVERSION}-linux-aarch64.tar.gz"; \
elif [ "${ARCH}" = "amd64" ]; then \
GECKOPATH="geckodriver-v${GECKOVERSION}-linux64.tar.gz"; \
elif [ "${ARCH}" = "armhf" ]; then \
GECKOPATH="geckodriver-v${GECKOVERSION}-linux-aarch64.tar.gz"; \
fi \
&& wget https://github.com/mozilla/geckodriver/releases/download/v${GECKOVERSION}/${GECKOPATH} \
&& tar -xvf ${GECKOPATH} \
Expand All @@ -79,6 +90,10 @@ RUN pip3 install maturin
# Make directory for app
WORKDIR /usr/src/app

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

ENV GO111MODULE=on
RUN printf "\
github.com/jaeles-project/gospider@latest\n\
Expand Down Expand Up @@ -107,8 +122,8 @@ RUN nuclei -update-templates

# Copy requirements
COPY ./requirements.txt /tmp/requirements.txt
RUN pip3 install --upgrade setuptools==72.1.0
RUN pip3 install -r /tmp/requirements.txt --no-cache-dir
RUN pip3 install --upgrade setuptools==72.1.0 && \
pip3 install -r /tmp/requirements.txt --no-cache-dir

# install eyewitness
RUN pip3 install --no-cache-dir fuzzywuzzy \
Expand Down
Loading