Skip to content

Commit

Permalink
Merge pull request #220 from CirclesUBI/danieljanz/op-218-incident-nc…
Browse files Browse the repository at this point in the history
…at-containers-not-available-from-the-container

re-added the ncat container build
  • Loading branch information
jaensen committed Nov 28, 2023
2 parents 44126e7 + eefc4b4 commit e1b28ab
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-push.ncat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Ncat

on:
push:
branches:
- main
- next
- dev
paths:
- "Dockerfile.ncat"
- ".github/workflows/build-push.ncat.yml"

jobs:
call-build-and-push:
name: Call
uses: CirclesUBI/.github/.github/workflows/build-and-push.yml@main
with:
image-name: "api-server-ncat"
file: "Dockerfile.ncat"
secrets: inherit
2 changes: 2 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ on:
paths-ignore:
- "src/api-db-migrations/**"
- ".github/workflows/build-push.migrations.yml"
- ".github/workflows/build-push.ncat.yml"
- ".github/workflows/pr-labeler.yml"
- ".github/workflows/release-drafter.yml"
- ".github/workflows/release-version.yml"
- ".github/pr-labeler.yml"
- ".github/release-drafter.yml"
- "Dockerfile.migrations"
- "Dockerfile.ncat"
workflow_call:
inputs:
ref:
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile.ncat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.17

RUN apk add --no-cache --update \
nmap-ncat && \
echo -e '#!/bin/sh\nset -x\nncat -l $HOST $PORT --sh-exec "ncat --proxy $PROXY_HOST:$PROXY_PORT --proxy-type socks5 $TARGET_HOST $TARGET_PORT" --keep-open' > /entrypoint.sh && \
chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit e1b28ab

Please sign in to comment.