Skip to content

Commit 0bdb17a

Browse files
authored
Merge pull request #58 from ioet/documentation
Update Functions
2 parents 39f73e5 + 6472a78 commit 0bdb17a

File tree

17 files changed

+1402
-149
lines changed

17 files changed

+1402
-149
lines changed

nodejs-functions/serverless.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ provider:
55
name: azure
66
region: West US 2
77
runtime: nodejs12
8-
# linux is the only operating system available for python
98
os: linux
10-
# prefix of generated resource name
119
prefix: time-tracker
1210
environment:
1311
ENDPOINT: ${file(keys.yml):ENDPOINT}
-4.91 KB
Binary file not shown.

python-functions/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
SECRETS=keys.yml
2+
help: Makefile
3+
@sed -n 's/^## //p' $<
4+
5+
## npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
6+
install-dependencies-nodejs:
7+
cd src/handlers/automatic-clock-outs ; pwd ; $(MAKE) install
8+
9+
deploy:
10+
sls deploy
11+
12+
sops-encrypt:
13+
sops -e -i ${SECRETS}
14+
15+
sops-decrypt:
16+
sops -d -i ${SECRETS}
17+
18+
install-serverless-plugins:
19+
serverless plugin install --name serverless-azure-functions
20+
serverless plugin install --name serverless-offline-python

python-functions/keys.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COSMOS_DATABASE_URI: AccountEndpoint=https://time-tracker-db.documents.azure.com:443/;AccountKey=6lyRD8ma0VQjcMbeSMFOTDGwNDptcEGfngp3c9DStNAMCNh2MRbkNWmRinoNvuB6aH51EMEkgeP5WfW3VZiV9g==;

0 commit comments

Comments
 (0)