mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 17:46:29 +09:00
parent
d3f5b059bb
commit
1cfcbd9a94
2 changed files with 55 additions and 57 deletions
|
@ -885,7 +885,7 @@ in
|
||||||
# TODO: put in networking.nix after the test becomes more complete
|
# TODO: put in networking.nix after the test becomes more complete
|
||||||
networkingProxy = handleTest ./networking-proxy.nix { };
|
networkingProxy = handleTest ./networking-proxy.nix { };
|
||||||
nextcloud = handleTest ./nextcloud { };
|
nextcloud = handleTest ./nextcloud { };
|
||||||
nextflow = handleTestOn [ "x86_64-linux" ] ./nextflow.nix { };
|
nextflow = runTestOn [ "x86_64-linux" ] ./nextflow.nix;
|
||||||
nextjs-ollama-llm-ui = runTest ./web-apps/nextjs-ollama-llm-ui.nix;
|
nextjs-ollama-llm-ui = runTest ./web-apps/nextjs-ollama-llm-ui.nix;
|
||||||
nexus = handleTest ./nexus.nix { };
|
nexus = handleTest ./nexus.nix { };
|
||||||
# TODO: Test nfsv3 + Kerberos
|
# TODO: Test nfsv3 + Kerberos
|
||||||
|
|
|
@ -1,60 +1,58 @@
|
||||||
import ./make-test-python.nix (
|
{ pkgs, ... }:
|
||||||
{ pkgs, ... }:
|
let
|
||||||
let
|
bash = pkgs.dockerTools.pullImage {
|
||||||
bash = pkgs.dockerTools.pullImage {
|
imageName = "quay.io/nextflow/bash";
|
||||||
imageName = "quay.io/nextflow/bash";
|
imageDigest = "sha256:bea0e244b7c5367b2b0de687e7d28f692013aa18970941c7dd184450125163ac";
|
||||||
imageDigest = "sha256:bea0e244b7c5367b2b0de687e7d28f692013aa18970941c7dd184450125163ac";
|
sha256 = "161s9f24njjx87qrwq0c9nmnwvyc6iblcxka7hirw78lm7i9x4w5";
|
||||||
sha256 = "161s9f24njjx87qrwq0c9nmnwvyc6iblcxka7hirw78lm7i9x4w5";
|
finalImageName = "quay.io/nextflow/bash";
|
||||||
finalImageName = "quay.io/nextflow/bash";
|
};
|
||||||
};
|
|
||||||
|
|
||||||
hello = pkgs.stdenv.mkDerivation {
|
hello = pkgs.stdenv.mkDerivation {
|
||||||
name = "nextflow-hello";
|
name = "nextflow-hello";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "nextflow-io";
|
owner = "nextflow-io";
|
||||||
repo = "hello";
|
repo = "hello";
|
||||||
rev = "afff16a9b45c8e8a4f5a3743780ac13a541762f8";
|
rev = "afff16a9b45c8e8a4f5a3743780ac13a541762f8";
|
||||||
hash = "sha256-c8FirHc+J5Y439g0BdHxRtXVrOAzIrGEKA0m1mp9b/U=";
|
hash = "sha256-c8FirHc+J5Y439g0BdHxRtXVrOAzIrGEKA0m1mp9b/U=";
|
||||||
|
};
|
||||||
|
installPhase = ''
|
||||||
|
cp -r $src $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
run-nextflow-pipeline = pkgs.writeShellApplication {
|
||||||
|
name = "run-nextflow-pipeline";
|
||||||
|
runtimeInputs = [ pkgs.nextflow ];
|
||||||
|
text = ''
|
||||||
|
export NXF_OFFLINE=true
|
||||||
|
for b in false true; do
|
||||||
|
echo "docker.enabled = $b" > nextflow.config
|
||||||
|
cat nextflow.config
|
||||||
|
nextflow run -ansi-log false ${hello}
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
name = "nextflow";
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
run-nextflow-pipeline
|
||||||
|
pkgs.nextflow
|
||||||
|
];
|
||||||
|
virtualisation = {
|
||||||
|
docker.enable = true;
|
||||||
};
|
};
|
||||||
installPhase = ''
|
|
||||||
cp -r $src $out
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
run-nextflow-pipeline = pkgs.writeShellApplication {
|
|
||||||
name = "run-nextflow-pipeline";
|
|
||||||
runtimeInputs = [ pkgs.nextflow ];
|
|
||||||
text = ''
|
|
||||||
export NXF_OFFLINE=true
|
|
||||||
for b in false true; do
|
|
||||||
echo "docker.enabled = $b" > nextflow.config
|
|
||||||
cat nextflow.config
|
|
||||||
nextflow run -ansi-log false ${hello}
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
name = "nextflow";
|
|
||||||
|
|
||||||
nodes.machine =
|
testScript =
|
||||||
{ ... }:
|
{ nodes, ... }:
|
||||||
{
|
''
|
||||||
environment.systemPackages = [
|
start_all()
|
||||||
run-nextflow-pipeline
|
machine.wait_for_unit("docker.service")
|
||||||
pkgs.nextflow
|
machine.succeed("docker load < ${bash}")
|
||||||
];
|
machine.succeed("run-nextflow-pipeline >&2")
|
||||||
virtualisation = {
|
'';
|
||||||
docker.enable = true;
|
}
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript =
|
|
||||||
{ nodes, ... }:
|
|
||||||
''
|
|
||||||
start_all()
|
|
||||||
machine.wait_for_unit("docker.service")
|
|
||||||
machine.succeed("docker load < ${bash}")
|
|
||||||
machine.succeed("run-nextflow-pipeline >&2")
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue