/staffLocationWEB

Project allows to show location of each user on your remote servers.

Primary LanguageHTMLMIT LicenseMIT

staffLocationWEB

Project allows to show location of each user on your remote server.

Docker startup

Requirements

How to start

  1. Get project:
$ git clone --recursive https://github.com/mperov/staffLocationWEB.git
$ cd staffLocationWEB/
    1. change full path to your .ssh folder in docker-compose.yml (/home/coder/.ssh is example path);
    2. Input IP address of your remote machine also change username and modify ssh port if it isn't 22 in call getLocation.show() that is at staffLocation.py source file;
    3. Follow 4-7 README points of submodule project.
  1. Build and run container:
$ docker-compose build
$ docker-compose up -d

If it's all right site http://localhost:8080/location will be available.

Typical startup

How to start

  1. Get project:
$ git clone --recursive https://github.com/mperov/staffLocationWEB.git
$ cd staffLocationWEB/
  1. Create special Python virtual enviroment by
$ sudo apt-get install python3-venv -y
$ python3 -m venv staffLocationWEB
$ source staffLocationWEB/bin/activate
  1. Next install some Python modules - pip3 install -r requirements or python3 -m pip install -r requirements
    If you don't have pip3 then you may install it how described here

  2. Install submodule Python requirements - pip3 install -r getLinuxUserLocation/requirements or python3 -m pip install -r getLinuxUserLocation/requirements

  3. Follow 4-7 README points of submodule project

  4. Input IP address of your remote machine also change username and modify ssh port if it isn't 22 in call getLocation.show() that is at staffLocation.py source file.

  5. Set nginx credentials via variables BASIC_USERNAME and BASIC_PASSWORD in docker-compose.yml.

Usage

  1. Run project
$ source staffLocationWEB/bin/activate
$ ./staffLocation.py
  1. Open your favorite browser and go to http://localhost:8080/location