File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed
security/security-design/shared-assets/fn-datasafe-dbaudit-to-oci-logging/files/terraform
function/oci-datasafe-audit-to-logging Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
schema_version : 20180708
2
2
name : oci-datasafe-audit-to-logging
3
3
version : 0.0.1
4
- runtime : python
4
+ runtime : docker
5
5
build_image : fnproject/python:3.9-dev
6
6
run_image : fnproject/python:3.9
7
7
entrypoint : /python/bin/fdk /function/func.py handler
Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ resource "null_resource" "functionapp_push2ocir" {
22
22
working_dir = " ${ path . module } /${ local . fn_working_dir } "
23
23
}
24
24
25
- # provisioner "local-exec" {
26
- # command = "fn build --verbose"
27
- # working_dir ="${path.module}/${local.fn_working_dir}"
28
- # }
25
+ provisioner "local-exec" {
26
+ # command = "fn build --verbose"
27
+ command = " docker buildx build --push --platform linux/arm64/v8,linux/amd64"
28
+ working_dir = " ${ path . module } /${ local . fn_working_dir } "
29
+ }
29
30
30
- # provisioner "local-exec" {
31
- # command = "image=$(docker images | grep ${var.functionname} | awk -F ' ' '{print $3}') ; docker tag $image ${local.fn_image}"
32
- # working_dir = "${path.module}/${local.fn_working_dir}"
33
- # }
31
+ provisioner "local-exec" {
32
+ command = " image=$(docker images | grep ${ var . functionname } | awk -F ' ' '{print $3}') ; docker tag $image ${ local . fn_image } "
33
+ working_dir = " ${ path . module } /${ local . fn_working_dir } "
34
+ }
34
35
35
36
provisioner "local-exec" {
36
- # command = "docker push ${local.fn_image}"
37
- command = " fn -v deploy --app ${ var . functionname } "
37
+ command = " docker manifestpush ${ local . fn_image } "
38
38
working_dir = " ${ path . module } /${ local . fn_working_dir } "
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -28,6 +28,5 @@ locals {
28
28
alarm_displayname = " ${ var . alarmnameprefix } ${ local . resource_nc } "
29
29
fn_working_dir = " function/${ var . functionname } "
30
30
fn_repository = " ${ local . ocir_docker_repository } /${ local . namespace } /${ oci_artifacts_container_repository . fn_container_repository . display_name } "
31
- fn_image = " ${ local . fn_repository } :0.0.1"
32
- fn_image_app = " ${ oci_artifacts_container_repository . fn_container_repository . display_name } :0.0.1"
31
+ fn_image = " ${ local . fn_repository } :0.0.1-SNAPSHOT-X86-ARM"
33
32
}
You can’t perform that action at this time.
0 commit comments