@fnproject/fdk 0.0.28 → 0.0.32
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/fn-fdk.js +1 -1
- package/package.json +1 -1
- package/build-images.sh +0 -31
- package/images/README.md +0 -25
- package/images/build-stage/11/Dockerfile +0 -17
- package/images/build-stage/14/Dockerfile +0 -17
- package/images/runtime/11/Dockerfile +0 -17
- package/images/runtime/14/Dockerfile +0 -17
- package/release_images.sh +0 -25
package/fn-fdk.js
CHANGED
|
@@ -22,7 +22,7 @@ const fs = require('fs')
|
|
|
22
22
|
const http = require('http')
|
|
23
23
|
const path = require('path')
|
|
24
24
|
const version = require('./package.json')
|
|
25
|
-
const runtimeVersion = process.version
|
|
25
|
+
const runtimeVersion = String(process.version)
|
|
26
26
|
const fdkVersion = 'fdk-node/' + version.version + ' (njsv=' + runtimeVersion + ')'
|
|
27
27
|
const runtimeTag = 'node/' + runtimeVersion.substr(1, runtimeVersion.length - 1)
|
|
28
28
|
|
package/package.json
CHANGED
package/build-images.sh
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
set -xe
|
|
20
|
-
|
|
21
|
-
if [ -z "$1" ];then
|
|
22
|
-
echo "Please supply node version as argument to build image." >> /dev/stderr
|
|
23
|
-
exit 2
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
user="fnproject"
|
|
27
|
-
image="node"
|
|
28
|
-
node_version=$1
|
|
29
|
-
|
|
30
|
-
pushd images/build-stage/${node_version} && docker build -t ${user}/${image}:${node_version}-dev . && popd
|
|
31
|
-
pushd images/runtime/${node_version} && docker build -t ${user}/${image}:${node_version} . && popd
|
package/images/README.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Image on Docker Hub: https://hub.docker.com/r/fnproject/node
|
|
2
|
-
|
|
3
|
-
## Building Node images
|
|
4
|
-
|
|
5
|
-
```sh
|
|
6
|
-
pushd build-stage/11; docker build -t fnproject/node:11-dev .; popd
|
|
7
|
-
pushd runtime/11; docker build -t fnproject/node:11 .; popd
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
pushd build-stage/14; docker build -t fnproject/node:14-dev .; popd
|
|
12
|
-
pushd runtime/14; docker build -t fnproject/node:14 .; popd
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Then push:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
docker push fnproject/node:11-dev
|
|
19
|
-
docker push fnproject/node:11
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
```sh
|
|
23
|
-
docker push fnproject/node:14-dev
|
|
24
|
-
docker push fnproject/node:14
|
|
25
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
FROM node:11.15.0-alpine
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
FROM node:14.17.6-alpine
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
FROM node:11.15.0-alpine
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
FROM node:14.17.6-alpine
|
package/release_images.sh
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
# Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
#
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
user="fnproject"
|
|
20
|
-
image="node"
|
|
21
|
-
|
|
22
|
-
node_version=$1
|
|
23
|
-
docker push ${user}/${image}:${node_version}
|
|
24
|
-
docker push ${user}/${image}:${node_version}-dev
|
|
25
|
-
|