Updated on 2023-06-25 GMT+08:00

Creating an Extension Dependency

Prepare a ZIP package to compile and start the extension process.

This package must contain a folder named extension that contains an .sh script file prefixed with extension for starting the extension process. The following is an example of the package's file structure:

extension -

​ extensionDemo.sh

​test.py

Download extension.zip to get the code.

The following table lists the paths for different languages in extensionDemo.sh.

Table 1 Paths for different languages

Language

Path

Java 8

/opt/function/runtime/java8/rtsp/jre/bin/java

Java 11

/opt/function/runtime/java11/rtsp/jre/bin/java

Node.js 6

/opt/function/runtime/nodejs6.10/rtsp/nodejs/bin/node

Node.js 8

/opt/function/runtime/nodejs8.10/rtsp/nodejs/bin/node

Node.js 10

/opt/function/runtime/nodejs10.16/rtsp/nodejs/bin/node

Node.js 12

/opt/function/runtime/nodejs12.13/rtsp/nodejs/bin/node

Node.js 14

/opt/function/runtime/nodejs14.18/rtsp/nodejs/bin/node

Python 2.7

/opt/function/runtime/python2.7/rtsp/python/bin/python

Python 3.6

/opt/function/runtime/python3.6/rtsp/python/bin/python3

Python 3.9

/opt/function/runtime/python3.9/rtsp/python/bin/python3

PHP 7.3

/opt/function/runtime/php7.3/rtsp/php/bin/php