# Install GLADYS 2 on the raspberry for testing

**URL:** <https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360>\
**Category:** Configuration\
**Created:** [May 6, 2020, 7:34pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360 "2020-05-06T19:34:12Z")\
**Posts on this page:** 14\
**Page:** 1

<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:** [May 6, 2020, 7:34pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/1 "2020-05-06T19:34:13Z")

</div>

Hello,  
A quick question about testing: I don’t want to test Gladys on my computer for space reasons and to get as close as possible, so directly on the RPI3.

I’m just starting to test the Arduino module. I’ve (roughly) understood the clone and install steps.

My question 1: Can we put 2 Gladys on the Raspberry SD card, knowing that I have all my setups on my personal GLADYS and I want to work in parallel on the fork with the Arduino module.

My question 2: It was really practical to import and test a module in your personal environment, you just had to import a folder. Isn’t there a way to not have several complete versions of gladys by piece developed? It’s a lot of versions in the end I’m not even sure I have the official one (gladys-4-playground?).

I might still need a bit of advice to understand how everything works.

Last question while I’m at it: if someone wants Gladys modules or really very specific programs for themselves (for example, I would like to run programs like a music player, install everything we do on the RPI these days, Plex, smart mirror, etc.) how do we integrate them?

Thanks,

---

<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:** [May 7, 2020, 5:44am UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/2 "2020-05-07T05:44:14Z")

</div>

Hello,

In my opinion, the easiest way to run multiple Gladys instances on your Pi is to use Docker images in a `docker-compose` file. You just need to declare different folders for the mounted volume and change the shared port. Here is an example:

```yaml
version: '3.3'
services:
  gladys:
    image: gladysassistant/gladys:4.0.0-beta-arm
    restart: always
    privileged: true
    network: host
    environment:
      NODE_ENV: production
      SQLITE_FILE_PATH: /var/lib/gladysassistant/gladys-production.db
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/gladysassistant:/var/lib/gladysassistant
      - /dev:/dev
    ports:
      - '80:1443'
      - '443:1443'
  gladysrflink:
    image: 'pebou/gladys:4.0.0-beta-integration-rflink-arm'
    restart: always
    privileged: true
    network_mode: host
    container_name: gladys-rflink
    environment:
      NODE_ENV: production
      TZ: Europe/Paris
      SQLITE_FILE_PATH: /var/lib/gladysassistant-rflink/gladys-production.db
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '/var/lib/gladysassistant:/var/lib/gladysassistant'
      - '/dev:/dev'
    ports:
      - '30080:1443'
      - '30443:1443'
  watchtower:
    image: containrrr/watchtower:armhf-latest
    restart: always
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

```

---

<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:** [May 8, 2020, 10:54am UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/3 "2020-05-08T10:54:14Z")

</div>

Thank you, my 64GB card is full of Gladys… I’m surprised. I don’t know where to start over.

---

<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:** [May 8, 2020, 12:14pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/4 "2020-05-08T12:14:54Z")

</div>

If you have a lot of unused images, I invite you to run a quick:

```bash
docker system prune

```

To remove unused images/containers. This should free up some space.

Documentation:

