@iexec/iapp-maker 0.0.1-alpha-nightly-fbec13fe99344a38d6f854a608a05b267d1b6d40 → 0.0.1-alpha-nightly-40854aeaac20da732cc91cf4720604252875830e
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/package.json +1 -1
- package/src/cmd/deploy.js +2 -2
- package/src/index.js +1 -0
- package/src/utils/sconify.js +0 -3
package/README.md
CHANGED
@@ -20,6 +20,9 @@ This CLI provides an interface to guide you through different steps:
|
|
20
20
|
npm i -g @iexec/iapp-maker
|
21
21
|
```
|
22
22
|
|
23
|
+
> ℹ️ when you install this package for the fist time, run `iapp completion` to
|
24
|
+
> generate a completion script for the `iapp` command
|
25
|
+
|
23
26
|
## Commands
|
24
27
|
|
25
28
|
### `--help`
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@iexec/iapp-maker",
|
3
|
-
"version": "0.0.1-alpha-nightly-
|
3
|
+
"version": "0.0.1-alpha-nightly-40854aeaac20da732cc91cf4720604252875830e",
|
4
4
|
"description": "A CLI to guide you through the process of building an iExec iApp",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"type": "module",
|
package/src/cmd/deploy.js
CHANGED
@@ -86,7 +86,7 @@ export async function deploy() {
|
|
86
86
|
spinner.start(
|
87
87
|
'Transforming your image into a TEE image and deploying on iExec, this may take a few minutes...'
|
88
88
|
);
|
89
|
-
const { sconifiedImage,
|
89
|
+
const { sconifiedImage, appContractAddress } = await sconify({
|
90
90
|
sconifyForProd: false,
|
91
91
|
iAppNameToSconify: imageTag,
|
92
92
|
walletAddress,
|
@@ -101,7 +101,7 @@ export async function deploy() {
|
|
101
101
|
}
|
102
102
|
spinner.succeed(
|
103
103
|
`Deployment of your iApp completed successfully:
|
104
|
-
- Docker image: ${sconifiedImage}
|
104
|
+
- Docker image: ${sconifiedImage}
|
105
105
|
- iApp address: ${appContractAddress}`
|
106
106
|
);
|
107
107
|
} catch (error) {
|
package/src/index.js
CHANGED
package/src/utils/sconify.js
CHANGED
@@ -14,7 +14,6 @@ export async function sconify({
|
|
14
14
|
throw Error('This feature is not yet implemented. Coming soon ...');
|
15
15
|
}
|
16
16
|
|
17
|
-
let teeDockerhubImagePath;
|
18
17
|
let appContractAddress;
|
19
18
|
let sconifiedImage;
|
20
19
|
try {
|
@@ -45,7 +44,6 @@ export async function sconify({
|
|
45
44
|
const json = await body.json();
|
46
45
|
sconifiedImage = json.sconifiedImage;
|
47
46
|
appContractAddress = json.appContractAddress;
|
48
|
-
teeDockerhubImagePath = json.sconifiedImage.split(':')[0];
|
49
47
|
} catch (err) {
|
50
48
|
let reason;
|
51
49
|
if (err.body) {
|
@@ -70,7 +68,6 @@ export async function sconify({
|
|
70
68
|
|
71
69
|
return {
|
72
70
|
sconifiedImage,
|
73
|
-
dockerHubUrl: `https://hub.docker.com/r/${teeDockerhubImagePath}/tags`,
|
74
71
|
appContractAddress,
|
75
72
|
};
|
76
73
|
}
|