# Images 🐳 pour tester des services en développement

**URL:** <https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280>\
**Category:** Développement\
**Tags:** gladys-docker\
**Created:** [Mars 25, 2020, 8:09 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280 "2020-03-25T08:09:55Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![peb](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/peb/32/3480_2.png) [@peb](https://community.gladysassistant.com/u/peb)\
**Post date:** [Mars 25, 2020, 8:09 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/1 "2020-03-25T08:09:55Z")

</div>

Hello,

Pour ceux qui développent un service, mais qui ne sont pas forcément à l’aise avec Docker, je vous propose de construire vos images afin de permettre à la communauté de tester vos intégrations !  
Il vous suffit de me donner ici les infos (service, lien GitHub)

_Les mises à jour d’image se feront fréquemment en fonction de mes disponibilités_

# Images disponibles

| Intégration | Auteur | PR | Forum | 🐳 |
| --- | --- | --- | --- | --- |
| RFlink | @joeypic | [ici](https://github.com/GladysAssistant/Gladys/pull/655) | [ici](https://community.gladysassistant.com/t/v4-dev-service-rflink/5186) | [ici](https://hub.docker.com/repository/docker/pebou/gladys/tags?page=1&name=rflink) |
| DSP-W215 | @PhilippeMA | [ici](https://github.com/GladysAssistant/Gladys/pull/760) | [ici](https://community.gladysassistant.com/t/v4-dev-service-d-link-dsp-w215-prises-connectees/5348) | [ici](https://hub.docker.com/r/pebou/gladys/tags?page=1&name=4.0.0-beta-integration-dsp-w215) |
| Arduino | @billona | ❌ | [ici](https://community.gladysassistant.com/t/gladys-4-developpement-du-service-arduino/5154) | [ici](https://hub.docker.com/r/pebou/gladys/tags?page=1&name=4.0.0-beta-integration-arduino) |
| Zigbee2mqtt | @Reno | [ici](https://community.gladysassistant.com/t/zigbee2mqtt-image-de-test-basee-gladys-v4) | [ici](https://github.com/GladysAssistant/Gladys/pull/688) | [ici](https://hub.docker.com/r/r6n0/gladys-zigbee2mqtt) |
| AwoX | @AlexTrovato | [ici](https://github.com/GladysAssistant/Gladys/pull/892) | [ici](https://community.gladysassistant.com/t/awox-bluetooth-service/5852) | [ici](https://hub.docker.com/repository/docker/atrovato/gladys/tags?page=1&ordering=last_updated&name=v4.0.2-awox) |
| ColorPicker | @AlexTrovato | [ici](https://github.com/GladysAssistant/Gladys/pull/945) | [ici](https://community.gladysassistant.com/t/gestion-de-la-couleur-des-ampoules-rgb-depuis-le-dashboard/5535) | [ici](https://hub.docker.com/repository/docker/atrovato/gladys/tags?page=1&ordering=last_updated&name=v4.0.2-color-picker) |

---

<div class="post-metadata">

**Author:** ![ProtZ](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/protz/32/1641_2.png) [@ProtZ](https://community.gladysassistant.com/u/ProtZ)\
**Post date:** [Mars 25, 2020, 11:00 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/2 "2020-03-25T11:00:17Z")

</div>

Best idea ever ! merci \<3

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Mars 25, 2020, 12:20 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/3 "2020-03-25T12:20:56Z")

</div>



---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mars 25, 2020, 7:38 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/4 "2020-03-25T19:38:06Z")

</div>

Merci pour la proposition, comme on se disait au téléphone, ça va pas mal aider les développeurs de services ! 🙂

---

<div class="post-metadata">

**Author:** ![peb](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/peb/32/3480_2.png) [@peb](https://community.gladysassistant.com/u/peb)\
**Post date:** [Mai 3, 2020, 3:28 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/5 "2020-05-03T15:28:15Z")

</div>

Hum… je ne peux plus éditer mon premier message 🤔 peut-être par ce que le message est épinglé ?  
du coup, nouvelle intégration dispo

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Mai 3, 2020, 11:34 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/6 "2020-05-03T23:34:04Z")

</div>

J’ai édité ton 1er post

---

<div class="post-metadata">

**Author:** ![peb](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/peb/32/3480_2.png) [@peb](https://community.gladysassistant.com/u/peb)\
**Post date:** [Mai 7, 2020, 5:52 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/7 "2020-05-07T05:52:23Z")

</div>

Mise à Jour : Ajout de l’image Arduino

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juin 8, 2020, 9:40 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/8 "2020-06-08T09:40:33Z")

</div>

Hello @peb! Est-ce que tu pourrais mettre à jour l’image Arduino avec la PR de @billona?

> [@Gladys 4 - Développement du service Arduino](https://community.gladysassistant.com/t/gladys-4-developpement-du-service-arduino/5154/138):
>
> Hello ! Bon et bien voilà, selon le dernier rapport de codecov, il semble que mes tests soient enfin terminés ^^ @pierre-gilles Si tu vois quelque chose de manquant j’attends ton retour, autrement pour moi tout est bon pour une première version smile Je voulais aussi dire merci ! Etant donné que c’est mon premier “vrai” dev en Node et Preact j’étais un peu perdu à certains moments je l’avoue. Donc merci pour votre patience, et j’ai hâte de voir le résultat de plusieurs soirées dev faire par…

> <https://github.com/GladysAssistant/Gladys/pull/812>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.json\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/gladys-4-docs) and the \[website\](https://documentation.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!
> 
> This PR is about the Arduino service. Gladys will now be able to interact with Arduino card. The user uploads the generic code on the card, setups the service, creates the device, and interacts with hardware.

---

<div class="post-metadata">

**Author:** ![peb](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/peb/32/3480_2.png) [@peb](https://community.gladysassistant.com/u/peb)\
**Post date:** [Juin 8, 2020, 6:55 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/9 "2020-06-08T18:55:12Z")

</div>

Les images sont construites ! 😃

Par contre, j’ai un défaut sur les images armv7 et v8, une erreur de build que j’essayerai de corriger demain.

⚠ ~~Les images v7 et v8 ne sont donc pas à jour malgré ce que peux afficher dockerhub~~  
EDIT : tout est bon 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Juin 9, 2020, 7:44 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/10 "2020-06-09T07:44:06Z")

</div>

Merci ! Tiens nous au courant ici 🙂

---

<div class="post-metadata">

**Author:** ![peb](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/peb/32/3480_2.png) [@peb](https://community.gladysassistant.com/u/peb)\
**Post date:** [Juin 9, 2020, 9:00 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/11 "2020-06-09T21:00:08Z")

</div>

✅ Images Arduino à jour 😉

---

<div class="post-metadata">

**Author:** ![benPi](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@benPi](https://community.gladysassistant.com/u/benPi)\
**Post date:** [Juin 11, 2020, 7:06 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/12 "2020-06-11T07:06:37Z")

</div>

> [@peb](#):
>
> Les mises à jour d’image se feront fréquemment en fonction de mes disponibilités

Bonjour,  
je suis effectivement pas à l’aise avec Docker 🙂

J’ai une version antérieur de gladysarduino qui tourne

j’ai fait docker pull pebou/gladys:4.0.0-beta-integration-arduino  
j’ai redémarré, fait docker stop avant au cas ou ca chage quelque chose: je suis toujours sur l’ancienne version (je crois) mon installation est toujours paramétrée :

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a71cbae23d3516b0f60a37c738cede6b74e37c5e.png)

`
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c72c17fee6c7 bastilimbach/docker-magicmirror "./docker-entrypoint…" 3 days ago Created magic_mirror
8c805baf4369 nodered/node-red "npm start --cache /…" 3 days ago Exited (0) 23 hours ago 0.0.0.0:1880->1880/tcp mynodered
9685d96b61ef gladysassistant/gladys:4.0.0-beta-arm "docker-entrypoint.s…" 9 days ago Up 32 minutes gladys
21854d30a80c 616f5610c614 "docker-entrypoint.s…" 9 days ago Up 8 minutes gladysarduino
b097e384cc1e containrrr/watchtower "/watchtower --clean…" 9 days ago Exited (1) 9 days ago watchtower
 `

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Juin 11, 2020, 10:31 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/13 "2020-06-11T10:31:13Z")

</div>

C’est le conteneur watchtower qui fait la mise à jour, sur ta capture il est arrêté.

Si tu fais une mise à jour manuellement ( docker pull) il faut détruire puis recréer le conteneur. Un restart n’est pas suffisant car l’image utilisée sera toujours la même.

---

<div class="post-metadata">

**Author:** ![benPi](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@benPi](https://community.gladysassistant.com/u/benPi)\
**Post date:** [Juin 11, 2020, 4:43 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/14 "2020-06-11T16:43:05Z")

</div>

Ok merci, j’ai remis en route watchtower, supprimé et réinstallé le container.

Peut-être que c’est normal, mais j’ai toujours mes boutons créés sur l’ancienne version sur le front avec un RAZ de la partie SETUP arduino. Et des Bugs de partout :

Aucune détection de l’arduino (aucun port ne s’affiche)  
Un page setup “arduino connecté” qui apprait sur toutes les autres pages (sur le dashoard par exemple). Et dans arduino spécifiquement, la création de devices est impossibles et ça plante la page.

suis-je dans le bon container? Je ne sais pas!

---

<div class="post-metadata">

**Author:** ![benPi](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@benPi](https://community.gladysassistant.com/u/benPi)\
**Post date:** [Juin 11, 2020, 5:47 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/15 "2020-06-11T17:47:16Z")

</div>

J’ai tout refait:

**sudo docker rm ebabf2c7747c**  
**docker ps -a**

```
CONTAINER ID IMAGE COMMAND CREATED             
STATUS PORTS NAMES
e036228fe34b containrrr/watchtower:latest "/watchtower --clean…" 23 minutes ago      
Up 23 minutes 8080/tcp watchtower
2c1c670feaed gladysassistant/gladys:4.0.0-beta-arm "docker-entrypoint.s…" 23 minutes ago      
Up 23 minutes gladys
c72c17fee6c7 bastilimbach/docker-magicmirror "./docker-entrypoint…" 3 days ago          
Created magic_mirror
8c805baf4369 nodered/node-red "npm start --cache /…" 4 days ago          
Exited (0) 33 hours ago 0.0.0.0:1880->1880/tcp mynodered

```

` **docker rmi 616f5610c614**  
Untagged: pebou/gladys@sha256:a493f49deb405fe212d7c47c69cf36f26add1140de249ab86089e7a369bf37a5  
Deleted: sha256:616f5610c614c48c5f195d5f44a4720caaf0d2a062fcf63512535192ff66a12c  
Deleted: sha256:76af2dad1d98d697ce73c99c8f447e32a86126b1b6c6fb4c2c46b9af8d800feb  
Deleted: sha256:9147409a7e8e32f65ae50a14946ba05fed976f86b724f102a8ba33b98d6a4606  
Deleted: sha256:5322dfa9ec564d51a74d6e5552d3a230290da0b24d40641a6359cf1f39ed2c2d  
Deleted: sha256:9e42addf5f35458896c699e3b0b3eb0c129013ec0a2a348d14ed6e4a88a2b16f  
Deleted: sha256:ab7720ee3b0d2476b29860ae96d76cabd7b3a706b87f263fdad4aa5bbfcc2952  
Deleted: sha256:6b36611caf3ec82400c68dba9bd46a27e2e7a9598a86ce8ddfc8f18f3a9c64b2  
Deleted: sha256:b2cc8b24f39a35c9cd1c4e7050e54b91c73d257665b6ca543093c8b6d744d7f4  
Deleted: sha256:77126ef85a03e312d976f3b8454149d04a6b1956584466de660b936a9aabe362  
Deleted: sha256:2c9ccb0ac9916fad3222605740145ad87c96dd9f0e3c8420b509a7a376e0e0db

```
 docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gladysassistant/gladys 4.0.0-beta-arm 67e73c308a10 2 days ago 439MB
containrrr/watchtower latest 84378f5d38aa 9 days ago 13.3MB
nodered/node-red latest 777225a60b3b 3 weeks ago 374MB
bastilimbach/docker-magicmirror latest 329771a0fb0d 2 months ago 971MB

 docker pull pebou/gladys:4.0.0-beta-integration-arduino
4.0.0-beta-integration-arduino: Pulling from pebou/gladys
3cfb62949d9d: Already exists
1ef8a3a07026: Pull complete
b0a4348231c5: Pull complete
df326638a053: Pull complete
473593930026: Pull complete
3cd7994af1a5: Pull complete
8e2f51386701: Pull complete
a35f4b5e9d83: Pull complete
b7de55a98bd4: Pull complete
c54655355549: Pull complete
87dccf5f0036: Pull complete
Digest: sha256:e186b79d9d94134c2b2b60486c81ae893a5f88c4df73161f335083ede044d5e7
Status: Downloaded newer image for pebou/gladys:4.0.0-beta-integration-arduino
docker.io/pebou/gladys:4.0.0-beta-integration-arduino

docker run -d \
> --restart=always \
> --privileged \
> --network=host \
> --name gladysarduino \
> -e NODE_ENV=production \
> -e SERVER_PORT=8040 \
> -e TZ=Europe/Paris \
> -e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-arduino.db \
> -v /var/run/docker.sock:/var/run/docker.sock \
> -v /var/lib/gladysassistant:/var/lib/gladysassistant \
> -v /dev:/dev \
> pebou/gladys:4.0.0-beta-integration-arduino
8fb40aba99afd95cf17401a8f34859bf5b1ae904739e9d20f626605fc0c82b3d

```

A partir de là: même concept: mon installation toujours présente (la base de donnée n’a pas été détruite?) et des bug avec le module arduino

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c2e266a95fed81b65d140bc4b458b27ad5daa2a3.png)  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/06d9cc2f53b04c1c6233f2d2dce1d0e1963c4fa5.png)

---

<div class="post-metadata">

**Author:** ![benPi](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@benPi](https://community.gladysassistant.com/u/benPi)\
**Post date:** [Juin 11, 2020, 5:49 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/16 "2020-06-11T17:49:46Z")

</div>

> [@benPi](#):
>
> ` -e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-arduino.db \`

Ok je vois:cette ligne est à changer je pense. Mais par quoi?

```
gladys@raspberrypi:/var/lib/gladysassistant $ dir
gladys-arduino.db gladys-arduino.db-wal gladys-production.db-shm gladys-rflink.db
gladys-arduino.db-shm gladys-production.db gladys-production.db-wal init-containers.sh

```

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Juin 12, 2020, 8:26 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/17 "2020-06-12T08:26:41Z")

</div>

> [@benPi](#):
>
> A partir de là: même concept: mon installation toujours présente (la base de donnée n’a pas été détruite?) et des bug avec le module arduino

Bah non puisque on fait persister la base de données sur l’hôte ( sinon faudrait tout reconfigurer gladys à chaque fois)

Tu dois supprimer /var/lib/gladysassistant/gladys-arduino.db si tu veux une base clean

> [@benPi](#):
>
> Ok je vois:cette ligne est à changer je pense. Mais par quoi

Par ce que tu veux, c’est le nom du fichier db

---

<div class="post-metadata">

**Author:** ![benPi](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/53a042/32.png) [@benPi](https://community.gladysassistant.com/u/benPi)\
**Post date:** [Juin 12, 2020, 10:06 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/18 "2020-06-12T10:06:21Z")

</div>

Merci, j’ai recréé un compte TOujours les bug mais ça je vois sur le topic gladysarduino.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Juin 14, 2020, 10:33 UTC](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280/19 "2020-06-14T10:33:54Z")

</div>

@peb tu peux mettre un lien vers ton gitlab ? j’ai l’impression que ton Dockerfile n’ est pas à jour et j’aimerai voir ce que tu build 😉

Merci !
