HUB
Sign inSign up
lokinetic logo

asklokesh/lokinetic

By asklokesh

•Updated over 3 years ago

Docker image with Apache server and Python script to test network latency on specified port

Image
0

284

asklokesh/lokinetic repository overview

⁠Lokinetic

Lokinetic is a Docker image that includes an Apache web server and a Python script for testing network latency between two servers on a specified port.

⁠Usage

To use Lokinetic, follow these steps:

  1. Install Docker on your system if it is not already installed.

  2. Pull the Lokinetic Docker image from Docker Hub:

    docker pull asklokesh/lokinetic:latest

  3. Run the Docker container with the following command:

    docker run -p 80:80 -d asklokesh/lokinetic:latest

  4. Open a web browser and navigate to http://localhost/test_latency.py.

  5. Enter the source server, target server, and port to test network connectivity on, and click "Submit".

⁠Customization

If you want to customize the Python script or the Apache configuration in the Lokinetic Docker image, you can do so by creating a new Docker image based on the Lokinetic image.

For example, to modify the Python script, create a new file named test_latency.py with your modifications, and create a new Dockerfile with the following contents:

DockerfileCopy code

`FROM lokinetic:latest

COPY test_latency.py /usr/lib/cgi-bin/ RUN chmod +x /usr/lib/cgi-bin/test_latency.py`

Then, build the new Docker image with the following command:

docker build -t mylok:latest .

Replace mylok with a name for your Docker image. You can then run the new image with the same command as before:

docker run -p 80:80 -d mylok:latest

⁠License

Lokinetic is licensed under the MIT License⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:1870baf72…
Size
168 MB
Last updated
over 3 years ago
docker pull asklokesh/lokinetic:latest