Skip to content

Commit 8d21483

Browse files
authored
Merge pull request #86 from appwrite/feat-bash-support
Feat: Add bash support
2 parents 97b5d97 + 437cdbe commit 8d21483

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Runtimes/Runtimes.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(string $version = '')
4040
{
4141
$this->version = $version;
4242

43-
$node = new Runtime('node', 'Node.js', 'sh helpers/server.sh');
43+
$node = new Runtime('node', 'Node.js', 'bash helpers/server.sh');
4444
$node->addVersion('14.5', 'node:14.5.0-alpine3.12', 'openruntimes/node:'.$this->version.'-14.5', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); # Deprecated since April 30, 2023
4545
$node->addVersion('16.0', 'node:16.20.2-alpine3.18', 'openruntimes/node:'.$this->version.'-16.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); # Deprecated since September 11, 2023
4646
$node->addVersion('18.0', 'node:18.20.4-alpine3.20', 'openruntimes/node:'.$this->version.'-18.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
@@ -50,34 +50,34 @@ public function __construct(string $version = '')
5050
$node->addVersion('22', 'node:22.9.0-alpine3.20', 'openruntimes/node:'.$this->version.'-22', [System::X86, System::ARM64]);
5151
$this->runtimes['node'] = $node;
5252

53-
$php = new Runtime('php', 'PHP', 'sh helpers/server.sh');
53+
$php = new Runtime('php', 'PHP', 'bash helpers/server.sh');
5454
$php->addVersion('8.0', 'php:8.0.30-cli-alpine3.16', 'openruntimes/php:'.$this->version.'-8.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); # Deprecated since November 26, 2023
5555
$php->addVersion('8.1', 'php:8.1.30-cli-alpine3.20', 'openruntimes/php:'.$this->version.'-8.1', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
5656
$php->addVersion('8.2', 'php:8.2.24-cli-alpine3.20', 'openruntimes/php:'.$this->version.'-8.2', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
5757
$php->addVersion('8.3', 'php:8.3.12-cli-alpine3.20', 'openruntimes/php:'.$this->version.'-8.3', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
5858
$this->runtimes['php'] = $php;
5959

60-
$ruby = new Runtime('ruby', 'Ruby', 'sh helpers/server.sh');
60+
$ruby = new Runtime('ruby', 'Ruby', 'bash helpers/server.sh');
6161
$ruby->addVersion('3.0', 'ruby:3.0.7-alpine3.16', 'openruntimes/ruby:'.$this->version.'-3.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); # Deprecated since April 23, 2024
6262
$ruby->addVersion('3.1', 'ruby:3.1.6-alpine3.20', 'openruntimes/ruby:'.$this->version.'-3.1', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
6363
$ruby->addVersion('3.2', 'ruby:3.2.5-alpine3.20', 'openruntimes/ruby:'.$this->version.'-3.2', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
6464
$ruby->addVersion('3.3', 'ruby:3.3.5-alpine3.20', 'openruntimes/ruby:'.$this->version.'-3.3', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
6565
$this->runtimes['ruby'] = $ruby;
6666

67-
$python = new Runtime('python', 'Python', 'sh helpers/server.sh');
67+
$python = new Runtime('python', 'Python', 'bash helpers/server.sh');
6868
$python->addVersion('3.8', 'python:3.8.20-alpine3.20', 'openruntimes/python:'.$this->version.'-3.8', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); // Deprecated since October 7, 2024
6969
$python->addVersion('3.9', 'python:3.9.20-alpine3.20', 'openruntimes/python:'.$this->version.'-3.9', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
7070
$python->addVersion('3.10', 'python:3.10.15-alpine3.20', 'openruntimes/python:'.$this->version.'-3.10', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
7171
$python->addVersion('3.11', 'python:3.11.10-alpine3.20', 'openruntimes/python:'.$this->version.'-3.11', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
7272
$python->addVersion('3.12', 'python:3.12.6-alpine3.20', 'openruntimes/python:'.$this->version.'-3.12', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
7373
$this->runtimes['python'] = $python;
7474

75-
$pythonML = new Runtime('python-ml', 'Python (ML)', 'sh helpers/server.sh');
75+
$pythonML = new Runtime('python-ml', 'Python (ML)', 'bash helpers/server.sh');
7676
$pythonML->addVersion('3.11', 'python:3.11.10-bookworm', 'openruntimes/python-ml:'.$this->version.'-3.11', [System::X86, System::ARM64]);
7777
$pythonML->addVersion('3.12', 'python:3.12.6-bookworm', 'openruntimes/python-ml:'.$this->version.'-3.12', [System::X86, System::ARM64]);
7878
$this->runtimes['python-ml'] = $pythonML;
7979

80-
$deno = new Runtime('deno', 'Deno', 'sh helpers/server.sh');
80+
$deno = new Runtime('deno', 'Deno', 'bash helpers/server.sh');
8181
$deno->addVersion('1.21', 'denoland/deno:alpine-1.21.3', 'openruntimes/deno:'.$this->version.'-1.21', [System::X86], true);
8282
$deno->addVersion('1.24', 'denoland/deno:alpine-1.24.3', 'openruntimes/deno:'.$this->version.'-1.24', [System::X86], true);
8383
$deno->addVersion('1.35', 'denoland/deno:alpine-1.35.3', 'openruntimes/deno:'.$this->version.'-1.35', [System::X86], true);
@@ -86,7 +86,7 @@ public function __construct(string $version = '')
8686
$deno->addVersion('2.0', 'denoland/deno:alpine-2.0.0-rc.5', 'openruntimes/deno:'.$this->version.'-2.0', [System::X86, System::ARM64]);
8787
$this->runtimes['deno'] = $deno;
8888

89-
$dart = new Runtime('dart', 'Dart', 'sh helpers/server.sh');
89+
$dart = new Runtime('dart', 'Dart', 'bash helpers/server.sh');
9090
$dart->addVersion('2.15', 'dart:2.15.1', 'openruntimes/dart:'.$this->version.'-2.15', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true);
9191
$dart->addVersion('2.16', 'dart:2.16.2', 'openruntimes/dart:'.$this->version.'-2.16', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true);
9292
$dart->addVersion('2.17', 'dart:2.17.7', 'openruntimes/dart:'.$this->version.'-2.17', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true);
@@ -98,13 +98,13 @@ public function __construct(string $version = '')
9898
$dart->addVersion('3.5', 'dart:3.5.2', 'openruntimes/dart:'.$this->version.'-3.5', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
9999
$this->runtimes['dart'] = $dart;
100100

101-
$dotnet = new Runtime('dotnet', '.NET', 'sh helpers/server.sh');
101+
$dotnet = new Runtime('dotnet', '.NET', 'bash helpers/server.sh');
102102
$dotnet->addVersion('6.0', 'mcr.microsoft.com/dotnet/sdk:6.0.425-alpine3.19', 'openruntimes/dotnet:'.$this->version.'-6.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); // Deprecated since November 12, 2024
103103
$dotnet->addVersion('7.0', 'mcr.microsoft.com/dotnet/sdk:7.0.410-alpine3.19', 'openruntimes/dotnet:'.$this->version.'-7.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true); // Deprecated since May 14, 2024
104104
$dotnet->addVersion('8.0', 'mcr.microsoft.com/dotnet/sdk:8.0.402-alpine3.19', 'openruntimes/dotnet:'.$this->version.'-8.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
105105
$this->runtimes['dotnet'] = $dotnet;
106106

107-
$java = new Runtime('java', 'Java', 'sh helpers/server.sh');
107+
$java = new Runtime('java', 'Java', 'bash helpers/server.sh');
108108
$java->addVersion('8.0', 'eclipse-temurin:8-jdk-jammy', 'openruntimes/java:'.$this->version.'-8.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
109109
$java->addVersion('11.0', 'eclipse-temurin:11-jdk-jammy', 'openruntimes/java:'.$this->version.'-11.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
110110
$java->addVersion('17.0', 'eclipse-temurin:17-jdk-jammy', 'openruntimes/java:'.$this->version.'-17.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
@@ -113,39 +113,39 @@ public function __construct(string $version = '')
113113
$java->addVersion('22', 'eclipse-temurin:22-jdk-jammy', 'openruntimes/java:'.$this->version.'-22', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]); // Technically deprecated, but latest. Keeping active
114114
$this->runtimes['java'] = $java;
115115

116-
$swift = new Runtime('swift', 'Swift', 'sh helpers/server.sh');
116+
$swift = new Runtime('swift', 'Swift', 'bash helpers/server.sh');
117117
$swift->addVersion('5.5', 'swiftarm/swift:5.5.3-ubuntu-jammy', 'openruntimes/swift:'.$this->version.'-5.5', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true);
118118
$swift->addVersion('5.8', 'swiftarm/swift:5.8.1-ubuntu-22.04', 'openruntimes/swift:'.$this->version.'-5.8', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
119119
$swift->addVersion('5.9', 'swiftarm/swift:5.9.2-ubuntu-22.04', 'openruntimes/swift:'.$this->version.'-5.9', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
120120
$swift->addVersion('5.10', 'swiftarm/swift:5.10-ubuntu-22.04', 'openruntimes/swift:'.$this->version.'-5.10', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
121121
$this->runtimes['swift'] = $swift;
122122

123-
$kotlin = new Runtime('kotlin', 'Kotlin', 'sh helpers/server.sh');
123+
$kotlin = new Runtime('kotlin', 'Kotlin', 'bash helpers/server.sh');
124124
$kotlin->addVersion('1.6', 'eclipse-temurin:18-jdk-alpine', 'openruntimes/kotlin:'.$this->version.'-1.6', [System::X86, System::ARM64, System::ARMV7, System::ARMV8], true);
125125
$kotlin->addVersion('1.8', 'eclipse-temurin:19-jdk-alpine', 'openruntimes/kotlin:'.$this->version.'-1.8', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
126126
$kotlin->addVersion('1.9', 'eclipse-temurin:19-jdk-alpine', 'openruntimes/kotlin:'.$this->version.'-1.9', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
127127
$kotlin->addVersion('2.0', 'eclipse-temurin:22-jdk-alpine', 'openruntimes/kotlin:'.$this->version.'-2.0', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
128128
$this->runtimes['kotlin'] = $kotlin;
129129

130-
$cpp = new Runtime('cpp', 'C++', 'sh helpers/server.sh');
130+
$cpp = new Runtime('cpp', 'C++', 'bash helpers/server.sh');
131131
$cpp->addVersion('17', 'alpine:3.20.2', 'openruntimes/cpp:'.$this->version.'-17', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
132132
$cpp->addVersion('20', 'alpine:3.20.2', 'openruntimes/cpp:'.$this->version.'-20', [System::X86, System::ARM64, System::ARMV7, System::ARMV8]);
133133
$this->runtimes['cpp'] = $cpp;
134134

135-
$bun = new Runtime('bun', 'Bun', 'sh helpers/server.sh');
135+
$bun = new Runtime('bun', 'Bun', 'bash helpers/server.sh');
136136
$bun->addVersion('1.0', 'oven/bun:1.0.36-alpine', 'openruntimes/bun:'.$this->version.'-1.0', [System::X86, System::ARM64]);
137137
$bun->addVersion('1.1', 'oven/bun:1.1.29-alpine', 'openruntimes/bun:'.$this->version.'-1.1', [System::X86, System::ARM64]);
138138
$this->runtimes['bun'] = $bun;
139139

140-
$go = new Runtime('go', 'Go', 'sh helpers/server.sh');
140+
$go = new Runtime('go', 'Go', 'bash helpers/server.sh');
141141
$go->addVersion('1.23', 'golang:1.23.1-alpine3.20', 'openruntimes/go:'.$this->version.'-1.23', [System::X86, System::ARM64]);
142142
$this->runtimes['go'] = $go;
143143

144-
$static = new Runtime('static', 'Static', 'sh helpers/server.sh');
144+
$static = new Runtime('static', 'Static', 'bash helpers/server.sh');
145145
$static->addVersion('1', 'joseluisq/static-web-server:2.33-alpine', 'openruntimes/static:'.$this->version.'-1', [System::X86, System::ARM64]);
146146
$this->runtimes['static'] = $static;
147147

148-
$flutter = new Runtime('flutter', 'Flutter', 'sh helpers/server.sh');
148+
$flutter = new Runtime('flutter', 'Flutter', 'bash helpers/server.sh');
149149
$flutter->addVersion('3.24', 'ghcr.io/cirruslabs/flutter:3.24.5', 'openruntimes/flutter:'.$this->version.'-3.24', [System::X86, System::ARM64]);
150150
$flutter->addVersion('3.27', 'ghcr.io/cirruslabs/flutter:3.27.3', 'openruntimes/flutter:'.$this->version.'-3.27', [System::X86, System::ARM64]);
151151
$flutter->addVersion('3.29', 'ghcr.io/cirruslabs/flutter:3.29.1', 'openruntimes/flutter:'.$this->version.'-3.29', [System::X86, System::ARM64]);

0 commit comments

Comments
 (0)