Giter Site home page Giter Site logo

predixdev / local-setup Goto Github PK

View Code? Open in Web Editor NEW
23.0 30.0 19.0 80 KB

Contains scripts for installing the tools required for development on the Predix platform

License: Other

Visual Basic 1.03% Shell 64.92% Batchfile 25.97% PowerShell 1.90% Groovy 6.18%

local-setup's Introduction

Local setup of development tools

Scripts to install the tools required for development on the Predix Platform.

Installation

On Mac OS X

  • Run the command below in a terminal window to install all the standard tools
bash <( curl https://raw.githubusercontent.com/PredixDev/local-setup/master/setup-mac.sh )
  • You can choose to install selected tools by providing flags for the corresponding tools. For example: to install git, cf-cli, and predix-cli only run
bash <( curl https://raw.githubusercontent.com/PredixDev/local-setup/master/setup-mac.sh ) --git --cf --predixcli
Tool Flag Notes
brew, [cask] (http://caskroom.io) Required to manage the installation of tools
Android Studio & Platform Tools --androidstudio
Cloud Foundry CLI --cf
Docker --docker
Eclipse STS --sts
Git --git
Java SE Development Kit (JDK) --jdk
JQ) installed in all cases
Maven --maven
Node.js, Bower, Grunt CLI, Gulp CLI,[node gyp]https://github.com/nodejs/node-gyp,[windows-build-tools] (npm install --global --production windows-build-tools) --nodejs
Predix CLI --predixcli
Predix Mobile CLI --mobilecli
Python2 --python2
Python3 --python3
rbenv, ruby-build, ruby, [cf-uaac] (https://github.com/cloudfoundry/cf-uaac) --uaac This is not installed by default
VMWare --vmware

On Windows

  • Open a Command Window as Administrator (Right click 'Run as Administrator') and run the command below
@powershell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/PredixDev/local-setup/master/setup-windows.bat','%TEMP%/setup-windows.bat')" && %TEMP%/setup-windows.bat
  • You can choose to install selected tools by providing flags for the corresponding tools. For example: to install git, cf-cli and predix-cli only run
@powershell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/PredixDev/local-setup/master/setup-windows.bat','%TEMP%/setup-windows.bat')" && %TEMP%/setup-windows.bat /git /cf /predixcli
Tool Flag Notes
chocolatey Required to manage the installation of tools
Android Studio & ADB /androidstudio
Cloud Foundry CLI /cf
cURL /curl
Docker /docker
Eclipse STS /sts
Git /git
Java SE Development Kit (JDK) /jdk
JQ) installed in all cases
Maven /maven
Node.js, Bower, Grunt CLI, Gulp CLI /nodejs
Predix CLI /predixcli
Predix Mobile CLI /mobilecli
Python2 /python2
Python3 /python3
putty /putty
VMWare /vmware

Analytics

local-setup's People

Contributors

predix-adoption-bot avatar rishabhtulsian avatar tak-bro avatar turnerth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

local-setup's Issues

Predix CLI is not installed in Windows batch file

Hi,

setup-windows.bat is used in the following command of the tutorial.
When executing the following command, the error "bash: px: command not found" occurred.
Because Predix CLI is not installed in Windows batch file (setup-windows.bat).
Please check "exit / b 0" on line 216 of this file.

eeb8f13

@PowerShell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/PredixDev/predix-machine-template-adapter-simulator/master/scripts/quickstart-machine-w-simulator.bat','quickstart-machine-w-simulator.bat')" && "quickstart-machine-w-simulator.bat"

Tutrial : https://www.predix.io/resources/tutorials/tutorial-details.html?tutorial_id=2053&tag=2054&journey=Setup%20Laptop%2FDevbox%20for%20Predix&resources=1785,2053,1743

Brew Formula Name Changed

I believe the VMWare formula name has changed ( from vmware to vmware-fusion)

This is part of the output from running bash <( curl https://raw.githubusercontent.com/PredixDev/local-setup/master/setup-mac.sh ) --vmware
image

Manual execution of the command brew cask install vmware also fails (brew cask install vmware-fusion worked though!)

brew_cask_install vmware

Windows install script when using selected options

@PowerShell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/richcobrien/local-setup/master/setup-windows.bat','%TEMP%\setup-windows.bat')" && "%TEMP%\setup-windows.bat /git /cf"

My testing, the above fails as the Path is not Found, the below works as expected.

@PowerShell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/richcobrien/local-setup/master/setup-windows.bat','%TEMP%\setup-windows.bat')" && "%TEMP%\setup-windows.bat" /git /cf

Unable to find artifact: winddata-timeseries-service:jar:2.0.35

Im following the tutorial "Edge Starter: Add Predix Machine on an Personal Laptop/DevBox".

I run the command:

@powershell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/PredixDev/predix-machine-template-adapter-simulator/master/scripts/quickstart-machine-w-simulator.bat','quickstart-machine-w-simulator.bat')" && "quickstart-machine-w-simulator.bat"

which sets up UAA, Asset-service, Time-series-service and "hello-world"-app (which by the way doesn't contain any login link as stated in the tutorial, only 2 links).

Anyhow, the command sets all these things up, but it ends with an error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:copy (default-cli) on project winddata-timeseries-service: Unable to find artifact.: Failure to find com.ge.predix.solsvc:winddata-timeseries-service:jar:2.0.35 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
My settings.xml contains:

<server>
<id>predix.repo</id>
<username>[email protected]</username>
<password>**my password**</password>
</server>

Im not behind a proxy.

Ive made sure I can go to artifactory.predix.io, login and can see that .jar and deleting ~/.m2/repository/com/ge/predix/solsvc and retry.

How can I overcome this issue?

Format error in README.md

Hi,
I'm a GE employee who is interested in Predix.
I found a format error in the README.md file.
Please refer to the below.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.