############# run separately ################# Please ensure use ubuntu user. #####sudosu-ubuntu# Prepare build installer foldersudomkdir-p/data&&sudochown-R $(whoami):$(whoami) /data&&cd/data# Install dockersudoaptinstall-ydocker.io=17.12.1-0ubuntu1# Add user to docker groupsudousermod-a-Gdocker $(whoami)sudochown-R $(whoami):$(whoami) /home/$(whoami)/############# run separately ################# Exit current session and re-login again so that to enable user group. #####exit
cd/data# Copy build-installer.sh to host and prepare installer package.# vim build-installer.sh# run build-installer with correct branch namebashbuild-installer.sh [branch]# package installer files into tarball and generate hash codetarball_name=Mercury_v1.1.0_$(date+%Y-%m-%d_%H-%M-%S_%Z).tartar-cvf $tarball_name .sha1sum $tarball_name# when build installer on Diamond Host, DO REMOVE docker.io that installed within build-installer.sh since it will impact real diamond deployment.sudoaptremovedocker.io