From ca81b6a53575c9f87c4cd54e30cae6e9cde2797d Mon Sep 17 00:00:00 2001 From: "Thomas Volk (Inspiron-7437)" Date: Thu, 6 Jun 2019 19:57:35 +0200 Subject: [PATCH 1/3] all out of date dependencies --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4b5b04f..f99fa84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ COPY runtime/ /work/runtime/ RUN cd /work/runtime && \ mix local.hex --force && \ + mix deps.get && \ mix test && \ MIX_ENV=prod mix package && \ rm -r _build/prod/lib/*/.mix _build/prod/lib/runtime/consolidated && \ From 18ecac66e7592318c8fac284c6cfac2adc1ca443 Mon Sep 17 00:00:00 2001 From: "Thomas Volk (Inspiron-7437)" Date: Thu, 6 Jun 2019 19:58:15 +0200 Subject: [PATCH 2/3] run python 2 explicitly --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b497441..0ba6839 100644 --- a/Makefile +++ b/Makefile @@ -53,12 +53,12 @@ aws-check: touch .cfn-artifact-bucket .s3-upload-runtime-$(REV): .cfn-artifact-bucket $(RUNTIME_ZIP) - ARTIFACT_STORE=$(shell aws cloudformation list-exports | python -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ + ARTIFACT_STORE=$(shell aws cloudformation list-exports | python2 -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ aws s3 cp $(RUNTIME_ZIP) s3://$${ARTIFACT_STORE}/$(S3_RUNTIME_ZIP) && \ touch .s3-upload-runtime-$(REV) .s3-upload-example-$(REV): .cfn-artifact-bucket $(EXAMPLE_ZIP) - ARTIFACT_STORE=$(shell aws cloudformation list-exports | python -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ + ARTIFACT_STORE=$(shell aws cloudformation list-exports | python2 -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ aws s3 cp $(EXAMPLE_ZIP) s3://$${ARTIFACT_STORE}/$(S3_EXAMPLE_ZIP) && \ touch .s3-upload-example-$(REV) From 4a8963edc755e658c413941b060230efc9e79551 Mon Sep 17 00:00:00 2001 From: "Thomas Volk (Inspiron-7437)" Date: Sun, 9 Jun 2019 17:24:22 +0200 Subject: [PATCH 3/3] Makefile is now python2/3 compatible --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0ba6839..8caf3a6 100644 --- a/Makefile +++ b/Makefile @@ -53,12 +53,12 @@ aws-check: touch .cfn-artifact-bucket .s3-upload-runtime-$(REV): .cfn-artifact-bucket $(RUNTIME_ZIP) - ARTIFACT_STORE=$(shell aws cloudformation list-exports | python2 -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ + ARTIFACT_STORE=$(shell aws cloudformation list-exports | python -c "import sys, json; print(list(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports']))[0]['Value'])") && \ aws s3 cp $(RUNTIME_ZIP) s3://$${ARTIFACT_STORE}/$(S3_RUNTIME_ZIP) && \ touch .s3-upload-runtime-$(REV) .s3-upload-example-$(REV): .cfn-artifact-bucket $(EXAMPLE_ZIP) - ARTIFACT_STORE=$(shell aws cloudformation list-exports | python2 -c "import sys, json; print(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports'])[0]['Value'])") && \ + ARTIFACT_STORE=$(shell aws cloudformation list-exports | python -c "import sys, json; print(list(filter(lambda e: e['Name'] == 'artifact-store', json.load(sys.stdin)['Exports']))[0]['Value'])") && \ aws s3 cp $(EXAMPLE_ZIP) s3://$${ARTIFACT_STORE}/$(S3_EXAMPLE_ZIP) && \ touch .s3-upload-example-$(REV)