Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 733 Bytes

File metadata and controls

29 lines (26 loc) · 733 Bytes

python-http-server

A simple Python HTTP Server that serves static content There are several ways that this small application can be run:

Running as a Systemd Service

  • In the Service File, change the User property to the user that is going to be running the server, the default is jenkins:
     [Service]
     User=jenkins
    
  • Install the server
     sudo make install
  • Start the Server with systemctl
     sudo systemctl start python-systemd-http-server
  • The server can be accessed on the default port of 9000:
     http://localhost:9000

Running in a Docker container

  • Build the docker image and run the container:
make docker_up