@@ -7,22 +7,24 @@ https://github.com/input-output-hk/cardano-node-wiki/wiki/building-the-node-usin
7
7
# Build + Install the cardano node
8
8
nix build .#mainnet/node -o ~/bin/cardano-node
9
9
10
- # Build + Install the cardano Docker image
11
- nix run .#dockerImage/node/load \
12
- && GITHASH=`git log -n1 --pretty='%H'` \
13
- && docker tag inputoutput/cardano-node:$GITHASH inputoutput/cardano-node:dev \
14
- && docker rmi inputoutput/cardano-node:$GITHASH
15
-
16
- GITTAG=`git describe --exact-match --tags $GITHASH`
10
+ # Build + Install the cardano Docker image from bash shell
11
+ nix build .#dockerImage/node \
12
+ && RES=$(docker load -i result) \
13
+ && LOADED="${RES##Loaded image: }" \
14
+ && GITHASH=$(git log -n1 --pretty='%H') \
15
+ && docker tag "$LOADED" ghcr.io/intersectmbo/cardano-node:dev \
16
+ && docker rmi "$LOADED"
17
+
18
+ GITTAG=$(git describe --exact-match --tags $GITHASH)
17
19
if [ $? -eq 0 ]; then
18
20
echo "Current tag: $GITTAG"
19
- docker tag inputoutput/ cardano-node:dev inputoutput/ cardano-node:$GITTAG
21
+ docker tag ghcr.io/intersectmbo/ cardano-node:dev "ghcr.io/intersectmbo/ cardano-node:$GITTAG"
20
22
fi
21
23
22
24
# Bash into the node to look around
23
25
docker run --rm -it --entrypoint=bash \
24
26
-v node-data:/opt/cardano/data \
25
- inputoutput /cardano-node:dev
27
+ ghcr.io/intersectmbo /cardano-node:dev
26
28
27
29
cardano-node run \
28
30
--config /opt/cardano/config/mainnet-config.json \
@@ -50,7 +52,7 @@ docker run --rm -it \
50
52
-p 3001:3001 \
51
53
-e NETWORK=mainnet \
52
54
-v node-data:/data/db \
53
- inputoutput /cardano-node:dev
55
+ ghcr.io/intersectmbo /cardano-node:dev
54
56
```
55
57
56
58
Run -e NETWORK=mainnet and check graceful shutdown SIGTERM with --detach
@@ -62,7 +64,7 @@ docker run --detach \
62
64
-p 3001:3001 \
63
65
-e NETWORK=mainnet \
64
66
-v node-data:/data/db \
65
- inputoutput /cardano-node:dev
67
+ ghcr.io/intersectmbo /cardano-node:dev
66
68
67
69
docker logs -f relay
68
70
```
@@ -75,7 +77,7 @@ Check graceful shutdown SIGINT with -it
75
77
docker run --rm -it \
76
78
-p 3001:3001 \
77
79
-v node-data:/opt/cardano/data \
78
- inputoutput /cardano-node:dev run
80
+ ghcr.io/intersectmbo /cardano-node:dev run
79
81
```
80
82
81
83
Check graceful shutdown SIGTERM with --detach
@@ -87,7 +89,7 @@ docker run --detach \
87
89
-p 3001:3001 \
88
90
-v node-data:/opt/cardano/data \
89
91
-v node-ipc:/opt/cardano/ipc \
90
- inputoutput /cardano-node:dev run
92
+ ghcr.io/intersectmbo /cardano-node:dev run
91
93
92
94
docker logs -f relay
93
95
```
@@ -97,7 +99,7 @@ docker logs -f relay
97
99
```
98
100
alias cardano-cli="docker run --rm -it \
99
101
-v node-ipc:/opt/cardano/ipc \
100
- inputoutput /cardano-node:dev cli"
102
+ ghcr.io/intersectmbo /cardano-node:dev cli"
101
103
102
104
cardano-cli query tip --mainnet
103
105
```
0 commit comments