This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```json | |
{ | |
"jobs": { | |
"job::/sandbox/dean::dockerwp": { | |
"docker": { | |
"image": "wordpress:latest" | |
}, | |
"services" : { | |
"mysql-dockerwp" : { | |
"fqn" : "service::/sandbox/dean::mysql-dockerwp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying manifest... | |
[manifest] -- Deploy -- execution started | |
[castserver] -- Pulling Docker image -- checking policy | |
[castserver] -- Pulling Docker image -- checking if package FQN is taken | |
[castserver] -- Pulling Docker image -- fetching image metadata | |
[castserver] -- Pulling Docker image -- creating package | |
[castserver] -- Pulling Docker image -- all layers downloaded | |
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castclient" to "service::/sandbox/simone::nats-server" | |
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castserver" to "service::/sandbox/simone::nats-server" | |
[manifest] -- Deploy -- checking if policy allows updates on "job::/sandbox/simone::castserver" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying manifest... | |
[manifest] -- Deploy -- execution started | |
[manifest] -- Deploy -- looking up "package::/sandbox/simone::cast-client" | |
[manifest] -- Deploy -- looking up "package::/sandbox/simone::cast-server" | |
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castclient" to "service::/sandbox/simone::nats-server" | |
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castserver" to "service::/sandbox/simone::nats-server" | |
[manifest] -- Deploy -- skip creating "service::/sandbox/simone::nats-server" since it already exists | |
[manifest] -- Deploy -- creating "job::/sandbox/simone::castclient" | |
[manifest] -- Deploy -- created "job::/sandbox/simone::castclient" | |
[manifest] -- Deploy -- creating "job::/sandbox/simone::castserver" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on job::/ { | |
if (service == PV->SvcGroups.service) | |
{ | |
request_category PV->SvcGroups.category | |
} | |
if (request_category == PV->Bindings.svcCategory && | |
query->target fqnMatch PV->Bindings.jobNamespace) | |
{ | |
permit bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on job::/ { | |
if (PV->SvcGroups.category == restricted && | |
service == PV->SvcGroups.service && | |
role == admin) | |
{ | |
permit bind | |
} | |
} | |
on service::/ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apc event subscribe job::/sandbox/user::helloworld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
turnpike "gopkg.in/jcelliott/turnpike.v2" | |
) | |
// Events realm for WAMP protocol specified by Apcera Platform. | |
const ( | |
eventsRealm = "com.apcera.api.es" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apc capsule create efs-capsule1 --image linux -ae --batch | |
apc service bind efs-service-1 --job efs-capsule1 --batch -- --mountpath /an/unlimited/supply | |
apc capsule connect efs-capsule1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apc service create efs-service-1 \ | |
--provider awsefs \ | |
--description 'Amazon EFS Service' \ | |
--batch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apc provider register awsefs --type nfs \ | |
--url "nfs://10.0.0.112/" \ | |
--description 'Amazon EFS' \ | |
--batch \ | |
-- --version 4.1 |
NewerOlder