From 9cf5572481d305b84bf31dad3f9071a282c7e3d4 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 18 Jan 2021 23:05:33 +0200 Subject: [PATCH] Added Deno 1.6 --- app/config/environments.php | 8 ++++++++ docker/environments/build.sh | 3 +++ docker/environments/deno-1.6/Dockerfile | 11 +++++++++++ .../Services/Functions/FunctionsCustomServerTest.php | 8 ++++++++ 4 files changed, 30 insertions(+) create mode 100644 docker/environments/deno-1.6/Dockerfile diff --git a/app/config/environments.php b/app/config/environments.php index 228e7e460..7cbc6ba0b 100644 --- a/app/config/environments.php +++ b/app/config/environments.php @@ -59,6 +59,14 @@ return [ 'build' => '/usr/src/code/docker/environments/deno-1.5', 'logo' => 'deno.png', ], + 'deno-1.6' => [ + 'name' => 'Deno', + 'version' => '1.6', + 'base' => 'hayd/deno:alpine-1.6.0', + 'image' => 'appwrite/env-deno-1.6:1.0.0', + 'build' => '/usr/src/code/docker/environments/deno-1.6', + 'logo' => 'deno.png', + ], // 'dart-2.8' => [ // 'name' => 'Dart', // 'version' => '2.8', diff --git a/docker/environments/build.sh b/docker/environments/build.sh index 0dc07947a..a4eb5129a 100644 --- a/docker/environments/build.sh +++ b/docker/environments/build.sh @@ -6,6 +6,9 @@ docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 echo 'Deno 1.5...' docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le -t appwrite/env-deno-1.5:1.0.0 ./docker/environments/deno-1.5/ --push +echo 'Deno 1.6...' +docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le -t appwrite/env-deno-1.6:1.0.0 ./docker/environments/deno-1.6/ --push + echo 'Node 14.5...' docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le -t appwrite/env-node-14.5:1.0.0 ./docker/environments/node-14.5/ --push diff --git a/docker/environments/deno-1.6/Dockerfile b/docker/environments/deno-1.6/Dockerfile new file mode 100644 index 000000000..886c4287f --- /dev/null +++ b/docker/environments/deno-1.6/Dockerfile @@ -0,0 +1,11 @@ +FROM hayd/deno:alpine-1.6.2 + +LABEL maintainer="team@appwrite.io" + +RUN apk add tar + +RUN mkdir /usr/local/src + +WORKDIR /usr/local/src/ + +ENV DENO_DIR=/usr/local/src/.appwrite \ No newline at end of file diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 377d728e1..87a4021f3 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -529,6 +529,14 @@ class FunctionsCustomServerTest extends Scope 'command' => 'deno run --allow-env index.ts', 'timeout' => 15, ], + [ + 'language' => 'Deno', + 'version' => '1.6', + 'name' => 'deno-1.6', + 'code' => $functions.'/deno.tar.gz', + 'command' => 'deno run --allow-env index.ts', + 'timeout' => 15, + ], ]; foreach ($envs as $key => $env) {