diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..08827d5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git +.dockerignore +Makefile +README.md +*.pyc +*.tar diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b5b95e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Ipython Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +*.tar diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..66b1367 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM sentry:onbuild diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..720a40d --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +REPOSITORY=sentry-onpremise +TAG=latest + +OK_COLOR=\033[32;01m +NO_COLOR=\033[0m + +build: + @echo "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)" + @docker build --rm -t $(REPOSITORY):$(TAG) . + +$(REPOSITORY)_$(TAG).tar: build + @echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@" + @docker save $(REPOSITORY):$(TAG) > $@ + +all: build $(REPOSITORY)_$(TAG).tar + +.PHONY: build all diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b4659b6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +# Add plugins here