Skip to content

Commit

Permalink
Merge pull request #23 from Ostorlab/feature/support_for_arm64
Browse files Browse the repository at this point in the history
Add support for arm64 architecture.
  • Loading branch information
3asm authored Mar 14, 2024
2 parents fffe98c + 791785e commit f95da29
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM python:3.11-alpine as base
FROM python:3.11-slim as base
FROM base as builder
RUN apk add build-base
RUN mkdir /install
WORKDIR /install
COPY requirement.txt /requirement.txt
Expand All @@ -10,7 +9,7 @@ FROM golang:1.21-alpine AS go-build-env
RUN go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest

FROM base
RUN apk -U upgrade --no-cache && apk add --no-cache bind-tools ca-certificates
RUN apt-get update && apt-get install -y bind9 dnsutils ca-certificates
COPY --from=builder /install /usr/local
COPY --from=go-build-env /go/bin/subfinder /usr/local/bin/subfinder
RUN mkdir -p /app/agent
Expand Down
1 change: 1 addition & 0 deletions agent/subfinder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Wrapper module around the Subfinder subdomaine discovery tool."""

import io
import tempfile
import subprocess
Expand Down
1 change: 1 addition & 0 deletions agent/subfinder_agent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Agent implementation for Subfinder : subdomain discovery tool that discovers valid subdomains for websites."""

import logging

from rich import logging as rich_logging
Expand Down
3 changes: 3 additions & 0 deletions ostorlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ in_selectors:
- v3.asset.domain_name
out_selectors:
- v3.asset.domain_name
supported_architectures:
- linux/arm64/v8
- linux/x86_64
docker_file_path : Dockerfile
docker_build_root : .
args:
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest fixtures for the Subfinder agent"""

import random
import json

Expand Down

0 comments on commit f95da29

Please sign in to comment.