diff --git a/app/config/environments.php b/app/config/environments.php index 8e2efac098..bd89afb9a4 100644 --- a/app/config/environments.php +++ b/app/config/environments.php @@ -67,6 +67,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 a1ce4fa19c..a60cd5b3e8 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 0000000000..886c4287fc --- /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 10757e75cc..0c7ecc555d 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -537,6 +537,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) {