Skip to content

v0.3.0 Uninstall AutolabJS

AnkshitJain edited this page Jan 16, 2018 · 1 revision

To uninstall AutolabJS from a single machine deployment, follow the steps given below:

  1. Download the code repository.
    wget -O
    mv AutolabJS-dev AutolabJS
    Or alternatively, if you have the repository downloaded from the time you installed AutolabJS, you can use the same.

    Move to the AutolabJS directory.
    cd AutolabJS

  2. If you plan to install AutolabJS at a later stage, you can save the docker images for future use. To save the docker images, follow this step, else you can skip to the next step.

    1. Change to the docker-images directory.
      cd docker-images

    2. Run the script
      This will save all the docker images in the same directory. There are 6 docker images. The files saved will be:

       - gitlab.tar
       - main_server.tar  
       - ubuntu-16.04.tar
       - execution_node.tar
       - load_balancer.tar
       - mysql.tar
    3. You can save these images at any location you prefer. When you want to install AutolabJS, you can use these files directly. Use the script in the same directory to do so.
      Remember, this script needs to be run from the same directory where the images are stored.

    4. Now, move back to the AutolabJS directory.
      cd ..

  3. If you had added additional nodes during the installation, they have to be manually removed. This step should be skipped if you performed the default setup.
    You need to remove the docker containers for all the execution nodes that were added manually.
    To do so, first find out the name of the execution node containers.
    To list the containers running on your system, run
    sudo docker ps -a
    Now, the containers that are installed in the default setup have the names,

     - autolab-db
     - gitlab 
     - mainserver
     - loadbalancer
     - execution-node-localhost-8082
     - execution-node-localhost-8083
     - execution-node-localhost-8084
     - execution-node-localhost-8085
     - execution-node-localhost-8086

    Any additional execution node container, say for example having the name execution-node-localhost-8087 can be removed using two commands below:

    1. For stopping the container:
      sudo docker stop execution-node-localhost-8087
    2. For removing the container:
      sudo docker rm execution-node-localhost-8087

    These two steps have to be repeated for all the additional nodes not included in the list above.

  4. Move to the deploy directory.
    cd deploy

  5. Uninstall AutolabJS using the command below.
    sudo ansible-playbook -i inventory uninstall.yml

You have now successfully uninstalled AutolabJS.

Clone this wiki locally
You can’t perform that action at this time.