File tree Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Original file line number Diff line number Diff line change 10
10
name = "hydra-node" ;
11
11
tag = "latest" ;
12
12
created = "now" ;
13
- contents = [
14
- pkgs . busybox
15
- ] ;
13
+ copyToRoot = pkgs . buildEnv {
14
+ name = "hydra-node-env" ;
15
+ paths = [
16
+ pkgs . busybox
17
+ ] ;
18
+ } ;
16
19
config = {
17
20
Entrypoint = [ "${ self' . packages . hydra-node-static } /bin/hydra-node" ] ;
18
21
} ;
22
25
name = "hydra-node-for-netem" ;
23
26
tag = "latest" ;
24
27
created = "now" ;
25
- contents = [
26
- pkgs . iproute2
27
- pkgs . busybox
28
- ] ;
28
+ copyToRoot = pkgs . buildEnv {
29
+ name = "hydra-node-for-netem-env" ;
30
+ paths = [
31
+ pkgs . busybox
32
+ pkgs . iproute2
33
+ ] ;
34
+ } ;
29
35
config = {
30
36
Entrypoint = [ "${ self' . packages . hydra-node-static } /bin/hydra-node" ] ;
31
37
} ;
48
54
Entrypoint = [ "${ self' . packages . hydraw-static } /bin/hydraw" ] ;
49
55
WorkingDir = "/static" ;
50
56
} ;
51
- contents = [
52
- ( pkgs . runCommand "hydraw-static-files" { } ''
53
- mkdir $out
54
- ln -s ${ ../../hydraw/static } $out/static
55
- '' )
56
- ] ;
57
+ copyToRoot = pkgs . buildEnv {
58
+ name = "hydraw-env" ;
59
+ paths = [
60
+ ( pkgs . runCommand "hydraw-static-files" { } ''
61
+ mkdir $out
62
+ ln -s ${ ../../hydraw/static } $out/static
63
+ '' )
64
+ ] ;
65
+ } ;
57
66
} ;
58
67
59
68
docker-hydra-chain-observer = pkgs . dockerTools . buildImage {
You can’t perform that action at this time.
0 commit comments