Docker image with Apache server and Python script to test network latency on specified port
239
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.
To use Lokinetic, follow these steps:
Install Docker on your system if it is not already installed.
Pull the Lokinetic Docker image from Docker Hub:
docker pull asklokesh/lokinetic:latest
Run the Docker container with the following command:
docker run -p 80:80 -d asklokesh/lokinetic:latest
Open a web browser and navigate to http://localhost/test_latency.py.
Enter the source server, target server, and port to test network connectivity on, and click "Submit".
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
Lokinetic is licensed under the MIT License.
Content type
Image
Digest
sha256:1870baf72…
Size
168 MB
Last updated
over 3 years ago
docker pull asklokesh/lokinetic