on master help sign in
Made things actually work
commit497d7c4c39813099d5df99e7c1e72d4190b5063a authoriko <ilyakooo0@gmail.com> dateMon 24 Feb 2020, 15:23 (7 years ago) parentffe9aed
4 files changed+21−1
README.md+17 package.yaml+2 src/Server/Config.hs+1−1 tasks.yaml+1
README.mdnew file+17
@@ -0,0 +1,17 @@
1+# sc-build
2+
3+Need both manual weebohook and app.
4+
5+Installation id needs to be configured manually.
6+
7+For macos docker API:
8+
9+```bash
10+socat TCP-LISTEN:1234,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock
11+```
12+
13+or this (didn't work for me):
14+
15+```bash
16+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
17+```
package.yaml+2
@@ -63,6 +63,8 @@ executables:
6363 - -with-rtsopts=-N
6464 dependencies:
6565 - sc-build
66+ - bytestring
67+ - yaml
6668 sc-build-migrations:
6769 main: Main.hs
6870 source-dirs: migrations
src/Server/Config.hs+1−1
@@ -72,7 +72,7 @@ defaultConfig =
7272 }
7373
7474getConfig :: IO Config
75−getConfig = decodeThrow "config.yaml"
75+getConfig = decodeFileThrow "config.yaml"
7676
7777-- getConfig :: IO Config
7878-- getConfig =
tasks.yaml+1
@@ -8,3 +8,4 @@ test-task:
88 COPY . src
99 WORKDIR /src
1010 ENTRYPOINT stack test --fast
11+ timeoutMinutes: 10