This file contains hidden or 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 app create my-java-app \ | |
| --allow-egress |
This file contains hidden or 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 app create my-java-app \ | |
| -sp /apcera::java-newrelic-pipeline \ | |
| --env-set “NEW_RELIC_LICENSE_KEY=<nr_secret_key>” \ | |
| --allow-egress |
This file contains hidden or 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 app create my-java-app \ | |
| --depends-on package.newrelic-java-package \ | |
| --allow-egress |
This file contains hidden or 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 package build newrelic-java-package.conf |
This file contains hidden or 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 app create my-java-app \ | |
| -sp /apcera::java-newrelic-pipeline \ | |
| --env-set “NEW_RELIC_LICENSE_KEY=<nr_secret_key>” \ | |
| --allow-egress |
This file contains hidden or 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 app create my-java-app \ | |
| --depends-on package.newrelic-java-package \ | |
| --allow-egress |
This file contains hidden or 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 job connect nats-ops | |
| -bash-4.3# env | grep NATS_URI | |
| NATS_URI=tcp://169.254.0.4:10000 | |
| -bash-4.3# nc 169.254.0.4 10000 | |
| INFO {"server_id":"5ca41a4f043d4d71bd6ec94bae67ada8","version":"0.7.2","go":"go1.5.2","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"tls_required":false,"tls_verify":false,"max_payload":1048576} | |
| sub > 1 | |
| +OK | |
| MSG help 1 _INBOX.mRzj3WwpUseJmWN1iIPAG1 11 | |
| help please |
This file contains hidden or 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
| curl http://nats-app-jziwuh.example.apcera-platform.io/help | |
| Got help within 999.455µs: OK I can help! |
This file contains hidden or 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 job list | |
| Working in "/demo" | |
| ╭─────────────┬──────┬───────────┬─────────┬───────────╮ | |
| │ Name │ Type │ Namespace │ Status │ Instances │ | |
| ├─────────────┼──────┼───────────┼─────────┼───────────┤ | |
| │ nats-app │ app │ /demo │ started │ 3/3 │ | |
| │ nats-server │ app │ /demo │ started │ 1/1 │ | |
| │ nats-worker │ app │ /demo │ started │ 1/1 │ | |
| │ nats-ops │ job │ /demo │ started │ 1/1 │ | |
| ╰─────────────┴──────┴───────────┴─────────┴───────────╯ |
This file contains hidden or 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 manifest deploy project.json | |
| [manifest] -- Deploy -- execution started | |
| [manifest] -- Deploy -- looking up "package::/demo::nats-app" | |
| [nats-server] -- Pulling Docker image -- checking policy | |
| [nats-server] -- Pulling Docker image -- checking if package FQN is taken | |
| [nats-server] -- Pulling Docker image -- fetching image metadata | |
| [nats-server] -- Pulling Docker image -- creating package | |
| [nats-server] -- Pulling Docker image -- all layers downloaded | |
| [manifest] -- Deploy -- looking up "package::/demo::nats-worker" | |
| [manifest] -- Deploy -- looking up "package::/apcera/pkg/os::ubuntu-14.04-apc3" |