- You need to replace
ADMIN_EMAILvariable fromdocker-compose.ymlwith your email. Email must be added into Google Cloud Console. - Any new user must be added as Test User into Google Cloud Console. Instruction
- You need to replace
INDIVIDUAL_ACHIEVEMENTS_FOLDER_ID,PORTFOLIO_FOLDER_ID,COMMON_FOLDER_ID,PORTFOLIO_FORM_SHEET_ID,PORTFOLIO_FORM_SHEET_LIST_NAME,PORTFOLIO_DOC_TEMPLATE_IDfromscripts/googler/Google.pywith your values.INDIVIDUAL_ACHIEVEMENTS_FOLDER_ID- folder which stores users participating in second wave competition.PORTFOLIO_FOLDER_ID- folder which stores users participating in first wave competition.COMMON_FOLDER_ID- common folder containingINDIVIDUAL_ACHIEVEMENTS_FOLDER_IDиPORTFOLIO_FOLDER_ID. For use in backup script.PORTFOLIO_FORM_SHEET_ID- sheet containing responses from apply form.PORTFOLIO_FORM_SHEET_LIST_NAME- specific table from previous sheet.PORTFOLIO_DOC_TEMPLATE_ID- template for default form generation.
- You need to replace
scripts/googler/credentials.jsonwith yours obtained from Google Cloud Console. Instruction - You need to generate tokens for accessing API. It could be done by running
__main__fromscripts/googler/Google.py.
- Go to
https://console.cloud.google.com/apis/credentials/consent?project=<PROJECT_NAME>
- Click
+ ADD USERS
- Type an email and click
SAVE
- Go to
https://console.cloud.google.com/apis/credentials?project=<PROJECT_NAME>
- Click
Create credentials->OAuth client ID. - Choose
Web applicationasApplication type. - Type some name and add
http://localhosttoAuthorized redirect URIsfield. - Click
CREATE.
- Download this JSON, put into
scripts/googler, rename tocredentials.json.
In boot.sh you can choose one of available profiles:
prod- setting up services with admin profiletest_data- the same asprodbut with pre-created data
We need the jar file of the application. It could be done with gradle build.
After put with Dockerfile, docker-compose.yml, boot.sh in the same directory.
Then we can start docker containers with docker-compose up --build.