1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Added a new node version

This commit is contained in:
Eldad Fux 2021-01-18 23:17:11 +02:00
parent bf2c8b4010
commit 464e5fb4b2
4 changed files with 29 additions and 1 deletions

View file

@ -3,7 +3,7 @@
* List of Appwrite Cloud Functions supported environments
*/
return [
'node-14' => [
'node-14.5' => [
'name' => 'Node.js',
'version' => '14.5',
'base' => 'node:14.5-alpine',
@ -11,6 +11,14 @@ return [
'build' => '/usr/src/code/docker/environments/node-14.5',
'logo' => 'node.png',
],
'node-15.6' => [
'name' => 'Node.js',
'version' => '15.6',
'base' => 'node:14.5-alpine',
'image' => 'appwrite/env-node-15.6:1.0.0',
'build' => '/usr/src/code/docker/environments/node-15.6',
'logo' => 'node.png',
],
'php-7.4' => [
'name' => 'PHP',
'version' => '7.4',

View file

@ -9,6 +9,9 @@ docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
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
echo 'Node 15.6...'
docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le -t appwrite/env-node-15.6:1.0.0 ./docker/environments/node-15.6/ --push
echo 'PHP 7.4...'
docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le -t appwrite/env-php-7.4:1.0.0 ./docker/environments/php-7.4/ --push

View file

@ -0,0 +1,9 @@
FROM node:15.6-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar
RUN mkdir /usr/local/src
WORKDIR /usr/local/src/

View file

@ -513,6 +513,14 @@ class FunctionsCustomServerTest extends Scope
'command' => 'node index.js',
'timeout' => 15,
],
[
'language' => 'Node.js',
'version' => '15.6',
'name' => 'node-15.6',
'code' => $functions.'/node.tar.gz',
'command' => 'node index.js',
'timeout' => 15,
],
[
'language' => 'Ruby',
'version' => '2.7',