From c46ac3d3d3cae70f98acaf4fb58d052a052928ac Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Tue, 6 Aug 2019 16:46:56 +0200 Subject: [PATCH] Removed useless compose --- README.md | 13 ++++--------- docker-compose.yml | 11 ----------- main.py | 2 +- 3 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 44fa1da..d265727 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/00b415afa9d64866a9bb0781499257c9)](https://www.codacy.com/app/M0NsTeRRR/Dynhost?utm_source=github.com&utm_medium=referral&utm_content=M0NsTeRRR/Dynhost&utm_campaign=Badge_Grade) -![Docker Automated build](https://img.shields.io/docker/cloud/automated/monsterrr/dynhost?style=flat-square) -![Docker Build Status](https://img.shields.io/docker/cloud/build/monsterrr/dynhost?style=flat-square) +[![Docker Automated build](https://img.shields.io/docker/cloud/automated/monsterrr/dynhost?style=flat-square)](https://hub.docker.com/r/monsterrr/dynhost) +[![Docker Build Status](https://img.shields.io/docker/cloud/build/monsterrr/dynhost?style=flat-square)](https://hub.docker.com/r/monsterrr/dynhost) The goal of this project is to update your DynDns entries on OVH. It can updates multiple subdomains. @@ -11,7 +11,6 @@ The goal of this project is to update your DynDns entries on OVH. It can updates #### Docker - Docker CE -- Docker-compose ## Install @@ -25,13 +24,9 @@ Start the script `python main.py` ### Docker Docker version support only one update of DynDns (start many containers to fix the problem) -Fill environment variables on docker-compose.yml : -- DYNHOST_DELAY -- DYNHOST_HOSTANAME -- DYNHOST_USERNAME -- DYNHOST_PASSWORD +Fill environment variables -Start the container `docker-compose up` +`docker run -d --restart=always -e "DYNHOST_DELAY=" -e "DYNHOST_HOSTANAME=" -e "DYNHOST_USERNAME=" -e "DYNHOST_PASSWORD=" monsterrr/dynhost:latest` # Licence diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 976f83b..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: '3.7' -services: - dynhost: - image: monsterrr/dynhost:latest - container_name: dynhost - restart: always - environment: - - DYNHOST_DELAY= - - DYNHOST_HOSTANAME= - - DYNHOST_USERNAME= - - DYNHOST_PASSWORD= \ No newline at end of file diff --git a/main.py b/main.py index a8484b0..a6d07bb 100644 --- a/main.py +++ b/main.py @@ -38,7 +38,7 @@ import logging from os import environ from json import load -from sys import sys_exit +from sys import exit as sys_exit from time import sleep from requests import get