|
|
@ -70,14 +70,15 @@ Le fichier **Cupfile** permet de **rassembler des informations** qui seront util |
|
|
|
Voici la structure d'un Cupfile: |
|
|
|
```plain |
|
|
|
+--------------------> |
|
|
|
| AUTOR = Maiuri Gaëtan <maiuri.gaetan@lessonsharing.fr> |
|
|
|
| User variables. DATE = 2017-09-22 |
|
|
|
| DESCRIPTION = A simple Cuper container with a text reader. |
|
|
|
| VAR1 = value1 |
|
|
|
| User variables. VAR2 = value2 |
|
|
|
| VAR3 = value3 |
|
|
|
+--------------------> |
|
|
|
| X-ENV = ["VERBOSE=1", "LD_LIBRARY_PATH=$_CWD/python-linux-x86-64/"] |
|
|
|
| Constantes. X-INCLUDES = ["python-linux-x86-64/", "main.py"] |
|
|
|
| ([add:] | set:)X-CONST1 = value1 |
|
|
|
| Constantes. ([add:] | set:)X-CONST2 = value2 |
|
|
|
| ([add:] | set:)X-CONST3 = value3 |
|
|
|
+--------------------> |
|
|
|
+--------------------> `0x0a 0x0a` |
|
|
|
+--------------------> (2x new ligne: `0x0a 0x0a`) |
|
|
|
+--------------------> `exec` executable_file [arguments] |
|
|
|
``` |
|
|
|
|
|
|
@ -86,7 +87,7 @@ Voici un exemple de Cupfile, ce conteneur permet l'execution d'un script Python, |
|
|
|
AUTOR = Maiuri Gaëtan <maiuri.gaetan@lessonsharing.fr> |
|
|
|
DATE = 2017-09-22 |
|
|
|
DESCRIPTION = A simple Cuper container with a text reader. |
|
|
|
X-ENV = ["VERBOSE=1", "LD_LIBRARY_PATH=$_CWD/python-linux-x86-64/"] |
|
|
|
X-ENV = ["set:VERBOSE=1", "LD_LIBRARY_PATH=$_CWD/python-linux-x86-64/"] # LD_LIBRARY_PATH=... => is equivalente of add:LD_LIBRARY_PATH=... |
|
|
|
X-INCLUDES = ["python-linux-x86-64/", "main.py"] |
|
|
|
|
|
|
|
# POSIX |
|
|
|