Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions nodejs-functions/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ provider:
name: azure
region: West US 2
runtime: nodejs12
# linux is the only operating system available for python
os: linux
# prefix of generated resource name
prefix: time-tracker
environment:
ENDPOINT: ${file(keys.yml):ENDPOINT}
Expand Down
Binary file removed python-functions/.serverless/python-functions.zip
Binary file not shown.
20 changes: 20 additions & 0 deletions python-functions/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SECRETS=keys.yml
help: Makefile
@sed -n 's/^## //p' $<

## npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
install-dependencies-nodejs:
cd src/handlers/automatic-clock-outs ; pwd ; $(MAKE) install

deploy:
sls deploy

sops-encrypt:
sops -e -i ${SECRETS}

sops-decrypt:
sops -d -i ${SECRETS}

install-serverless-plugins:
serverless plugin install --name serverless-azure-functions
serverless plugin install --name serverless-offline-python
1 change: 1 addition & 0 deletions python-functions/keys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COSMOS_DATABASE_URI: AccountEndpoint=https://time-tracker-db.documents.azure.com:443/;AccountKey=6lyRD8ma0VQjcMbeSMFOTDGwNDptcEGfngp3c9DStNAMCNh2MRbkNWmRinoNvuB6aH51EMEkgeP5WfW3VZiV9g==;
Loading