Made things actually work

This commit is contained in:
iko 2020-02-24 15:23:20 +03:00
parent ffe9aedd90
commit 497d7c4c39
4 changed files with 21 additions and 1 deletions

17
README.md Normal file
View File

@ -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
```

View File

@ -63,6 +63,8 @@ executables:
- -with-rtsopts=-N
dependencies:
- sc-build
- bytestring
- yaml
sc-build-migrations:
main: Main.hs
source-dirs: migrations

View File

@ -72,7 +72,7 @@ defaultConfig =
}
getConfig :: IO Config
getConfig = decodeThrow "config.yaml"
getConfig = decodeFileThrow "config.yaml"
-- getConfig :: IO Config
-- getConfig =

View File

@ -8,3 +8,4 @@ test-task:
COPY . src
WORKDIR /src
ENTRYPOINT stack test --fast
timeoutMinutes: 10