forked from NodeOS/NodeOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerBuild
More file actions
executable file
·39 lines (30 loc) · 911 Bytes
/
dockerBuild
File metadata and controls
executable file
·39 lines (30 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
BLD=$(tput bold)
GRY="\e[90m"
TOOLCHAIN=`pwd`/node_modules/nodeos-cross-toolchain
source $TOOLCHAIN/scripts/adjustEnvVars.sh || exit $?
(
cd node_modules/nodeos-barebones &&
npm run dockerBuild || exit 10
) &&
(
cd node_modules/nodeos-initramfs &&
npm run dockerBuild || exit 20
) &&
(
cd node_modules/nodeos-rootfs &&
npm run dockerBuild || exit 30
) &&
(
docker build -t nodeos . || exit 40
) || exit $?
echo -e "${GRY}------------------------------------------${CLR}"
echo -e "${GRN}${BLD}Success!${CLR}"
echo -e "${GRN}You just registered a custom NodeOS image${CLR}"
echo -e "${GRY}------------------------------------------${CLR}"
echo
echo -e "- Interactively run your image with:"
echo -e "${WHT} npm run docker${CLR}"
echo
echo -e "- Share your creation with:"
echo -e "${WHT} docker push NodeOS${CLR}"