> **[docker system prune](https://docs.docker.com/reference/cli/docker/system/prune/)**

---

<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:** [May 8, 2020, 12:16pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/5 "2020-05-08T12:16:14Z")

</div>

Also, you mention «&nbsp;gladys-4-playground&nbsp;», that’s very old, back when Gladys 4 was not in alpha.

If you are on an old Raspbian Gladys image, start over with the new Raspbian image ([A privacy-first, open-source home assistant | Gladys Assistant](https://documentation.gladysassistant.com/fr/installation#raspberry-pi))

---

<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:** [May 8, 2020, 12:46pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/6 "2020-05-08T12:46:11Z")

</div>

Where if you want I need feedback on this topic [https://community.gladysassistant.com/t/test-image-raspbian-beta](https://community.gladysassistant.com/t/test-image-raspbian-beta)

---

<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:** [May 8, 2020, 2:01pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/7 "2020-05-08T14:01:40Z")

</div>

Ok so to summarize:

I re-flash Gladys with the latest image on my SD card. (I have the tasmota module inside I think I have the right version but since I don’t know what to delete I have to start from there)  
I install docker  
I install the Gladys version I want to test with docker (the one with the 433 module)  
then I imagine I can’t modify anything, just test.  
I’d be happy to provide feedback on [https://community.gladysassistant.com/t/test-image-raspbian-beta](https://community.gladysassistant.com/t/test-image-raspbian-beta) but it’s too vague it will take me a week just to install the mess. 🙂 I’ll go take my developer’s master and I’ll be back!

---

<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:** [May 8, 2020, 2:32pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/8 "2020-05-08T14:32:39Z")

</div>

The image already contains Gladys and docker, you have nothing to do.

The link I gave you is a new Raspbian image, either you use the official one, or the one in the topic I gave you.

In both cases, you just have to flash the image.

Edit to test another docker image, you just have to create another docker container, for example for the 433 (RFLink?)

```bash
docker run -d \
--restart=always \
--privileged \
--network=host \
--name gladysrflink \
-e NODE_ENV=production \
-e SERVER_PORT=8040 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-rflink.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-rflink

```

And you will have access on port 8040

---

<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:** [May 8, 2020, 9:43pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/9 "2020-05-08T21:43:02Z")

</div>

Very well. However, it’s not RFLINK, it’s Arduino 433. from @billona

So this: [Images 🐳 pour tester des services en développement](https://community.gladysassistant.com/t/images-pour-tester-des-services-en-developpement/5280)  
[pebou/gladys - Docker Image](https://hub.docker.com/r/pebou/gladys/tags?page=1&name=4.0.0-beta-integration-arduino)

---

<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:** [May 9, 2020, 1:38pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/10 "2020-05-09T13:38:18Z")

</div>

I tried something but it doesn’t work.

gladys@raspberrypi:~ $ 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/4.0.0-beta-integration-arduino  
> Unable to find image ‹&nbsp;pebou/4.0.0-beta-integration-arduino:latest&nbsp;› locally  
> docker: Error response from daemon: pull access denied for pebou/4.0.0-beta-integration-arduino, repository does not exist or may require ‹&nbsp;docker login&nbsp;›: denied: requested access to the resource is denied.  
> See ‹&nbsp;docker run --help&nbsp;›.

---

<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:** [May 10, 2020, 6:43am UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/11 "2020-05-10T06:43:22Z")

</div>

The name of the Docker image you provided is not correct, it’s `pebou/gladys:4.0.0-beta-integration-arduino`

---

<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:** [May 10, 2020, 12:15pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/12 "2020-05-10T12:15:59Z")

</div>

It seems obvious, can you put the complete code that I need to send? I’ve made a lot of replacements and combinations, it doesn’t work.

@VonOx gladys with the automatic build is functional. Do I need to check something in particular?

---

<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:** [May 10, 2020, 12:24pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/13 "2020-05-10T12:24:44Z")

</div>

You’re talking about this Raspbian image? =\> [[TEST] Image Raspbian Beta](https://community.gladysassistant.com/t/test-image-raspbian-beta/5311)

I managed to pull the image from @peb

```
docker pull pebou/gladys:4.0.0-beta-integration-arduino
4.0.0-beta-integration-arduino: Pulling from pebou/gladys
cbdbe7a5bc2a: Already exists
8f3938f7d3bd: Already exists
6e3c12f5dc10: Already exists
ce0cb7a9eeee: Already exists
59f74697acb6: Pull complete
361a7ffc3fa4: Pull complete
39c031af9eb6: Pull complete
468a5a64d661: Pull complete
3ea6567c65ec: Pull complete
cab474f2725a: Pull complete
Digest: sha256:ddcdda51ef26b60e6838df0e488a72f692406de9f13516ceafddfd0a2b478600
Status: Downloaded newer image for pebou/gladys:4.0.0-beta-integration-arduino
docker.io/pebou/gladys:4.0.0-beta-integration-arduino

```

To create the container, this should work

```sh
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

```

---

<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:** [May 10, 2020, 1:14pm UTC](https://community.gladysassistant.com/t/installer-2-gladys-sur-le-raspberry-pour-tests/5360/14 "2020-05-10T13:14:52Z")

</div>

> [@VonOx](#):
>
> Are you talking about this Raspbian image? → [[TEST] Raspbian Beta Image](https://community.gladysassistant.com/t/test-image-raspbian-beta/5311)

Yes, that’s it.

> [@VonOx](#):
>
> 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

It seems to work! However, on port 8040, I then get the RFLINK version that was previously installed.  
I created a docker-compose file, but the folders in SSH do not seem to allow writing.
