Cisco Cisco Application Extension Platform for SRE
Cisco Application eXtension Platform 1.0 Quick Start Guide
Packaging Applications on Cisco AXP
13
Cisco Application eXtension Platform 1.0 Quick Start Guide
OL-15669-01
The script is a very simple shell script that tells the Cisco AXP environment that you want to have Linux
shell access configured when your application’s virtual instance is created.
shell access configured when your application’s virtual instance is created.
Step 3
Create the contents of the postinstall.sh script file as follows:
[root@fedora /]# cat /opt/tcptrace/postscripts/postinstall.sh
#!/bin/sh
ln -s /bin/bash /bin/console
Note
This script essentially creates a soft link to the console.
Step 4
Change the permissions of non-owner users of the postinstall script to read-execute:
chmod 755 /opt/tcptrace/postscripts/postinstall.sh
Step 5
Navigate to the Linux shell after your application is installed. See “Configuring Console Access” in the
Packaging an Application Using the SDK
Packaging an Application Using the SDK: Example
After your build environment is set up, package the application by performing the following steps.
Step 1
To start the packaging tool in interactive mode, enter the following command from directory
/opt/axp-sdk.1.0.1/tools :
/opt/axp-sdk.1.0.1/tools :
[root@fedora tools]# ./pkg_build.sh
Note
For details on each parameter of the packaging tool, see the “Packaging Tool” section in the
A series of prompts appears.
Step 2
Provide argument values to the packaging tool:
Project Directory: /opt/output
Development Certificate File: /opt/axp-sdk.1.0.1/keys/dev_certificate.sig
Development Authorization File: /opt/axp-sdk.1.0.1/lib/keys/dev_authorization.sig
Private Key for Signing Operations: /opt/axp-sdk.1.0.1/keys/private.key
Application Name: tcptrace
Version: 1.0
Description: This is my first Cisco AXP package
Unique Identifier: yourUUID <enter>
Source Directory: /opt/tcptrace
Protect List File: <enter>
Package Name Containing Dependency SSID (blank line when done): <enter>
Disk Limit : 100M
Memory Limit: 100M
CPU Limit : 500
post-install script path: /postcripts/postinstall.sh