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

提供一个自用的一键部署供参考 #99

Open
r3x5ur opened this issue Jun 17, 2022 · 4 comments
Open

提供一个自用的一键部署供参考 #99

r3x5ur opened this issue Jun 17, 2022 · 4 comments

Comments

@r3x5ur
Copy link

r3x5ur commented Jun 17, 2022

基于 docker-compose 一键安装使用 (好处是环境隔离, 一键安装依赖)

  1. 拉下来的仓库添加3个文件
    image
  • Dockerfile:
FROM yankovg/python3.8.2-ubuntu18.04
COPY . /0x727
WORKDIR /
RUN cd /0x727&&\
    rm /usr/bin/python3&&\
    ln -s /usr/local/bin/python3.8 /usr/bin/python3&&\
    apt install python3-setuptools -y&&\
    python3 -m pip install --upgrade pip&&\
    python3 -m pip install -r requirements.txt&&\
    chmod +x ./Plugins/infoGather/subdomain/ksubdomain/ksubdomain_linux
ENTRYPOINT ["tail","-f","/dev/null"]
  • docker-compose.yml
version: "3"
services:
  sz0x727:
    build: .
    restart: always
    container_name: sz0x727
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - ./:/0x727
  • 0x727
#!/bin/bash
docker-compose exec -w /0x727  sz0x727 python3 ShuiZe.py $*
  1. 添加完成之后 chmod +x 0x727
  2. 运行 docker-compose up -d
  3. 安装完成之后可以看下 docker ps
    image

使用:./0x727 -h (也可以自己加到环境变量中去)

image

@r3x5ur
Copy link
Author

r3x5ur commented Jun 17, 2022

改动当前仓库的文件会直接同步到docker容器内部,所以改动配置文件,或者更新版本都是没问题的

@hehh2001
Copy link

谢谢

@Softssiter
Copy link

8dacfe2b90740e9f414d366032ca64e

d6c8218bf6d3b752b8455b9bf164dc2

我想问下这种情况是为什么,怎么解决

@r3x5ur
Copy link
Author

r3x5ur commented Aug 1, 2022

@Softssiter 你这个是安装依赖的时候连接超时了,网络不给力啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants