Skip to content

Commit

Permalink
Updated deps and packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3bl33d3r committed Sep 28, 2023
1 parent 90ced9b commit e6e14df
Show file tree
Hide file tree
Showing 9 changed files with 927 additions and 830 deletions.
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "DNSChef",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"tamasfe.even-better-toml"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
3 changes: 2 additions & 1 deletion dnschef/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from typing import Optional, List

from fastapi import FastAPI
from pydantic import BaseModel, BaseSettings, FilePath #,IPvAnyAddress
from pydantic_settings import BaseSettings
from pydantic import BaseModel, FilePath #,IPvAnyAddress
from dnslib import RDMAP

import logging
Expand Down
2 changes: 1 addition & 1 deletion dnschef/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
header += " / _` | '_ \/ __|/ __| '_ \ / _ \ _|\n"
header += " | (_| | | | \__ \ (__| | | | __/ | \n"
header += " \__,_|_| |_|___/\___|_| |_|\___|_| \n"
header += " @byt3bl33d3r \n"
header += " @iphelix // @byt3bl33d3r \n"


def parse_config_file(config_file: str = "dnschef.ini"):
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

version: "3"
services:
dnschef:
Expand All @@ -10,11 +9,11 @@ services:
expose:
- "80"
volumes:
- dnschef.ini:/etc/dnschef.ini
- ./dnschef.ini:/etc/dnschef.ini
environment:
- INTERFACE=0.0.0.0
- NAMESERVERS=8.8.8.8
- PORT=53
- TCP=false
- IPV6=false
- CONFIGFILE=/etc/dnschef.ini
- CONFIGFILE=/etc/dnschef.ini
Loading

0 comments on commit e6e14df

Please sign in to comment.