Skip to content

Instantly share code, notes, and snippets.

@kukielp

kukielp/cf.sh

Last active Nov 17, 2020
Embed
What would you like to do?
sudo yum install -y https://corretto.aws/downloads/latest/amazon-corretto-8-x64-linux-jdk.rpm
wget https://services.gradle.org/distributions/gradle-6.5-bin.zip -P /tmp
sudo unzip -d /opt/gradle /tmp/gradle-6.5-bin.zip
# Set 2 EVN variables to add gradel to the path
export GRADLE_HOME=/opt/gradle/gradle-6.5
export PATH=${GRADLE_HOME}/bin:${PATH}
# Ensure the ENV variables persist in a new terminal session
cat >> ~/.bash_profile <<TXT
export GRADLE_HOME=${GRADLE_HOME}
export PATH=${GRADLE_HOME}/bin:${PATH}
TXT
export JAVA_HOME="/usr/lib/jvm/java-1.8.0-amazon-corretto"
export PATH=$JAVA_HOME/bin:$PATH
# Check is java is avaliable for use
java -version
# Check is gradle is avaliable for use
gradle -v
git clone https://github.com/kukielp/fuseless-template.git
cd fuseless-template
# This shell script will download the fuseless jar and lucee light plus
./init.sh
# This will package up/zip the cfml and jars required
gradle build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment