repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
c5a0909
parent
cff790d
author
Christopher Hoelter
date
2023-07-04 04:27:04 +0000 UTC
Updates for macOS build compatibility. (#20)

Updated the readme to include a reference to a macOS system package dependency.
Added minor additional notes on direnv and running the project.
Upgraded project package dependency that includes a macOS build fix.
3 files changed,  +13, -2
M go.mod
M go.sum
M README.md
+10, -1
 1@@ -20,11 +20,19 @@ This repo hosts the following pico services:
 2 
 3 - `golang` >= 1.19
 4 - `direnv` to load environment vars
 5+- `webp` macOS dependency
 6+  - can be installed with `brew install webp`
 7 
 8 ```bash
 9 cp ./.env.example .env
10 ```
11 
12+Initialize local env variables using direnv
13+
14+```bash
15+echo dotenv > .envrc && direnv allow
16+```
17+
18 Boot up database
19 
20 ```bash
21@@ -46,7 +54,7 @@ make build
22 
23 All services are built inside the `./build` folder.
24 
25-If you want to start prose:
26+If you want to start prose execute these binaries from the project root directory:
27 
28 ```bash
29 ./build/prose-web
30@@ -54,6 +62,7 @@ If you want to start prose:
31 ./build/prose-ssh
32 ```
33 
34+
35 ## deployment
36 
37 We use an image based deployment, so all of our images are uploaded to
M go.mod
+1, -1
1@@ -14,7 +14,7 @@ require (
2 	github.com/disintegration/imaging v1.6.2
3 	github.com/gliderlabs/ssh v0.3.5
4 	github.com/gorilla/feeds v1.1.1
5-	github.com/kolesa-team/go-webp v1.0.2
6+	github.com/kolesa-team/go-webp v1.0.4
7 	github.com/lib/pq v1.10.7
8 	github.com/matryer/is v1.4.0
9 	github.com/microcosm-cc/bluemonday v1.0.21
M go.sum
+2, -0
1@@ -122,6 +122,8 @@ github.com/klauspost/cpuid/v2 v2.2.2 h1:xPMwiykqNK9VK0NYC3+jTMYv9I6Vl3YdjZgPZKG3
2 github.com/klauspost/cpuid/v2 v2.2.2/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
3 github.com/kolesa-team/go-webp v1.0.2 h1:XCrWqxI7tNOI3dr0YufD9TUb+54vBDogg9KsHH7q5Lc=
4 github.com/kolesa-team/go-webp v1.0.2/go.mod h1:oMvdivD6K+Q5qIIkVC2w4k2ZUnI1H+MyP7inwgWq9aA=
5+github.com/kolesa-team/go-webp v1.0.4 h1:wQvU4PLG/X7RS0vAeyhiivhLRoxfLVRlDq4I3frdxIQ=
6+github.com/kolesa-team/go-webp v1.0.4/go.mod h1:oMvdivD6K+Q5qIIkVC2w4k2ZUnI1H+MyP7inwgWq9aA=
7 github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=
8 github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
9 github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=