Previous Topic: Scripting AccessNext Topic: Common Operations


Examples of Creating and Modifying an Application

Limitations for each supported

To create and modify an application

  1. Log in to the controller through the web shell (if not done already)
  2. Execute the following command to see the set of configuration parameters that are available.
    app provision Lamp mylampapp hostname=www.myapp.com 
    
  3. Choose the network configuration parameters that are correct for your grid. The IP addresses must be from the set of IP addresses listed on your dashboard; the netmask, gateway, and DNS servers should match too.
  4. Provision the application using the app provision command. Upon completion of the app provision command, the application should be running.
    Example: 
    app provision Lamp mylampapp \
    hostname=www.myapp.com \
    in_ip=1.2.3.4 out_ip=1.2.3.5 \
    netmask=255.255.255.0 gateway=1.2.3.1 \
    dns1=1.2.3.50 dns2=1.2.3.51 \
    fs.size=100MB mysql.size=250MB
    

    You will see the application instance volumes being created. This process runs only once, and may take a while. On subsequent starts, the volume creation phase will be skipped. After a small delay, you should see Starting application and a progress indicator; as appliances complete their startup, they will be reported. At the end, you should see Application started successfully.

  5. Point your browser to the IP address of the usr gateway (the value of the in_ip property you recorded in the app provision command.

    The Lamp home page appears. You can work with the application.