Public | Automated Build

Last pushed: 2 years ago
Short Description
Container of cloudstack simulator (4.4-forward)
Full Description

CloudStack Simulator Dockerfile

This Dockerfile creates Docker Image that contains CloudStack simualtor and
some utilities.

Usage

Use from Docker command

  1. Install Docker if they are not installed

  2. Pull Docker Image

    docker pull atsaki/cloudstack-simulator-4.4
    
  3. Run the contanier

    docker run atsaki/cloudstack-simulator-4.4
    

Use from Vagrant

  1. Install Vagrant, Docker and Git if they are not installed

  2. Pull Docker Image

    docker pull atsaki/cloudstack-simulator-4.4
    
  3. Clone this repository

    git clone https://github.com/atsaki/docker-cloudstack.git
    cd docker-cloudstack/simulator/4.4-forward
    
  4. Download insecure key

    curl -o insecure_key -fSL https://github.com/phusion/baseimage-docker/raw/master/image/insecure_key
    chmod 600 insecure_key
    
  5. Start container

    vagrant up --provider docker
    
  6. Wait a few minutes until management server get started

    You can tail log with following command.

    vagrant ssh -c tail -f /var/log/cloudstack_simulator.log
    

    You can check wheter management server successfully get started with cloudmonkey.
    If following command return admin user, management server successfully get started.

    vagrant ssh -c cloudmonkey list users
    
  7. Login

    You can login to the container with following command.

    vagrant ssh -- -L 8080:localhost:8080
    

    You can open UI. Open "http://localhost:8080/client" on the host OS.

  8. Stop, Restore, Destroy

    You can stop and restore the container.

    # Stop the container
    vagrant halt
    # Restore the container
    vagrant reload
    # Destroy the container
    vagrant destroy
    

Execute Marvin Tests

Marvin is installed in the container.

cd /root/cloudstack
# Deploy datacenter
python tools/marvin/marvin/deployDataCenter.py -i setup/dev/advanced.cfg
# Execute tests with nosetests
nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg -a tags=advanced,required_hardware=false --hypervisor=simulator test/integration/smoke

Notes

This project is inspired by a following project.

Docker Pull Command
Owner
atsaki
Source Repository