1
0
Fork 0
mirror of synced 2024-06-28 11:10:46 +12:00

Merge pull request #836 from appwrite/feat-new-node-version

Feat new node version
This commit is contained in:
Eldad A. Fux 2021-01-19 16:32:36 +02:00 committed by GitHub
commit 5aa062ec22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 4 deletions

View file

@ -42,7 +42,7 @@ script:
deploy:
- provider: script
edge: true
script: ./deploy.sh
script: ./.travis-ci/deploy.sh
on:
repo: appwrite/appwrite
branch: deploy

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.5' => [
'name' => 'Node.js',
'version' => '15.5',
'base' => 'node:15.5-alpine',
'image' => 'appwrite/env-node-15.5:1.0.0',
'build' => '/usr/src/code/docker/environments/node-15.5',
'logo' => 'node.png',
],
'php-7.4' => [
'name' => 'PHP',
'version' => '7.4',

View file

@ -34,7 +34,7 @@ Co\run(function() use ($environments) { // Warmup: make sure images are ready t
$stdout = '';
$stderr = '';
Console::info('Warming up '.$environment['name'].' environment...');
Console::info('Warming up '.$environment['name'].' '.$environment['version'].' environment...');
Console::execute('docker pull '.$environment['image'], '', $stdout, $stderr);

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.5...'
docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le -t appwrite/env-node-15.5:1.0.0 ./docker/environments/node-15.5/ --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.5-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar
RUN mkdir /usr/local/src
WORKDIR /usr/local/src/

View file

@ -508,7 +508,15 @@ class FunctionsCustomServerTest extends Scope
[
'language' => 'Node.js',
'version' => '14.5',
'name' => 'node-14',
'name' => 'node-14.5',
'code' => $functions.'/node.tar.gz',
'command' => 'node index.js',
'timeout' => 15,
],
[
'language' => 'Node.js',
'version' => '15.5',
'name' => 'node-15.5',
'code' => $functions.'/node.tar.gz',
'command' => 'node index.js',
'timeout' => 15,