Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
h3xit committed Nov 4, 2024
1 parent ce62d01 commit 4111982
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run build script
run: ./build.sh
run: bash build.sh

- name: Build and push base image
uses: docker/build-push-action@v4
Expand All @@ -46,8 +46,8 @@ jobs:
- name: Build and push worker image
uses: docker/build-push-action@v4
with:
context: ./src/Worker
file: ./src/Worker/Dockerfile
context: ./build/Worker
file: ./build/Worker/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/h3xrecon_worker:latest
cache-from: type=gha
Expand Down
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/etc/profiles/per-user/h3x/bin/bash

echo "Building h3xrecon"

Expand All @@ -11,6 +11,8 @@ cp -r src/DatabaseManager build/Worker/
cp -r src/QueueManager build/Worker/
cp src/requirements_workers.txt build/Worker/requirements.txt

docker buildx build --file ./src/Worker/Dockerfile --platform linux/amd64 --tag ghcr.io/h3xitsec/h3xrecon_worker:latest ./src/Worker


#echo "Directory tree"
# find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
Expand Down
11 changes: 7 additions & 4 deletions src/Worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ RUN apt-get update && apt-get install -y \

RUN pip install dnspython

RUN mkdir -p /root/.pdtm/go/bin && \
wget https://github.com/projectdiscovery/pdtm/releases/download/v0.0.9/pdtm_0.0.9_linux_arm64.zip -O /tmp/pdtm.zip &&\
unzip /tmp/pdtm.zip && \
mv pdtm /root/.pdtm/go/bin/pdtm && \
#RUN mkdir -p /root/.pdtm/go/bin && \
# wget https://github.com/projectdiscovery/pdtm/releases/download/v0.0.9/pdtm_0.0.9_linux_arm64.zip -O /tmp/pdtm.zip &&\
# unzip /tmp/pdtm.zip && \
# mv pdtm /root/.pdtm/go/bin/pdtm && \
RUN go install -v github.com/projectdiscovery/pdtm/cmd/pdtm@latest && \
pdtm -i subfinder && \
pdtm -i httpx && \
pdtm -i dnsx
Expand All @@ -29,6 +30,8 @@ RUN git clone https://github.com/UnaPibaGeek/ctfr.git /opt/ctfr && \
RUN go install github.com/Josue87/gotator@latest

COPY . /app
COPY ./DatabaseManager /app/DatabaseManager
COPY ./QueueManager /app/QueueManager

ENV NAME=Worker

Expand Down

0 comments on commit 4111982

Please sign in to comment.