diff options
author | Arianit K <arianit@hax.al> | 2025-06-03 00:20:30 +0000 |
---|---|---|
committer | Arianit K <arianit@hax.al> | 2025-06-03 00:20:30 +0000 |
commit | 956bb5ffb3a788906e3d746c1dc03f027a0027d3 (patch) | |
tree | c771377cdd69e7b22427aa9427d5aa6233f45f67 | |
parent | KISSmo Docker (diff) | |
download | KISSmoDocker-956bb5ffb3a788906e3d746c1dc03f027a0027d3.tar.gz KISSmoDocker-956bb5ffb3a788906e3d746c1dc03f027a0027d3.zip |
Cleaning Readme
-rw-r--r-- | README.md | 40 |
1 files changed, 16 insertions, 24 deletions
@@ -153,7 +153,6 @@ if [ $? -ne 0 ]; then exit 1 fi echo "$(date): KISSmo Perl restarted successfully." >> /var/log/cron.log - ``` **`entrypoint.sh` Content:** @@ -172,17 +171,15 @@ perl paste.pl daemon -m production -l http://0.0.0.0:7878 # Keep the container running indefinitely echo "$(date): Tail -f /dev/null to keep container alive..." tail -f /dev/null - ``` ## Building the Docker Image 1. **Navigate to your project directory**: Open your terminal or command prompt and go to the directory where you saved the three files (`Dockerfile`, `update_kissmo.sh`, `entrypoint.sh`). - ``` - cd /path/to/your/kissmo-docker-project - - ``` +``` +cd /path/to/your/kissmo-docker-project +``` 2. **Build the Docker image**: Run the following command. This will download the base Debian image, install dependencies, clone the KISSmo Perl repository, and set up the cron job. @@ -220,7 +217,6 @@ After the container starts, open your web browser and navigate to: ``` http://localhost:7878 - ``` If you are running Docker on a remote server, replace `localhost` with the actual IP address or hostname of your server. @@ -248,17 +244,15 @@ You can monitor the cron job's activity and the application's startup by checkin 1. **View cron job logs**: - ``` - docker exec kissmo_autoupdate_app cat /var/log/cron.log - - ``` +``` +docker exec kissmo_autoupdate_app cat /var/log/cron.log +``` 2. **View container startup logs**: - ``` - docker logs kissmo_autoupdate_app - - ``` +``` +docker logs kissmo_autoupdate_app +``` ## Stopping and Removing the Container @@ -267,24 +261,22 @@ To stop and remove the running container: 1. **Stop the container**: - ``` - docker stop kissmo_autoupdate_app - - ``` +``` +docker stop kissmo_autoupdate_app +``` 2. **Remove the container**: - ``` - docker rm kissmo_autoupdate_app - - ``` +``` +docker rm kissmo_autoupdate_app +``` To remove the Docker image from your system (optional, after stopping and removing all containers based on it): ``` docker rmi kissmoperl-auto-update - ``` This README provides all the necessary information to deploy and manage your KISSmo Perl application using Docker with automatic updates. + |