Docker for local environment #4249
Replies: 4 comments 3 replies
-
|
The Docker command you sketched is using the wrong container-side shape for the documented setup. Paperclip's Docker docs and quickstart compose file expose the app on container port For a LAN-only test I would either use the documented compose quickstart, with the public URL changed to the address you will actually open in the browser: BETTER_AUTH_SECRET="$(openssl rand -hex 32)" \
PAPERCLIP_PUBLIC_URL="http://10.0.0.X:3100" \
docker compose -f docker/docker-compose.quickstart.yml up --buildor mirror the documented one-container command: docker build -t paperclip-local .
docker run --name paperclip \
-p 3100:3100 \
-e HOST=0.0.0.0 \
-e PAPERCLIP_HOME=/paperclip \
-e PAPERCLIP_PUBLIC_URL=http://10.0.0.X:3100 \
-e BETTER_AUTH_SECRET="$(openssl rand -hex 32)" \
-v "$PWD/data/docker-paperclip:/paperclip" \
paperclip-localThen open |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply, cookesan. This path leads me to the same dead end. Following your instructions, I can spin up the container, but when I open 10.0.0.X:3100, I get this message:
I'm using Portainer, so I go to the papreclip container, open a shell and run the requested command:
I say yes, it does what it needs to do and then runs the command again, with this output:
While still in the console I try to run 'paperclip onboard' but there is no paperclip command to run:
I've tried to use 'find' to see if there's a way to run 'paperclip' in the console but there doesn't appear to be. At this point I'm stuck. If I look in the host data directory I can see that it created a directory structure, but there's no config.json to add my local IP to. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
OK, you were pretty fast, and I didn't see this until after I made some progress! Here's what I did and where I'm at: 'paperclip onboard' was wrong, 'pnpm paperclipai onboard' worked. I selected the quickstart option and it created the config files. (I told it not start start paperclip, as it was already running in my terminal.) I restarted the container in Portainer, but it threw an error about not being able to write to .env. I looked in the data directory and the new files the quickstart created were owned by root. I did a 'chown -R user:user *' and the container was able to start without errors. At this point it's still telling me I can't access via my IP, so I went back to the container console in Portainer and ran 'pnpm paperclipai allowed-hostname 10.0.0.X' and restarted the container. Then it told me there was no CEO, so I went to the console to run 'pnpm paperclipai auth bootstrap-ceo'. I copied the generated link and opened it up. Finally!! I'm now at the 'Set up Paperclip' screen, so I enter my name, email and password. Of course, it's now throwing a 'invalid origin' error when I click 'Create account and continue'. I'm guessing my issue is related to the server setup in config.json: Is there a way around the 'invalid origin' error? Thanks for the help, I really appreciate it. I think got to where you were leading me, just in a more convoluted way, ha! |
Beta Was this translation helpful? Give feedback.
-
|
OK, good progress! Using your updates to the docker run command I can now run the onboard and bootstrap-ceo fucntions without error and create my company! Huzzah! The only issue I can't seem to solve is the host files permissions after running the onboard task. I still have to run chown to fix it. Here's the command I'm running:
USER_ID and USER_GID match the args in the Dockerfile so I was hoping that would work. I tried to add this to the Dockerfile:
This throws an error about the GID 1000 already being in use. This is as far my research took me and I'm not good enough with Docker to know how to fix it. I guess I only have to fix permissions once (I hope?), but it would be nice to have it work without the extra step. At this point I'm in, so now I have to figure out how to point the CEO agent to my hermes agent running on a different computer. Sounds like a good project for tomorrow! Thanks again for the help, I really appreciate it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, I've been trying most of the day to get paperclip running locally. I have a dedicated docker server that I'd like to have it running on, accessible from my local network. Can someone help get a docker command going that will spin up Paperclip, that's accessible from my home network, that's not tied to a domain? I just want to spin up the container, get the secret invite, go to http://10.0.0.X:3000/invite/XXXX, create an account using my business email and get going.
I started with cloning the repo and trying to use the docker compose files, but I always run into a roadblock. I switched to published container thinking that would be easier, but still no luck. Here's what I've been trying:
I've tried the docs, searching, and I just can't seem to get it so that I can create an account from a workstation on my local network, create an account and get up and running. I don't need an enterprise ready, highly secure setup. I'm just playing around at home.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions