selfhostable, read-only reddit client

rework docker image bits

+3 -28
+1 -2
.github/workflows/publish-docker.yml
··· 14 uses: actions/checkout@v4 15 16 - name: build docker image 17 - run: docker build . 18 19 - name: log in to github container registry 20 uses: docker/login-action@v3 ··· 25 26 - name: publish docker image 27 run: | 28 - docker load < result 29 docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest 30 docker push ghcr.io/${{ github.repository_owner }}/lurker:latest
··· 14 uses: actions/checkout@v4 15 16 - name: build docker image 17 + run: docker build -t lurker:latest . 18 19 - name: log in to github container registry 20 uses: docker/login-action@v3 ··· 25 26 - name: publish docker image 27 run: | 28 docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest 29 docker push ghcr.io/${{ github.repository_owner }}/lurker:latest
+2 -23
flake.nix
··· 41 cp -R ./node_modules/* $out/node_modules 42 ls -la $out/node_modules 43 ''; 44 - outputHash = "sha256-iv1DddCTB1yyu21Ev/c4xtLHSvDas9jQAO2Ob9Iah2Q="; 45 outputHashAlgo = "sha256"; 46 outputHashMode = "recursive"; 47 }; ··· 73 74 ''; 75 }; 76 - dockerImage = with final; 77 - final.dockerTools.buildImage { 78 - name = pname; 79 - tag = "latest"; 80 - 81 - copyToRoot = final.buildEnv { 82 - name = "image-root"; 83 - paths = [final.lurker]; 84 - pathsToLink = ["/bin"]; 85 - }; 86 - 87 - runAsRoot = '' 88 - mkdir -p /data 89 - ''; 90 - 91 - config = { 92 - Cmd = ["/bin/${pname}"]; 93 - WorkingDir = "/data"; 94 - Volumes = {"/data" = {};}; 95 - }; 96 - }; 97 }; 98 99 devShell = forAllSystems (system: let ··· 108 }); 109 110 packages = forAllSystems (system: { 111 - inherit (nixpkgsFor."${system}") lurker node_modules dockerImage; 112 }); 113 114 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".lurker);
··· 41 cp -R ./node_modules/* $out/node_modules 42 ls -la $out/node_modules 43 ''; 44 + outputHash = "sha256-wCMsk/gR+U5fCHcRj7Mxvh9Lg6wZAtMn7CvjyCPar+g="; 45 outputHashAlgo = "sha256"; 46 outputHashMode = "recursive"; 47 }; ··· 73 74 ''; 75 }; 76 }; 77 78 devShell = forAllSystems (system: let ··· 87 }); 88 89 packages = forAllSystems (system: { 90 + inherit (nixpkgsFor."${system}") lurker node_modules; 91 }); 92 93 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".lurker);
-3
readme.md
··· 60 # pull the latest image from gh container registry 61 $ docker pull ghcr.io/oppiliappan/lurker:latest 62 63 - # the image will be marked as created on 1970, this is a 64 - # quirk of using nix, it should not affect usage 65 - $ docker image ls 66 REPOSITORY TAG IMAGE ID CREATED SIZE 67 ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB 68
··· 60 # pull the latest image from gh container registry 61 $ docker pull ghcr.io/oppiliappan/lurker:latest 62 63 REPOSITORY TAG IMAGE ID CREATED SIZE 64 ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB 65