This installer aims to produce ready to use development environment for Red Hat Container Development Kit v2.0.
Build output is two installers. The main difference between them is a file size. One installer is lightweight and download everything during installation. Second one bundles most of binary dependencies and downloads during installation only binaries that cannot be included. Both are self extracting executable files made with 7-zip file archiver with a high compression ratio (7-Zip is licensed under the GNU LGPL license, more details on https://www.7zip.org).
This installer is built on Windows using Electron.
You will also require the Node.js, NPM, Gulp and jspm.
In order to build the installer, you'll need to install some tools.
-
Download and install Node for Windows from https://nodejs.org/en/download/. Pick the MSI installer.
-
Download and install MS Visual Studio Express 2015 from https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx (pick the Express for Desktop installer) or Microsoft Visual C++ 2010 SP1 Redistributable Package from http://www.microsoft.com/en-us/download/details.aspx?id=8328
-
Download and install Python 2.7.x for Windows from https://www.python.org/downloads/release/
-
Edit your "Path" by going to the "System" Control Panel, "Advanced system settings", "Environment Variables". Add C:\Program Files\nodejs;C:\Users<username>\App Data\Roaming\npm to the "Variable value".
Note that your system might have an "AppData" (no space) instead of "App Data" (with space) folder, so make sure you use the correct path for your system.
-
Install Gulp, JSPM, and all dependencies:
npm install -g gulp jspm npm install
If either of the above steps fail, try deleting the c:\Users<username>.electron folder.
There are multiple ways how to run the installer.
-
When fixing bugs and/or creating new features, run the application using
npm start
This way, you can open Chrome developer tools using
Ctrl+Alt+I
or reload application usingCtrl+R
. -
Build a Windows binary and run it:
npm run generate dist/win/DevelopmentSuiteInstaller-win32-x64/DevelopmentSuiteInstaller.exe
-
Build a distribution Windows binary that downloads Vagrant, VirtualBox, devstudio, etc. from the Internet (it will download about 1.6G):
npm run package-simple dist/win/DevelopmentSuiteInstaller-win32-x64-*.exe
-
Build a distribution Windows binary including almost all dependencies, except of Vagrant and VirtualBox (will download them):
npm run package-bundle dist/win/DevelopmentSuiteInstaller-win32-x64-*-bundle.exe
-
To build both installers in a single step:
npm run dist
If your npm install gets corrupted (or out of date) and you can't build, you can try cleaning leftover modules by deleting all dependencies and generated configuration files and installing them again:
rm -rf node_modules/ browser/jspm_packages/ browser/config.js test/jspm-config.js
npm cache clean
npm install -g gulp jspm
npm install
Then build as in the examples above.
Unit tests are located in test/unit
. To run all unit tests:
npm test
To run selected unit tests, you can grep any string from describe
or it
section
of any test, e.g.:
npm test -- -g login
npm test -- --grep login
Enable ChromeDevtools in installer window
export PDKI_DEBUG=1
npm run
TODO