Comments (6)
Hi @chenboy3,
I was able to reproduce the issue, this is related to the new debian version, as the required library is not supported anymore (not pretty sure, correct me if i am wrong). As a temporal fix you can do the following:
1. After cloning the repo, go to `www` directory and modify the `dockerfile` and set the following:
FROM debian:buster-slim AS builder RUN apt-get update -y \ && apt-get install --no-install-recommends -y wget git unzip lsb-release gnupg2 dpkg-dev ca-certificates \ && echo "deb-src http://nginx.org/packages/`lsb_release -is | tr '[:upper:]' '[:lower:]'` `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list \ && wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key && rm nginx_signing.key \ && cd /tmp \ && apt-get update \ && apt-get source nginx \ && apt-get build-dep nginx --no-install-recommends -y \ && git clone https://github.com/wandenberg/nginx-push-stream-module.git nginx-push-stream-module \ && cd nginx-1* \ && sed -i "s@--with-stream_ssl_module@--with-stream_ssl_module --add-module=/tmp/nginx-push-stream-module @g" debian/rules \ && dpkg-buildpackage -uc -us -b \ && cd .. \ && mv nginx_1*~buster_amd64.deb nginx.deb FROM debian:buster-slim AS runner COPY --from=builder /tmp/nginx.deb /tmp RUN apt-get update -y \ && apt-get install --no-install-recommends -y lsb-base \ && apt-get install wget -y \ && wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u2_amd64.deb \ && dpkg -i libssl1.1_1.1.1n-0+deb10u2_amd64.deb \ && dpkg -i /tmp/nginx.deb \ && apt-mark hold nginx COPY nginx.conf /etc/nginx/nginx.conf CMD ["nginx", "-g", "daemon off;"]
This will download and install
libssl1.1_1.1.1n-0+deb10u2_amd64.deb
you can add a checksum step if you like. After saving changes run into main directory akaSHHGIT
rundocker compose build
, add your tokens modifying theconfig.yaml
, and finally rundocker-compose up
, go to http://localhost:8080 and enjoy.Regards @takionExMachina
Same error as @chenboy3 , above Dockerfile throws this error:
--2022-10-13 20:16:47-- http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u2_amd64.deb
Resolving security.debian.org (security.debian.org)... 151.101.194.132, 151.101.2.132, 151.101.130.132, ...
Connecting to security.debian.org (security.debian.org)|151.101.194.132|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-10-13 20:16:47 ERROR 404: Not Found.
My host debian version:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
I replaced url with next one and it worked.:
https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u3_amd64.deb
from shhgit.
Hi @chenboy3,
you need to set platform to linux/x86_64
like the following:
version: '2.4'
services:
shhgit-www:
platform: linux/x86_64
build: ./www
container_name: shhgit.www
ports:
- 8080:80 # if you change your local port update public/script.js:1273
volumes:
- ./www/public:/usr/share/nginx/html:ro
shhgit-app:
platform: linux/x86_64
build: ./
container_name: shhgit.app
entrypoint: ["/app/shhgit", "--live=http://shhgit-www/push"]
depends_on:
- shhgit-www
volumes:
- ./config.yaml:/app/config.yaml:ro
from shhgit.
Hi, running into this issue now:
#10 16.53 ----------------------------------------------------------------------
#10 16.54 Unpacking nginx (1.22.0-1~buster) ...
#10 16.79 dpkg: dependency problems prevent configuration of nginx:
#10 16.79 nginx depends on libpcre2-8-0 (>= 10.32); however:
#10 16.79 Package libpcre2-8-0 is not installed.
#10 16.79
#10 16.79 dpkg: error processing package nginx (--install):
#10 16.79 dependency problems - leaving unconfigured
#10 16.80 Errors were encountered while processing:
#10 16.80 nginx
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c apt-get update -y && apt-get install --no-install-recommends -y libssl1.1 lsb-base && dpkg -i /tmp/nginx.deb && apt-mark hold nginx]: exit code: 1
Any suggestions here? A bit unfamiliar with Docker so just not sure if I need to do some nginx installation configs
from shhgit.
Hi @chenboy3,
I was able to reproduce the issue, this is related to the new debian version, as the required library is not supported anymore (not pretty sure, correct me if i am wrong). As a temporal fix you can do the following:
- After cloning the repo, go to
www
directory and modify thedockerfile
and set the following:
FROM debian:buster-slim AS builder
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y wget git unzip lsb-release gnupg2 dpkg-dev ca-certificates \
&& echo "deb-src http://nginx.org/packages/`lsb_release -is | tr '[:upper:]' '[:lower:]'` `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list \
&& wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key && rm nginx_signing.key \
&& cd /tmp \
&& apt-get update \
&& apt-get source nginx \
&& apt-get build-dep nginx --no-install-recommends -y \
&& git clone https://github.com/wandenberg/nginx-push-stream-module.git nginx-push-stream-module \
&& cd nginx-1* \
&& sed -i "s@--with-stream_ssl_module@--with-stream_ssl_module --add-module=/tmp/nginx-push-stream-module @g" debian/rules \
&& dpkg-buildpackage -uc -us -b \
&& cd .. \
&& mv nginx_1*~buster_amd64.deb nginx.deb
FROM debian:buster-slim AS runner
COPY --from=builder /tmp/nginx.deb /tmp
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y lsb-base \
&& apt-get install wget -y \
&& wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u2_amd64.deb \
&& dpkg -i libssl1.1_1.1.1n-0+deb10u2_amd64.deb \
&& dpkg -i /tmp/nginx.deb \
&& apt-mark hold nginx
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]
This will download and installlibssl1.1_1.1.1n-0+deb10u2_amd64.deb
you can add a checksum step if you like.
After saving changes run into main directory aka SHHGIT
run docker compose build
, add your tokens modifying the config.yaml
, and finally run docker-compose up
, go to http://localhost:8080 and enjoy.
Regards
@takionExMachina
from shhgit.
Sounds good, this works! Is there a way to run docker-compose up
with a local repository? Tried modifying the Dockerfile but that didn't seem to help
from shhgit.
@jcmoneymx your last comment worked like a charm! 💯
Kudos
from shhgit.
Related Issues (20)
- NotGitBleed shhgit support
- Error docker install "docker-compose up" HOT 1
- Line Numbers on output
- Docker reads /app/config.yaml as directory HOT 1
- Doesn't work anymore
- How to configure bitbucket repository HOT 1
- installation and setup problems:which webhook url to use and payload, go get(cloning) not working HOT 8
- Links don't point to correct location HOT 1
- Support for Azure Devops Cloud and On-Premise
- Could you please a new tag for releases?
- ERROR: Service 'shhgit-www' failed to build : no matching manifest for windows/amd64 10.0.19042 in the manifest list entries
- Live Error: Error connecting to shhgit. Reload to retry? HOT 3
- Feature Request: Support crawling/hunting on npmjs.com
- After 5000 request goes to sleep
- For Bug Bounty hunting - Filter by company
- shhgit stuck when more than one token were added to config.yaml HOT 2
- How to set more threads in Docker? HOT 1
- More friendly to Chinese users
- Is there a unit test to assert the regular expressions are working in config.yaml?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shhgit.