Working and ready(ish) for public(ish) consumption)
This commit is contained in:
parent
738ac05ca6
commit
97ae8a07b4
4 changed files with 6 additions and 1 deletions
0
.ko.yaml
Normal file
0
.ko.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
to build without the frames from bad apple :
|
||||||
|
KO_DATA_PATH=/somenonexistantpath ko build .
|
3
build.sh
3
build.sh
|
@ -1,3 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export KO_DOCKER_REPO=git.martyn.berlin/martyn/apples
|
export KO_DOCKER_REPO=git.martyn.berlin/martyn/apples
|
||||||
|
export KO_DATA_PATH=kodata/
|
||||||
|
|
||||||
|
ko build .
|
||||||
|
|
2
main.go
2
main.go
|
@ -354,7 +354,7 @@ func parseSize(c echo.Context, maxWidth int, maxHeight int) tagSize {
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
dataDir = flag.String("data-dir", filepath.Join(".", "kodata", "frames"), "Data directory, where the images are")
|
dataDir = flag.String("data-dir", filepath.Join("/", "var", "run", "ko", "frames"), "Data directory, where the images are")
|
||||||
outDir = flag.String("output-dir", filepath.Join(".", "output"), "Output directory (used as cache) for resized files - set to `%TEMP%` to disable caching and use temp dir, default is DataDir/output")
|
outDir = flag.String("output-dir", filepath.Join(".", "output"), "Output directory (used as cache) for resized files - set to `%TEMP%` to disable caching and use temp dir, default is DataDir/output")
|
||||||
bwBack = flag.Bool("black-white-back", true, "Fill background with black or white (whichever is closest) - good for eInk, if false, uses top-left pixel of image's colour")
|
bwBack = flag.Bool("black-white-back", true, "Fill background with black or white (whichever is closest) - good for eInk, if false, uses top-left pixel of image's colour")
|
||||||
listenPort = flag.Int("listen-port", 8080, "Port to listen on")
|
listenPort = flag.Int("listen-port", 8080, "Port to listen on")
|
||||||
|
|
Loading…
Add table
Reference in a new issue