@hybridless/hybridless 0.0.84-alpha16 → 0.0.84-alpha19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridless/hybridless",
3
- "version": "0.0.84-alpha16",
3
+ "version": "0.0.84-alpha19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/core": "^7.17.7",
21
- "@hybridless/serverless-ecs-plugin": "0.0.25",
21
+ "@hybridless/serverless-ecs-plugin": "0.0.26",
22
22
  "babel-loader": "^8.2.3",
23
23
  "bluebird": "^3.7.2",
24
24
  "dockerode": "^3.3.1",
@@ -10,4 +10,4 @@ WORKDIR /usr/src/app
10
10
  RUN cd /usr/src/hybridless-runtime/ && npm i -S @hybridless/runtime-nodejs-httpd@latest
11
11
 
12
12
  # Run the specified command within the container.
13
- ENTRYPOINT node ../hybridless-runtime/proxy.js
13
+ ENTRYPOINT ["node", "../hybridless-runtime/proxy.js"]
@@ -10,4 +10,4 @@ WORKDIR /usr/src/app
10
10
  RUN cd /usr/src/hybridless-runtime/ && npm i -S @hybridless/runtime-nodejs-httpd@latest
11
11
 
12
12
  # Run the specified command within the container.
13
- ENTRYPOINT node ../hybridless-runtime/proxy.js
13
+ ENTRYPOINT ["node", "../hybridless-runtime/proxy.js"]
@@ -10,4 +10,4 @@ WORKDIR /usr/src/app
10
10
  RUN cd /usr/src/hybridless-runtime/ && npm i -S @hybridless/runtime-nodejs-httpd@latest
11
11
 
12
12
  # Run the specified command within the container.
13
- ENTRYPOINT node ../hybridless-runtime/proxy.js
13
+ ENTRYPOINT ["node", "../hybridless-runtime/proxy.js"]
@@ -8,6 +8,7 @@ process.on('SIGINT', function() {
8
8
  try {
9
9
  //Get inputs
10
10
  let input = {};
11
+ console.debug(process.argv);
11
12
  try { input = JSON.parse(process.argv[2]); }
12
13
  catch (e) { console.log('[Hybridless Runtime] - Error while decoding inputEvent parameter!', e); }
13
14
 
@@ -19,7 +20,7 @@ process.on('SIGINT', function() {
19
20
  const resp = await lambda.invoke();
20
21
 
21
22
  //Return
22
- console.log(resp);
23
+ console.debug(resp);
23
24
  if (resp.getCode && resp.getCode() == 200) process.exit(0);
24
25
  else process.exit(1);
25
26
  } catch (e) {
@@ -5,4 +5,4 @@ COPY target/classes ${LAMBDA_TASK_ROOT}
5
5
  COPY target/dependency/* ${LAMBDA_TASK_ROOT}/lib/
6
6
 
7
7
  #
8
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"
8
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"]
@@ -5,4 +5,4 @@ COPY target/classes ${LAMBDA_TASK_ROOT}
5
5
  COPY target/dependency/* ${LAMBDA_TASK_ROOT}/lib/
6
6
 
7
7
  #
8
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"
8
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"]
@@ -5,4 +5,4 @@ COPY target/classes ${LAMBDA_TASK_ROOT}
5
5
  COPY target/dependency/* ${LAMBDA_TASK_ROOT}/lib/
6
6
 
7
7
  #
8
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"
8
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT::${ENTRYPOINT_FUNC:-handleRequest}"]
@@ -4,4 +4,4 @@ FROM public.ecr.aws/lambda/nodejs:10
4
4
  COPY /usr/src/app/ ${LAMBDA_TASK_ROOT}
5
5
 
6
6
  #
7
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT.$ENTRYPOINT_FUNC"
7
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT.ENTRYPOINT_FUNC"]
@@ -4,4 +4,4 @@ FROM public.ecr.aws/lambda/nodejs:12
4
4
  COPY /usr/src/app/ ${LAMBDA_TASK_ROOT}
5
5
 
6
6
  #
7
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT.$ENTRYPOINT_FUNC"
7
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT.ENTRYPOINT_FUNC"]
@@ -4,4 +4,4 @@ FROM public.ecr.aws/lambda/nodejs:14
4
4
  COPY /usr/src/app/ ${LAMBDA_TASK_ROOT}
5
5
 
6
6
  #
7
- ENTRYPOINT /lambda-entrypoint.sh "$ENTRYPOINT.$ENTRYPOINT_FUNC"
7
+ ENTRYPOINT ["/lambda-entrypoint.sh", "$ENTRYPOINT.ENTRYPOINT_FUNC"]
@@ -12,4 +12,4 @@ RUN cd /usr/src/httpd/ && npm i -S @hybridless/runtime-nodejs-httpd@latest
12
12
  EXPOSE $PORT
13
13
 
14
14
  # Run the specified command within the container.
15
- ENTRYPOINT node ../httpd/proxy.js
15
+ ENTRYPOINT ["node", "../httpd/proxy.js"]
@@ -7,4 +7,4 @@ COPY /usr/src/app/ /usr/src/app/
7
7
  WORKDIR /usr/src/app
8
8
 
9
9
  # Run the specified command within the container.
10
- ENTRYPOINT node -e "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"
10
+ ENTRYPOINT ["node", "-e", "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"]
@@ -7,4 +7,4 @@ COPY /usr/src/app/ /usr/src/app/
7
7
  WORKDIR /usr/src/app
8
8
 
9
9
  # Run the specified command within the container.
10
- ENTRYPOINT node -e "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"
10
+ ENTRYPOINT ["node", "-e", "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"]
@@ -7,4 +7,4 @@ COPY /usr/src/app/ /usr/src/app/
7
7
  WORKDIR /usr/src/app
8
8
 
9
9
  # Run the specified command within the container.
10
- ENTRYPOINT node -e "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"
10
+ ENTRYPOINT ["node", "-e", "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"]
@@ -7,4 +7,4 @@ COPY /usr/src/app/ /usr/src/app/
7
7
  WORKDIR /usr/src/app
8
8
 
9
9
  # Run the specified command within the container.
10
- ENTRYPOINT node -e "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"
10
+ ENTRYPOINT ["node", "-e", "require('./$ENTRYPOINT').$ENTRYPOINT_FUNC()"]