Kaynağa Gözat

windows luanch script

Sylhaf 6 ay önce
ebeveyn
işleme
d88e9df3c8
3 değiştirilmiş dosya ile 17 ekleme ve 3 silme
  1. 2 2
      docker-compose.yml
  2. 1 1
      main.py
  3. 14 0
      windows_launch.bat

+ 2 - 2
docker-compose.yml

@@ -1,7 +1,7 @@
 version: '3.8'
-
 services:
-  selenium-chrome:
+  dolistripe:
+    container_name: "dolistripe"
     image: selenium/standalone-chrome:latest
     ports:
     - "4444:4444"  # Expose le port 4444

+ 1 - 1
main.py

@@ -27,7 +27,7 @@ elif LANG == "FR" :
 
     DOLIBARR_LOGIN_TEXT = "Identifiant"
     DOLIBARR_HOME_TEXT = "Accueil"
-    DOLIBARR_CONTRACT_RUNNING_TEXT = "En Service"
+    DOLIBARR_CONTRACT_RUNNING_TEXT = "En service"
     DOLIBARR_NOT_PAID_TEXT = "Impayée"
     DOLIBARR_DATE_FORMAT = '%d/%m/%Y'
     DOLIBARR_TEXT_ENTER_PAYMENT =  "Saisir règlement"

+ 14 - 0
windows_launch.bat

@@ -0,0 +1,14 @@
+@echo off
+REM Start the containers in detached mode
+docker-compose up -d
+
+REM Execute the script inside the 'dolistripe' container
+docker exec --user root dolistripe /mnt/dolistripe/launch.sh
+
+REM Wait for the script to complete and shut down the containers
+docker-compose down
+
+REM Optional: Remove all stopped containers, unused networks, images, and optionally, volumes
+REM docker-compose down --rmi all --volumes
+
+echo Operation completed