Micronaut

From campisano.org
Jump to navigation Jump to search

Micronaut

Install

# shared/opt install schema v1.3.1
su -
#### as root ####
# dependencies
apt-get -qq -y install wget coreutils findutils
apt-get install unzip
# binary
SOFTWARE_PATH="/home/shared/opt/software"
NAME="micronaut"
VERSION="2.0.2"
URL="https://github.com/micronaut-projects/micronaut-starter/releases/download/v${VERSION}/micronaut-cli-${VERSION}.zip"
umask 0027
mkdir -p "${SOFTWARE_PATH}/tmp/${NAME}_${VERSION}"
cd "${SOFTWARE_PATH}/tmp"
wget -c --no-check-certificate "${URL}"
unzip micronaut-cli-${VERSION}.zip && mv "micronaut-cli-${VERSION}/"* "${NAME}_${VERSION}" && rm -rf "micronaut-cli-${VERSION}/"
cd "${SOFTWARE_PATH}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/${NAME}_${VERSION}" "${NAME}_${VERSION}"
rm -rf tmp
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"
exit
  • and setup your user environment (you can put the follow in ~/.profile)
export SOFTWARE_PATH="/home/shared/opt/software"
export MICRONAUT_HOME="${SOFTWARE_PATH}/micronaut"
export PATH="${MICRONAUT_HOME}/bin:${PATH}"