initial
This commit is contained in:
commit
72ea1a39c6
21
config.json
Normal file
21
config.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"distSpecVersion": "1.0.1",
|
||||
"storage": {
|
||||
"rootDirectory": "/tmp/zot"
|
||||
},
|
||||
"http": {
|
||||
"address": "127.0.0.1",
|
||||
"port": "8080"
|
||||
},
|
||||
"log": {
|
||||
"level": "debug"
|
||||
},
|
||||
"extensions": {
|
||||
"search": {
|
||||
"enable": true
|
||||
},
|
||||
"ui": {
|
||||
"enable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
12
default.nix
Normal file
12
default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let
|
||||
zot = import ./zot/default.nix { };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
zot
|
||||
];
|
||||
shellHook = ''
|
||||
echo "test"
|
||||
'';
|
||||
}
|
||||
25
zot/default.nix
Normal file
25
zot/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "zot";
|
||||
version = "2.1.10";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/project-zot/zot/releases/download/v${version}/zot-linux-amd64";
|
||||
sha256 = "sha256-t+7SKehWjZTSt6vMtcxFKJRVG/AbgQjyDf/JuUPQf3A=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/zot
|
||||
chmod +x $out/bin/zot
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "zot - A scale-out production-ready vendor-neutral OCI-native container image/artifact registry (purely based on OCI Distribution Specification)";
|
||||
homepage = "https://zotregistry.dev";
|
||||
license = licenses.asl20;
|
||||
platforms = ["x86_64-linux"];
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user