-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* track playbook (#31) this assumes the url is /playbook/joplin/..... and will record the playbook in a field called playbook, that is tracked as part of influxdb and can be shown on grafana. * fix build * Sync user (#33) * update packages * add function to sync user+groups * add user to datawolf fix requirements file cleanup dockerfile * remove output --------- Co-authored-by: Yong Wook Kim <[email protected]>
- Loading branch information
Showing
6 changed files
with
151 additions
and
49 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
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 |
---|---|---|
@@ -1,29 +1,14 @@ | ||
FROM alpine:3.7 | ||
FROM python:3.7-alpine | ||
|
||
MAINTAINER Incore <[email protected]> | ||
LABEL PROJECT_REPO_URL = "" \ | ||
PROJECT_REPO_BROWSER_URL = "" \ | ||
DESCRIPTION = ")" | ||
|
||
RUN apk add --no-cache \ | ||
gcc \ | ||
g++ \ | ||
libffi-dev \ | ||
make \ | ||
python3 \ | ||
python3-dev \ | ||
openssl-dev && \ | ||
python3 -m ensurepip && \ | ||
rm -r /usr/lib/python*/ensurepip && \ | ||
pip3 install --upgrade pip setuptools && \ | ||
if [[ ! -e /usr/bin/pip ]]; then ln -s pip3 /usr/bin/pip; fi && \ | ||
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ | ||
rm -r /root/.cache | ||
DESCRIPTION = ")" | ||
|
||
WORKDIR /srv | ||
|
||
COPY incore_auth/requirements.txt incore_auth/ | ||
RUN pip install -Ur incore_auth/requirements.txt | ||
RUN pip3 install -Ur incore_auth/requirements.txt | ||
|
||
COPY incore_auth incore_auth | ||
|
||
|
@@ -32,19 +17,11 @@ WORKDIR /srv/incore_auth | |
ENV FLASK_APP="app.py" \ | ||
KEYCLOAK_PUBLIC_KEY="" \ | ||
KEYCLOAK_AUDIENCE="" \ | ||
DATAWOLF_URL="http://incore-datawolf:8888/datawolf" \ | ||
MONGODB_URI="" \ | ||
INFLUXDB_V2_URL="" \ | ||
INFLUXDB_V2_ORG="" \ | ||
INFLUXDB_V2_TOKEN="" \ | ||
INFLUXDB_V2_FILE_LOCATION="data/IP2LOCATION-LITE-DB5.BIN" | ||
|
||
#CMD ["python", "-m", "flask", "run", "--host", "0.0.0.0"] | ||
CMD ["gunicorn", "app:app", "--config", "/srv/incore_auth/gunicorn.config.py"] | ||
|
||
#ENTRYPOINT ["gunicorn", \ | ||
# "--access-logfile=-", \ | ||
# "--log-level=info", \ | ||
# "--workers=3", \ | ||
# "--bind=0.0.0.0:5000", \ | ||
# "incore_auth.app:app" \ | ||
# ] | ||
|
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
bcrypt==3.1.0 | ||
flask==0.12.2 | ||
gunicorn==19.7.1 | ||
gevent==1.4.0 | ||
python-jose==3.1.0 | ||
influxdb-client==1.14.0 | ||
IP2Location==8.5.1 | ||
geohash2==1.1 | ||
python-dotenv==0.10.3 | ||
bcrypt==4.* | ||
flask==2.* | ||
gunicorn==20.* | ||
gevent==22.* | ||
python-jose==3.* | ||
influxdb-client==1.* | ||
IP2Location==8.* | ||
geohash2==1.* | ||
python-dotenv==0.* | ||
pymongo==4.* | ||
cachetools==4.* |