wire-pod icon indicating copy to clipboard operation
wire-pod copied to clipboard

[Pull request] Docker installation added to wiki

Open Zippy-boy opened this issue 2 years ago • 23 comments

Iv got the markdown for the docker install for the wiki. Apparently you cant create a pull request for the wiki /:

Guide 5: Docker compose

  1. On the device you would like to install wire-pod on, make sure you have docker installed. This can be done with the command sudo apt install docker-ce for linux.
  2. Verify if the docker engine is working with the command sudo service docker status
  3. Run this command to create and download the wire-pod application
docker compose up -d -f https://raw.githubusercontent.com/kercre123/wire-pod/main/compose.yaml
  1. With a device on the same network as wire-pod, open a browser and head to the configuration page. http://YOUR_IP:8080. In that page, follow the instructions. Wire-pod should then be set up!
  2. Continue on to "Authenticate the bot with wire-pod", near the bottom of this page.

LINK: https://github.com/Zippy-boy/wire-pod/blob/master/Installation.md

Zippy-boy avatar Jan 30 '24 10:01 Zippy-boy

IIAC you are using linux/amd64?

g0t4 avatar May 11 '24 23:05 g0t4

I am using linux/amd64 on my server.

Zippy-boy avatar May 12 '24 13:05 Zippy-boy

Is this just a suggestion, or does this work?

TypicalZedF avatar May 12 '24 20:05 TypicalZedF

This does work for an Ubuntu install. And is very similar for other OS's running docker.

Zippy-boy avatar May 21 '24 20:05 Zippy-boy

What if i can't use port 8080...? Every software wants to use port 80 or 8080-

TypicalZedF avatar Jun 15 '24 04:06 TypicalZedF

Then you can curl the compose file and change the port to something else. And then compose up

Zippy-boy avatar Jun 15 '24 07:06 Zippy-boy

Do you think I could get this to work with Casa OS?

TypicalZedF avatar Jun 15 '24 07:06 TypicalZedF

Yep, 100% Just make sure that when you change the port for the web UI change the left port but keep the right one at 8080. Like this 2342:8080

Zippy-boy avatar Jun 15 '24 08:06 Zippy-boy

Command still seems to work for me (aswell as the image pulling). Try curl -O https://raw.githubusercontent.com/kercre123/wire-pod/main/compose.yaml And then docker compose up -d

Zippy-boy avatar Jun 15 '24 08:06 Zippy-boy

Something is wrong with the compose. Try running docker search ghcr.io/kercre123/wire-pod on my terminal to check and well...

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/images/search?term=ghcr.io%2Fkercre123%2Fwire-pod": dial unix /var/run/docker.sock: connect: permission denied

Then I tried a Sudo:

sudo docker search ghcr.io/kercre123/wire-pod
Error response from daemon: Unexpected status code 404

TypicalZedF avatar Jun 15 '24 08:06 TypicalZedF

Huh, odd. The image should be available to the public as it's a public repo. Try sudo usermod -aG docker ${USER} And sudo chmod 666 /var/run/docker.sock

And then restart the computer.

If this doesn't work, you may have to docker login with github, but I don't think that's the issue.

Zippy-boy avatar Jun 15 '24 08:06 Zippy-boy

This didn't seem to work

TypicalZedF avatar Jun 15 '24 08:06 TypicalZedF

Now that's odd. Il have a look into that later. For now, it might be easier to build the docker image yourself then. Give me a sec and il get you the commands (:

Zippy-boy avatar Jun 15 '24 09:06 Zippy-boy

So, pull the repo git clone https://github.com/kercre123/wire-pod.git cd wire-pod Replace the compose.yml file with

services:
  wire-pod:
    hostname: escapepod
    build: 
      context: .
    restart: unless-stopped
    ports:
      - 443:443
      - 8080:8080
      - 80:80
      - 8084:8084
    volumes:
      - wire-pod-data:/chipper/
      - wire-pod-model:/vosk/
volumes:
  wire-pod-data:
    driver: local
  wire-pod-model:
    driver: local

And then docker compose up -d

Zippy-boy avatar Jun 15 '24 09:06 Zippy-boy

@Zippy-boy Hello there, I received the error below while attempting to docker compose up on a raspberry pi, is there a way around it?

Error: "no matching manifest for linux/arm64/v8 in the manifest list entries"

Thank you for this!

Edit: If this helps in any way, I already have vector running on wire-pod directly on the pi, but i am moving all my services to docker containers instead

YoussefElSayad avatar Jul 04 '24 21:07 YoussefElSayad

Hey, I haven't tried running docker wirepod on a raspberry pi yet, but I think if you add platform: linux/amd64 inside the wirepod service in the compose.yml file it should work. Let me know if you need any more help :)

Zippy-boy avatar Jul 04 '24 22:07 Zippy-boy

Thank you for the quick response, that did work! Now I just gotta figure out what ports to use instead of 80, 443, 8080 and 8084.

Thank you!

YoussefElSayad avatar Jul 04 '24 22:07 YoussefElSayad

@YoussefElSayad, the only port you can change is 8080, I'm pretty sure. The vector firmware forces the rest. Don't change them!!

Zippy-boy avatar Jul 04 '24 22:07 Zippy-boy

@Zippy-boy What can i do if these ports are being used though? I think they are currently used by my current wire-pod installation on the raspberry pi but I wanted to ensure docker was running correctly in order to keep my vector up and running

YoussefElSayad avatar Jul 04 '24 22:07 YoussefElSayad

I would recommend stopping the wirepod service and testing with the docker version. If you find that it doesn't work, you can always stop the docker version and start back up the local one, no files or configs will be lost

Zippy-boy avatar Jul 04 '24 22:07 Zippy-boy

Hello, it's me again! Just thought I'd update this thread with how I managed to get it to run on my raspberry pi

By simply using docker buildx i was able to create a new image locally with my preferred architecture, and afterwards i updated the docker compose file to use the newly created image, and tada! At first it brought me to the initial setup screen, however i later managed to have it read my existing data.

I'd be more than happy to help if anyone faced the same issue i faced, and thanks again @Zippy-boy for the prompt and helpful responses!

YoussefElSayad avatar Jul 24 '24 22:07 YoussefElSayad