- Newest
- Most votes
- Most comments
Hi QuantumLove,
the error was from your "Install" step. Can you set
- "RequiresPrivilege": true
like you did in step "Run" for "Install" as well?
Thank you!
This is a sample component recipe:
{
"RecipeFormatVersion": "2020-01-25",
"ComponentName": "xxxxxxx",
"ComponentVersion": "1.5.0",
"Manifests": [
{
"Platform": {
"os": "linux",
"architecture": "amd64"
},
"Lifecycle": {
"Install": {
"Setenv": {
"ARCH": "amd64"
},
"Script": "docker load -i {artifacts:path}/artifact-${ARCH}.tar"
},
"Run": {
"Setenv": {
"ARCH": "amd64"
},
"Script": "docker run --rm --privileged --name xxxxxxx xxxxxxx:${ARCH}-1.5.0",
"RequiresPrivilege": true
}
},
"Selections": [
"all"
]
},
{
"Platform": {
"os": "linux",
"architecture": "arm"
},
"Lifecycle": {
"Install": {
"Setenv": {
"ARCH": "arm32v7"
},
"Script": "docker load -i {artifacts:path}/artifact-${ARCH}.tar"
},
"Run": {
"Setenv": {
"ARCH": "arm32v7"
},
"Script": "docker run --rm --privileged --name xxxxxxx xxxxxxx:${ARCH}-1.5.0",
"RequiresPrivilege": true
}
},
"Selections": [
"all"
]
}
],
"Lifecycle": {
"Install": {
"Script": {
"all": "docker load -i {artifacts:path}/artifact-${ARCH}.tar"
}
},
"Run": {
"Script": {
"all": "docker run --rm --privileged --name xxxxxxx xxxxxxx:${ARCH}-1.5.0"
},
"RequiresPrivilege": {
"all": true
}
}
}
}
Relevant content
- asked a month ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago