Switch to docker.
Some checks failed
build-staging Build build-staging has failed

This commit is contained in:
Tom Alexander
2026-07-13 21:23:14 -04:00
parent f95fb5611a
commit a2b3bf3c69
2 changed files with 11 additions and 6 deletions

View File

@@ -2,6 +2,9 @@
# Builder # Builder
# #
FROM scratch AS private
ADD git@code.fizz.buzz:talexander/homepage_private.git /homepage_private
FROM nixos/nix:2.31.3 AS builder FROM nixos/nix:2.31.3 AS builder
RUN tee -a /etc/nix/nix.conf <<EOF RUN tee -a /etc/nix/nix.conf <<EOF
@@ -15,7 +18,8 @@ RUN cp "$(nix build nixpkgs#cacert --print-out-paths)/etc/ssl/certs/ca-bundle.cr
COPY . /tmp/build COPY . /tmp/build
WORKDIR /tmp/build WORKDIR /tmp/build
RUN nix build '.#docker_env' COPY --link --from=private /homepage_private /private
RUN nix build --override-input homepage_private /private '.#docker_env'
# Export the built closure to a folder # Export the built closure to a folder
RUN mkdir /tmp/nix-store-closure RUN mkdir /tmp/nix-store-closure
@@ -41,6 +45,7 @@ COPY --from=builder /tmp/ca-bundle.crt /etc/ssl/certs/ca-bundle.crt
COPY --from=builder /tmp/nix-store-closure /nix/store COPY --from=builder /tmp/nix-store-closure /nix/store
COPY --from=builder /tmp/build/result /app COPY --from=builder /tmp/build/result /app
COPY --from=builder /tmp/sh /bin/sh COPY --from=builder /tmp/sh /bin/sh
EXPOSE 8080 EXPOSE 8080
#RUN addgroup web && adduser -D -G web web #RUN addgroup web && adduser -D -G web web
#&& install -d -D -o web -g web -m 700 /srv/http/public #&& install -d -D -o web -g web -m 700 /srv/http/public

View File

@@ -11,6 +11,10 @@
url = "git+https://code.fizz.buzz/talexander/organic_ast_explorer.git"; url = "git+https://code.fizz.buzz/talexander/organic_ast_explorer.git";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
homepage_private = {
url = "git+ssh://git@code.fizz.buzz/talexander/homepage_private.git";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@@ -19,6 +23,7 @@
nixpkgs, nixpkgs,
natter, natter,
organic_ast_explorer, organic_ast_explorer,
homepage_private,
}: }:
let let
forAllSystems = forAllSystems =
@@ -84,11 +89,6 @@
homepage = final.lib.makeScope final.newScope ( homepage = final.lib.makeScope final.newScope (
homepageScope: homepageScope:
let let
homepage_private = fetchGit {
url = "git@code.fizz.buzz:talexander/homepage_private.git";
ref = "main";
rev = "89ba9628bf3e596345bc83f59cef5a2943584894";
};
natter' = (natter.overlays.default final final).natter.release; natter' = (natter.overlays.default final final).natter.release;
organic_ast_explorer' = organic_ast_explorer' =
(organic_ast_explorer.overlays.default final final).organic_ast_explorer.release; (organic_ast_explorer.overlays.default final final).organic_ast_explorer.release;