1{ sources ? import ./sources.nix
2, octopod-css ? import ../octopod-css { inherit pkgsSrc; }
3, migrations ? ../migrations
4, system ? builtins.currentSystem
5, hsPkgs ? import ./.. { inherit system prod; }
7, pkgsSrc ? hsPkgs.pkgsSrc
11 octo-cli = hsPkgs.octo-cli.components.exes.octo;
12 octopod-backend = hsPkgs.octopod-backend.components.exes.octopod-exe;
14 closurecompiler = (import sources.nixpkgs { inherit system; }).closurecompiler;
16 octopod-frontend-ugly =
17 let frontend = hsPkgs.octopod-frontend-pretty;
19 pkgs.runCommand "octopod-frontend-ugly"
23 cp -av ${frontend}/* $out
28 ${closurecompiler}/bin/closure-compiler --compilation_level ADVANCED --jscomp_off=checkVars --warning_level QUIET --js ${frontend}/all.js --externs ${frontend}/all.js.externs --js_output_file $out/all.js
29 ${pkgs.zopfli}/bin/zopfli $out/**/*.{js,css,json,html}
32 octopod-server-container = pkgs.dockerTools.buildImage {
33 name = "octopod-server-container-slim";
34 contents = with pkgs; [
49 mkdir -p /home/octopod
50 useradd octopod -d /home/octopod
51 chown octopod.octopod /home/octopod
53 mkdir -p /migrations/{deploy,revert,verify}
54 cp -av ${migrations}/* /migrations/
57 cp -av ${octopod-frontend-ugly}/* /www
61 let entrypoint = "${octopod-backend}/bin/octopod-exe"; in
63 Entrypoint = [ entrypoint ];
72 "host='127.0.0.1' port=5432 user='octopod' password='octopod'"
77 "PATH=/utils:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
79 "ENTRYPOINT=${entrypoint}"
84 octo-cli-container = pkgs.dockerTools.buildImage {
85 name = "octo-cli-container-slim";
86 contents = with pkgs; [ cacert ];
88 config = let entrypoint = "${octo-cli}/bin/octo"; in
90 Entrypoint = [ entrypoint ];
92 "ENTRYPOINT=${entrypoint}"
98 inherit octo-cli-container octopod-server-container octopod-frontend-ugly;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list