Created
May 23, 2018 22:06
-
-
Save kurtpayne/17c19b934ba932e65c6a80341f15a3cd to your computer and use it in GitHub Desktop.
Install Netflix Conductor On Centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install pre-reqs | |
yum -y update | |
yum -y install epel-release | |
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo | |
yum -y install abuild ack autoconf automake binutils build-base bzip2 bzip2-devel curl docker docker-compose gcc gcc-c++ java-1.8.0-openjdk java-1.8.0-openjdk-devel libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel libpng12 libpng12-devel libstdc++ libtool make nasm nodejs npm python strace tar unzip wget yarn yum-utils | |
# Install gradle | |
mkdir -p /opt/gradle | |
wget https://services.gradle.org/distributions/gradle-4.7-bin.zip | |
unzip -d /opt/gradle gradle-4.7-bin.zip | |
ln -s /opt/gradle/gradle-4.7/bin/gradle /usr/bin/gradle | |
# Install node modules | |
npm install --global gulp | |
# Become a disabled conductor | |
useradd conductor | |
usermod -s /bin/false conductor | |
sudo -u conductor /bin/bash | |
# Git clone | |
rm -rf /home/conductor/conductor | |
git clone https://github.com/Netflix/conductor.git /home/conductor/conductor | |
# Server | |
pushd /home/conductor/conductor/server | |
gradle clean build | |
nohup /home/conductor/conductor/gradlew server & | |
popd | |
# UI | |
pushd /home/conductor/conductor/ui | |
npm install | |
nohup gulp watch & | |
popd | |
# UI is on port 3000 | |
# External UI is on port 3001 | |
# API / swagger is on port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment