-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bugfix/validation
- Loading branch information
Showing
16 changed files
with
607 additions
and
507 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,21 @@ | ||
name: Silverback Lite CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-16.04 | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.6, 3.7] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run make liteci | ||
run: | | ||
sudo apt-get install libmysqlclient-dev libpq-dev python-dev | ||
make liteci |
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
FROM python:3.7 | ||
|
||
FROM python:3.7 as silverback-stage-1 | ||
MAINTAINER [email protected] | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
ARG VERSION=master | ||
|
||
RUN mkdir /app | ||
|
||
COPY . /app | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
RUN echo "yes" | python manage.py collectstatic | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app.wsgi"] | ||
FROM silverback-stage-1 as silverback-stage-2 | ||
WORKDIR /app | ||
EXPOSE 8000 | ||
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app.wsgi"] |
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,22 @@ | ||
""" | ||
Constants Module | ||
""" | ||
|
||
|
||
class Constants(): | ||
|
||
INCIDENT_UPDATE_STATUSES = { | ||
"investigating": "Investigating", | ||
"identified": "Identified", | ||
"monitoring": "Monitoring", | ||
"update": "Update", | ||
"resolved": "Resolved", | ||
} | ||
|
||
COMPONENT_STATUSES = { | ||
"operational": "Operational", | ||
"degraded_performance": "Degraded Performance", | ||
"partial_outage": "Partial Outage", | ||
"major_outage": "Major Outage", | ||
"maintenance": "Maintenance", | ||
} |
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
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
Oops, something went wrong.