diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0f3ebb --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# sc-build + +Need both manual weebohook and app. + +Installation id needs to be configured manually. + +For macos docker API: + +```bash +socat TCP-LISTEN:1234,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock +``` + +or this (didn't work for me): + +```bash +docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 127.0.0.1:2357:1234 bobrik/socat TCP-LISTEN:1234,fork UNIX-CONNECT:/var/run/docker.sock +``` diff --git a/package.yaml b/package.yaml index eab8c79..7486bf3 100644 --- a/package.yaml +++ b/package.yaml @@ -63,6 +63,8 @@ executables: - -with-rtsopts=-N dependencies: - sc-build + - bytestring + - yaml sc-build-migrations: main: Main.hs source-dirs: migrations diff --git a/src/Server/Config.hs b/src/Server/Config.hs index a16824e..6b1cbd5 100644 --- a/src/Server/Config.hs +++ b/src/Server/Config.hs @@ -72,7 +72,7 @@ defaultConfig = } getConfig :: IO Config -getConfig = decodeThrow "config.yaml" +getConfig = decodeFileThrow "config.yaml" -- getConfig :: IO Config -- getConfig = diff --git a/tasks.yaml b/tasks.yaml index 84addb2..f00a162 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -8,3 +8,4 @@ test-task: COPY . src WORKDIR /src ENTRYPOINT stack test --fast + timeoutMinutes: 10