1
0
Fork 0
mirror of synced 2024-05-21 05:02:37 +12:00

Added env images

This commit is contained in:
Eldad Fux 2020-07-16 07:30:08 +03:00
parent 482ced2426
commit f38331f7a8
11 changed files with 71 additions and 11 deletions

View file

@ -4,31 +4,36 @@ return [
'node-14' => [
'name' => 'Node.js',
'version' => '14.5',
'image' => 'node:14.5-alpine',
'base' => 'node:14.5-alpine',
'image' => 'appwrite/env-node:14.5',
'logo' => 'node.png',
],
'php-7.4' => [
'name' => 'PHP',
'version' => '7.4',
'image' => 'php:7.4-cli-alpine',
'base' => 'php:7.4-cli-alpine',
'image' => 'appwrite/env-php:7.4',
'logo' => 'php.png',
],
'ruby-2.7' => [
'name' => 'Ruby',
'version' => '2.7',
'image' => 'ruby:2.7-alpine',
'base' => 'ruby:2.7-alpine',
'image' => 'appwrite/ruby-node:2.7',
'logo' => 'ruby.png',
],
'python-3.8' => [
'name' => 'Python',
'version' => '3.8',
'base' => 'python:3.8-alpine',
'image' => 'appwrite/env-python:3.8',
'logo' => 'python.png',
],
// 'dart-2.8' => [
// 'name' => 'Dart',
// 'version' => '2.8',
// 'image' => 'google/dart:2.8',
// 'base' => 'google/dart:2.8',
// 'image' => 'appwrite/env-dart:2.8',
// 'logo' => 'dart.png',
// ],
'python-3.8' => [
'name' => 'Python',
'version' => '3.8',
'image' => 'python:3.8-alpine',
'logo' => 'python.png',
],
];

View file

@ -111,7 +111,7 @@ class FunctionsV1
--memory=50m \
--memory-swap=50m \
--rm \
--name=appwrite-function- \
--name=appwrite-function-{$functionId} \
--volume $(pwd):/app \
--workdir /app \
--env APPWRITE_FUNCTION_ID={$functionId} \

View file

@ -0,0 +1,5 @@
# Appwrite Functions Environments
Docker based enviornments for Appwrite Functions. You can use this Docker images to locally tests your functions by executing them on your local desktop or server.
All the supported enviornments are based on Docker Alpine images.

View file

@ -0,0 +1,5 @@
FROM node:14.5-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar

View file

@ -0,0 +1,7 @@
echo 'Starting Node 14.5 build...'
docker build --tag appwrite/env-node:14.5 .
echo 'Pushing Node 14.5 build to registry...'
docker push appwrite/env-node:14.5

View file

@ -0,0 +1,5 @@
FROM php:7.4-cli-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar

View file

@ -0,0 +1,7 @@
echo 'Starting PHP 7.4 build...'
docker build --tag appwrite/env-php:7.4 .
echo 'Pushing PHP 7.4 build to registry...'
docker push appwrite/env-php:7.4

View file

@ -0,0 +1,7 @@
FROM python:3.8-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar
ENV PIP_TARGET=./.appwrites

View file

@ -0,0 +1,7 @@
echo 'Starting Python 3.8 build...'
docker build --tag appwrite/env-python:3.8 .
echo 'Pushing Python 3.8 build to registry...'
docker push appwrite/env-python:3.8

View file

@ -0,0 +1,5 @@
FROM ruby:2.7-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar

View file

@ -0,0 +1,7 @@
echo 'Starting Ruby 2.7 build...'
docker build --tag appwrite/env-ruby:2.7 .
echo 'Pushing Ruby 2.7 build to registry...'
docker push appwrite/env-ruby:2.7