floens / uchan

µchan – Fast anonymous imageboard software
http://floens.github.io/uchan/
MIT License
131 stars 21 forks source link

The easiest way to start for newbie #28

Open streanger opened 1 year ago

streanger commented 1 year ago

Hey! I wanted to run uchan on Linux, but it fails on build. I replaced docker-compose with docker compose in Makefile, and then run it with command make setup. It shows warning and after some building steps finally crashes:

WARN[0000] The "UCHAN_PORT" variable is not set. Defaulting to a blank string.
[+] Building 0.0s (0/1)
[+] Building 0.0s (0/2)
[+] Building 0.2s (2/3)
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
[+] Building 0.2s (2/3)
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
[+] Building 1.1s (3/12)
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
[+] Building 1.0s (3/12)
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                              0.0s
[+] Building 1.2s (3/12)
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
[+] Building 1.1s (3/12)
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                              0.0s
[+] Building 1.2s (6/12)
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
[+] Building 1.2s (7/12)
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
[+] Building 1.2s (7/12)
 => [internal] load build definition from Dockerfile                                                                                           0.0s
 => => transferring dockerfile: 788B                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                              0.0s
 => => transferring context: 216B                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/alpine:3.6                                                                                  0.9s
 => CANCELED [1/8] FROM docker.io/library/alpine:3.6@sha256:66790a2b79e1ea3e1dabac43990c54aca5d1ddf268d9a5a0285e4167c8b24475                   0.2s
 => => resolve docker.io/library/alpine:3.6@sha256:66790a2b79e1ea3e1dabac43990c54aca5d1ddf268d9a5a0285e4167c8b24475                            0.0s
 => => sha256:66790a2b79e1ea3e1dabac43990c54aca5d1ddf268d9a5a0285e4167c8b24475 1.41kB / 1.41kB                                                 0.0s
 => => sha256:36c3a913e62f77a82582eb7ce30d255f805c3d1e11d58e1f805e14d33c2bc5a5 528B / 528B                                                     0.0s
 => => sha256:43773d1dba76c4d537b494a8454558a41729b92aa2ad0feb23521c3e58cd0440 1.51kB / 1.51kB                                                 0.0s
 => => sha256:5a3ea8efae5d0abb93d2a04be0a4870087042b8ecab8001f613cdc2a9440616a 0B / 2.02MB                                                     0.2s
 => [internal] load build context                                                                                                              0.2s
 => => transferring context: 16.10MB                                                                                                           0.2s
 => CACHED [2/8] RUN apk update &&    apk add python3-dev             uwsgi uwsgi-python3             build-base bash             libffi-dev   0.0s
 => ERROR [3/8] ADD requirements /opt/app/requirements                                                                                         0.0s
------
 > [3/8] ADD requirements /opt/app/requirements:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::1z31onjgqy8fbxcs0mkshwqzz: "/requirements": not found
make: *** [Makefile:26: start] Error 17

I assume that README.md is not up to date while the last update was 4 years ago. Can you help me with easy start?

floens commented 1 year ago

I recommend waiting for a bit (famous last words ;)) I'm writing a Helm chart, and the docker-compose stack will be removed (or only for development purposes). With the Helm chart, you'll be able to deploy µchan and it's dependencies on Kubernetes.

streanger commented 1 year ago

@floens ok, I will wait for updates

floens commented 1 year ago

I published the Helm charts to the repo, and I've started with proper documentation. There's just one page now, but I hope that it will be useful: https://floens.github.io/uchan/installation.html

streanger commented 1 year ago

@floens thanks, I'll try it in my free time and give you feedback