-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-158]: Added Docker files for Flask, minor tweaks (#19)
* [SDK-224]: Changed Django version to be 1.11 to ensure Python 2.7 compatibility * [SDK-158]: Added examples to .env files, so that it was clearer that the identifiers shouldn't be enclosed with quotes (this was fine when running regularly, but was causing the docker build to pass them with the quotes) * [SDK-158]: Renamed all instances of YOTI_FULL_KEY_FILE_PATH variable to YOTI_KEY_FILE_PATH, to avoid any potential confusion * [SDK-158]: Added docker files for Django example application * [SDK-224]: Updated Flask example KEY_FILE_PATH to be consistent with Django one, fixed Django tests, updated Flask test instructions * [SDK-224]: Minor README tweaks * [SDK-224]: Corrected indentation * [SDK-158]: Excluded .pem files in Example folders from being committed, since they now are required to reside in these folders when building with Docker * [SDK-158]: Minor changes to Dockerfiles and README after PR comments
- Loading branch information
Showing
18 changed files
with
67 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
YOTI_APPLICATION_ID=yourApplicationId | ||
YOTI_CLIENT_SDK_ID=yourClientSdkId | ||
YOTI_KEY_FILE_PATH=yourKeyFilePath |
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,14 @@ | ||
FROM python:3 | ||
ARG YOTI_APPLICATION_ID | ||
ARG YOTI_CLIENT_SDK_ID | ||
ARG YOTI_KEY_FILE_PATH | ||
RUN if [ "$YOTI_APPLICATION_ID" = "yourApplicationId" ] ; then echo YOTI_APPLICATION_ID not set; exit 1; else echo YOTI_APPLICATION_ID is $YOTI_APPLICATION_ID ; fi | ||
RUN if [ "$YOTI_CLIENT_SDK_ID" = "yourClientSdkId" ] ; then echo YOTI_CLIENT_SDK_ID not set; exit 1; else echo YOTI_CLIENT_SDK_ID is $YOTI_CLIENT_SDK_ID ; fi | ||
RUN if [ "$YOTI_KEY_FILE_PATH" = "yourKeyFilePath" ] ; then echo YOTI_KEY_FILE_PATH not set; exit 1; else echo YOTI_KEY_FILE_PATH is $YOTI_KEY_FILE_PATH ; fi | ||
ADD . /code | ||
WORKDIR /code | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
ENV YOTI_APPLICATION_ID $YOTI_APPLICATION_ID | ||
ENV YOTI_CLIENT_SDK_ID $YOTI_CLIENT_SDK_ID | ||
ENV YOTI_KEY_FILE_PATH $YOTI_KEY_FILE_PATH | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:5000"] |
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,12 @@ | ||
version: '3.4' | ||
services: | ||
web: | ||
build: | ||
context: ./ | ||
args: | ||
YOTI_APPLICATION_ID: "${YOTI_APPLICATION_ID}" | ||
YOTI_CLIENT_SDK_ID: "${YOTI_CLIENT_SDK_ID}" | ||
YOTI_KEY_FILE_PATH: "${YOTI_KEY_FILE_PATH}" | ||
ports: | ||
- "5000:5000" | ||
restart: always |
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,3 @@ | ||
Django==1.11 | ||
yoti | ||
python-dotenv>=0.7.1 |
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
YOTI_APPLICATION_ID= | ||
YOTI_CLIENT_SDK_ID= | ||
YOTI_KEY_FILE_PATH= | ||
YOTI_APPLICATION_ID=yourApplicationId | ||
YOTI_CLIENT_SDK_ID=yourClientSdkId | ||
YOTI_KEY_FILE_PATH=yourKeyFilePath |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
click==6.6 | ||
cryptography==1.5.2 | ||
Django==1.10.2 | ||
Django==1.11 | ||
Flask==0.11.1 | ||
itsdangerous==0.24 | ||
Jinja2==2.8 | ||
|
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