Skip to content

Commit

Permalink
Merge pull request #3 from JacobCallahan/master
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
JacobCallahan authored May 24, 2022
2 parents 44b3df7 + db7a06f commit 31406b5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 100
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM fedora
MAINTAINER https://github.com/SatelliteQE

RUN dnf -y install git python3-pip python3-devel && dnf clean all
WORKDIR /root/manifester
ENV MANIFESTER_DIRECTORY=/root/manifester/
COPY . /root/manifester/
RUN pip install .
RUN cp manifester_settings.yaml.example manifester_settings.yaml


ENTRYPOINT ["manifester"]
CMD ["--help"]
4 changes: 3 additions & 1 deletion manifester/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from manifester.settings import settings


def setup_logzero(level="info", path="logs/manifester.log", silent=True):
log_fmt = "%(color)s[%(levelname)s %(asctime)s]%(end_color)s %(message)s"
debug_fmt = (
Expand All @@ -25,4 +26,5 @@ def setup_logzero(level="info", path="logs/manifester.log", silent=True):
path, loglevel=log_level, maxBytes=1e9, backupCount=3, formatter=formatter
)

setup_logzero(level=settings.log_level)

setup_logzero(level=settings.get("log_level", "info"))
1 change: 1 addition & 0 deletions manifester/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

from dynaconf import Dynaconf
from dynaconf import Validator

settings_file = "manifester_settings.yaml"
MANIFESTER_DIRECTORY = Path()
Expand Down

0 comments on commit 31406b5

Please sign in to comment.