-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: * GUI bugfixes * User profile * Link to inventory in history * Update graph and movement of charts * Get info from api-stats for dashboard * Add feature: clean history details (ansible log output) * Fix broken symlinks in debian packages * Add user settings storage and movable charts * Add kerberos package to deps * Execute options to templates * Setup git-projects branch * Fix bug with symbols `<`, `>`, `'`, `"` and `&` in inventory * Hide some secret vars in history raw_inventory See merge request cloud/polemarch!53
- Loading branch information
Showing
75 changed files
with
11,875 additions
and
7,909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# 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 | ||
.static_storage/ | ||
.media/ | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
version: '3' | ||
services: | ||
db-server: | ||
image: mysql:latest | ||
environment: | ||
- MYSQL_DATABASE=polemarch | ||
- MYSQL_ROOT_PASSWORD=polemarch | ||
- MYSQL_USER=polemarch | ||
- MYSQL_PASSWORD=polemarch | ||
volumes: | ||
- "db_data:/var/lib/mysql" | ||
memcache-server: | ||
image: memcached | ||
rabbitmq-server: | ||
image: rabbitmq:latest | ||
environment: | ||
- RABBITMQ_DEFAULT_USER=polemarch | ||
- RABBITMQ_DEFAULT_PASS=polemarch | ||
- RABBITMQ_DEFAULT_VHOST=polemarch | ||
polemarch: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile.dev | ||
entrypoint: /bin/bash -c "/bin/bash -c \"$${@}\"" | ||
command: | | ||
/bin/bash -c " | ||
set -e | ||
curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh | tee ./wait-for-it.sh | ||
chmod +x wait-for-it.sh | ||
./wait-for-it.sh db-server:3306 | ||
./wait-for-it.sh rabbitmq-server:5672 | ||
mkdir -p /var/run/polemarch | ||
chown polemarch:polemarch /projects /var/run/polemarch | ||
sudo -u polemarch /opt/polemarch/bin/polemarchctl migrate | ||
sudo -u polemarch /opt/polemarch/bin/uwsgi /opt/polemarch/lib/python2.7/site-packages/polemarch/web.ini | ||
/bin/bash || exit 0 | ||
" | ||
external_links: | ||
- db-server | ||
- cache-server:memcache-server | ||
- locks-server:memcache-server | ||
- rabbitmq-server | ||
volumes: | ||
- "project_data:/projects" | ||
ports: | ||
- "8080:8080" | ||
|
||
volumes: | ||
project_data: | ||
db_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: '3.3' | ||
services: | ||
db-server: | ||
container_name: dbtest | ||
image: mysql:latest | ||
environment: | ||
- MYSQL_DATABASE=polemarch | ||
- MYSQL_ROOT_PASSWORD=polemarch | ||
- MYSQL_USER=polemarch | ||
- MYSQL_PASSWORD=polemarch | ||
volumes: | ||
- type: tmpfs | ||
target: /var/lib/mysql | ||
memcache-server: | ||
container_name: cachetest | ||
image: memcached | ||
polemarch_test_rpm: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile.test.rpm | ||
entrypoint: /bin/bash -c "/bin/bash -c \"$${@}\"" | ||
command: | | ||
/bin/bash -c " | ||
set -e | ||
curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > wait-for-it.sh | ||
chmod +x wait-for-it.sh | ||
./wait-for-it.sh db-server:3306 | ||
cd /home/polemarch | ||
sudo -u polemarch -H /opt/polemarch/bin/coverage run --source='/opt/polemarch/lib/python2.7/site-packages/polemarch' -m polemarch test -v 2 polemarch.main.tests | ||
sudo -u polemarch -H /opt/polemarch/bin/coverage report -m | ||
/bin/bash || exit 0 | ||
" | ||
external_links: | ||
- db-server | ||
- cache-server:memcache-server | ||
- locks-server:memcache-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM centos:7 | ||
MAINTAINER sergey.k@vstconsulting.net | ||
|
||
#Update and install required packages | ||
RUN yum check-update || true | ||
RUN yum install epel-release -y | ||
RUN yum -y install sudo python-pip python-devel ansible sshpass git \ | ||
rpm-build make gcc openssl-devel libffi libffi-devel \ | ||
libyaml-devel python-virtualenv | ||
|
||
# For future tests | ||
# RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm | ||
# RUN yum -y install python3{5,6}u{,-devel,-pip} | ||
|
||
|
||
# Install pip requires | ||
RUN pip2 install -U pip | ||
RUN pip2 install -U -I pip tox coverage rpmvenv editdistance pyyaml | ||
RUN pip2 install -U 'cython>=0.25.2' | ||
|
||
|
||
# Build and install rpm | ||
COPY requirements-doc.txt /tmp/requirements-doc.txt | ||
COPY requirements-git.txt /tmp/requirements-git.txt | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip2 install -U -r /tmp/requirements-doc.txt \ | ||
-r /tmp/requirements-git.txt \ | ||
-r /tmp/requirements.txt | ||
RUN mkdir /tmp/polemarch | ||
ADD . /tmp/polemarch/ | ||
RUN cd /tmp/polemarch && make rpm | ||
RUN yum install /tmp/polemarch/dist/*.rpm -y | ||
RUN cp -vf /tmp/polemarch/test_settings.ini /etc/polemarch/settings.ini | ||
|
||
|
||
# Run options | ||
ENV DJANGO_DEBUG=true | ||
EXPOSE 8080 | ||
|
||
ENTRYPOINT sudo -u polemarch /opt/polemarch/bin/uwsgi /opt/polemarch/lib/python2.7/site-packages/polemarch/web.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM git.vst.lan/vst/tests:tox | ||
MAINTAINER sergey.k@vstconsulting.net | ||
|
||
RUN mkdir /tmp/polemarch | ||
ADD . /tmp/polemarch/ | ||
RUN make rpm -C /tmp/polemarch/ | ||
RUN yum install /tmp/polemarch/dist/*.rpm -y | ||
RUN cp -vf /tmp/polemarch/test_settings.ini /etc/polemarch/settings.ini && \ | ||
sudo chown polemarch:polemarch /etc/polemarch/settings.ini && \ | ||
sudo -H -u polemarch /opt/polemarch/bin/pip install -r /tmp/polemarch/requirements-test.txt && \ | ||
cp -vf /tmp/polemarch/.coveragerc /home/polemarch/ | ||
|
||
|
||
# Run options | ||
ENV DJANGO_DEBUG=true | ||
|
||
ENTRYPOINT sudo -H -u polemarch /opt/polemarch/bin/polemarchctl test -v2 polemarch.main.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.