1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Added a Ruby env

This commit is contained in:
Eldad Fux 2021-01-19 07:27:00 +02:00
parent bf2c8b4010
commit 67fb7f0e2f
4 changed files with 31 additions and 0 deletions

View file

@ -35,6 +35,14 @@ return [
'build' => '/usr/src/code/docker/environments/ruby-2.7',
'logo' => 'ruby.png',
],
'ruby-3.0' => [
'name' => 'Ruby',
'version' => '3.0',
'base' => 'ruby:3.0-alpine',
'image' => 'appwrite/env-ruby-3.0:1.0.0',
'build' => '/usr/src/code/docker/environments/ruby-3.0',
'logo' => 'ruby.png',
],
'python-3.8' => [
'name' => 'Python',
'version' => '3.8',

View file

@ -20,3 +20,6 @@ docker buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
echo 'Ruby 2.7...'
docker buildx build --platform linux/amd64,linux/arm64,linux/386,linux/ppc64le -t appwrite/env-ruby-2.7:1.0.2 ./docker/environments/ruby-2.7/ --push
echo 'Ruby 3.0...'
docker buildx build --platform linux/amd64,linux/arm64,linux/386,linux/ppc64le -t appwrite/env-ruby-3.0:1.0.0 ./docker/environments/ruby-3.0/ --push

View file

@ -0,0 +1,12 @@
FROM ruby:3.0-alpine
LABEL maintainer="team@appwrite.io"
RUN apk add tar
RUN mkdir /usr/local/src
WORKDIR /usr/local/src/
ENV GEM_PATH=/usr/local/src/.appwrite
ENV GEM_SPEC_CACHE=/usr/local/src/.appwrite/specs

View file

@ -521,6 +521,14 @@ class FunctionsCustomServerTest extends Scope
'command' => 'ruby app.rb',
'timeout' => 15,
],
[
'language' => 'Ruby',
'version' => '3.0',
'name' => 'ruby-3.0',
'code' => $functions.'/ruby.tar.gz',
'command' => 'ruby app.rb',
'timeout' => 15,
],
[
'language' => 'Deno',
'version' => '1.5',