Skip to content

Commit 54631e7

Browse files
committed
Resolve issue in function deployement
1 parent 55bffeb commit 54631e7

File tree

2 files changed

+5
-2
lines changed
  • security/security-design/shared-assets/fn-datasafe-dbaudit-to-oci-logging/files/terraform

2 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
schema_version: 20180708
22
name: oci-datasafe-audit-to-logging
33
version: 0.0.1
4-
runtime: python
4+
runtime: docker
5+
build_image: fnproject/python:3.9-dev
6+
run_image: fnproject/python:3.9
57
entrypoint: /python/bin/fdk /function/func.py handler
68
memory: 1024
79
timeout: 300

security/security-design/shared-assets/fn-datasafe-dbaudit-to-oci-logging/files/terraform/function_prep.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ resource "null_resource" "functionapp_push2ocir" {
3333
}
3434

3535
provisioner "local-exec" {
36-
command = "docker push ${local.fn_image}"
36+
# command = "docker push ${local.fn_image}"
37+
command = "fn -v deploy --app ${local.fn_image}"
3738
working_dir = "${path.module}/${local.fn_working_dir}"
3839
}
3940

0 commit comments

Comments
 (0)