Lasa is a stateless proxy that generates a RSS or an Atom feed from a Standard.site publication. lasa.anhgelus.world
rss atom atprotocol standard-site atproto
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

build(docker): compose file for prod

Create recipe to publish docker image

+42 -9
+22 -6
README.md
··· 66 66 You must have **scdoc** installed to build the man pages. 67 67 If scdoc is not installed, it skips the building. 68 68 69 - You can use 69 + ### Installing 70 + 71 + Building and installing binaries and man pages to `/usr/local/`: 72 + ```bash 73 + just install 74 + ``` 75 + 76 + ### Docker 77 + 78 + Lasa can be used easily with Docker. 79 + 80 + You can build the Docker image containing `lasa` and `lasad` with: 70 81 ```bash 71 82 just build-docker localhost/lasa 72 83 ``` 73 - to build the Dockerfile containing `lasa` and `lasad`. 74 - You can replace `localhost/lasa` by the name of the image. 84 + where `localhost/lasa` by the name of the image. 75 85 76 - ### Installing 86 + You can start the compose file in dev mode with: 87 + ```bash 88 + just dev-docker 89 + ``` 77 90 78 - Building and installing binaries and man pages to `/usr/local/`: 91 + You can deploy the container in production by copying the `compose.yml` and running: 79 92 ```bash 80 - just install 93 + docker compose --profile prod up -d 94 + # if you use podman 95 + podman compose --profile prod up -d 81 96 ``` 97 + It will use the official image [`anhgelus.world/lasa`](https://atcr.io/r/anhgelus.world/lasa) hosted on ATCR.
+12 -1
compose.yml
··· 1 1 services: 2 - lasa: 2 + lasa-dev: 3 3 build: . 4 4 ports: 5 5 - 8000:8000 ··· 11 11 # required, otherwise DNS server misbehaving 12 12 - 8.8.8.8 13 13 - 8.8.4.4 14 + profiles: [dev] 15 + lasa: 16 + image: atcr.io/anhgelus.world/lasa 17 + volumes: 18 + - ./config.toml:/etc/lasad.toml 19 + depends_on: 20 + - redis 21 + dns: 22 + - 8.8.8.8 23 + - 8.8.4.4 24 + profiles: [prod] 14 25 redis: 15 26 image: docker.io/library/redis:alpine
+8 -2
justfile
··· 10 10 11 11 dev-docker: 12 12 {{docker}} compose build 13 - {{docker}} compose up -d 13 + {{docker}} compose --profile dev up -d 14 14 15 15 redis: 16 16 {{docker}} run --rm --name {{redis_container}} -p 6379:6379 -d docker.io/library/redis:alpine ··· 21 21 build: build-lasa build-lasad 22 22 23 23 build-lasa: 24 - {{builder}} -o build/lasa ./cmd/lasa/ 24 + @{{builder}} -o build/lasa ./cmd/lasa/ 25 25 # do not require building man pages 26 26 -just build-doc lasa 27 27 ··· 43 43 -mkdir -p /usr/local/man/man1 44 44 -mv build/lasa.1 /usr/local/man/man1/ 45 45 -mv build/lasad.1 /usr/local/man/man1/ 46 + 47 + publish-docker registry name tag: 48 + just build-docker {{registry / name}}:{{tag}} 49 + {{docker}} tag {{registry / name}}:{{tag}} {{registry / name}}:latest 50 + #{{docker}} push {{registry / name}}:{{tag}} 51 + #{{docker}} push {{registry / name}}:latest