From 07e2ebf42bab23638013a595a26e52c61feb5136 Mon Sep 17 00:00:00 2001 From: Marcin Date: Tue, 10 Oct 2023 09:02:44 +0200 Subject: [PATCH] A0-2133: Remove nix/docker.nix file (#1438) # Description This file is not needed. --- nix/docker.nix | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 nix/docker.nix diff --git a/nix/docker.nix b/nix/docker.nix deleted file mode 100644 index 53935f9c..00000000 --- a/nix/docker.nix +++ /dev/null @@ -1,35 +0,0 @@ -# defines a derivation that builds a minimal docker image containing aleph-node and its src folder -{ - # when keepDebugInfo = true, created docker image includes `all` dependencies - # and image weights > 490MB instead of < 100MB - alephArgs ? { keepDebugInfo = false; } -}: -let - versions = import ./versions.nix; - nixpkgs = versions.nixpkgs; - - alephNode = import ../default.nix alephArgs; - dockerEntrypointScript = (nixpkgs.writeScriptBin "docker_entrypoint.sh" (builtins.readFile ../docker/docker_entrypoint.sh)).overrideAttrs(old: { - buildCommand = '' - ${old.buildCommand} - # fixes #! /usr/bin/env bash preamble - patchShebangs $out - ''; - }); -in -nixpkgs.dockerTools.buildImage { - name = "aleph-node"; - created = "now"; - contents = [alephNode dockerEntrypointScript nixpkgs.bash nixpkgs.coreutils]; - config = { - Env = [ - "PATH=${alephNode}/bin:${dockerEntrypointScript}/bin:${nixpkgs.bash}/bin:${nixpkgs.coreutils}/bin" - ]; - Entrypoint = "${dockerEntrypointScript}/bin/docker_entrypoint.sh"; - ExposedPorts = { - "30333" = {}; - "9933" = {}; - "9944" = {}; - }; - }; -}