27 Commits

Author SHA1 Message Date
Sean Condon
436c60a1f6 Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2
Change-Id: If53686f2475c4f367909de577b4da95de8e16768
2021-01-04 15:42:57 +00:00
Sean Condon
8bba394216 Added --frozen-lockfile to yarn_install in WORKSPACE
As recommended on https://yarnpkg.com/en/docs/cli/install to fix problems in CI

Also upgraded Third Party Products for legacy GUI

Change-Id: I538aff2b111d599c74d3b484af839b52599b3fb2
2020-01-08 11:01:34 +00:00
Andrea Campanella
cf156cde00 Fixing bazel hide files tool versions
Change-Id: Ie44c209f4e14de2d435fb437a08e12e5961e7a4b
2019-11-26 17:54:40 +01:00
Sean Condon
dfc6dbab27 Added BUILD file for gui2-fw-lib bazel build
This is another step along the way of having Native Bazel builds for Angular
Not fully there yet - waiting for Angular v9 in next 2 weeks
but don't want to wait that long to merge all of this

For most people the main concern is updates to WORKSPACE

Change-Id: I28170b8f8daaa2959327c259fe6a10df075113bb
2019-11-21 20:40:38 +00:00
Sean Condon
0a884ad26a Upgrading NodeJS to 10.16 and GUI2 to Angular 8
Change-Id: I722ffd8438728e6658a0589aa12b087ad5da8864
2019-11-04 21:07:45 +00:00
Carmelo Cascone
d33d3b4838 Build ONOS exclusively with Bazel-provided remote JDK
This change make it possible to build ONOS in a host system without JDK
installed, or ignoring the one installed, instead relying exclusively on
the "remote" JDK provided by Bazel. The JDK version, along with the
toolchain configuration (language source and target values), are checked
in as part of the build files (tools/build/bazel/BUILD), thus enabling
deterministic builds that are less dependent of the host environment.

To allow this, this change replaces all references to JDK-related tools
expected to be on the host PATH, such as the jar command, with their
counterpart from the remote JDK (now a sandboxed relative path). This is
achieved by:

  * Creating a new "jdk_genrule" macro that exposes the remote JDK bin
    directory to the PATH visible by the genrule command. This is used
    for all genrule targets invoking for example `jar`;
  * Modifying custom Starlak rule implementations by replacing
    invocation to JDK tools with a path from the remote one.
  * Renaming the onos/lib directory to onos/deps as it clashes with
    the Bazel-provided JDK's lib directory (that for some strange reason
    is resolved on the ONOS workspace)

Finally, this change is reflected on the Dockerfile which now builds
ONOS from an Ubuntu image with no JDK installed.

Change-Id: Ie7d990cfce6fef00ddb4ffffe4c6205b8530fb47
2019-06-18 22:26:33 +00:00
Thomas Vachuska
3432862969 Changing GUI packaging to use jar files instead of tar to avoid smuggling user/group info as meta-data.
Change-Id: I4ec195f9d12442613e30fa02fbd050162e29d525
2018-08-03 09:21:56 -07:00
Thomas Vachuska
1506abb186 Fixing bazel GUI packaging; still wip.
Change-Id: I754141f4b3975a95b4ded8fb1409491b45715ed9
2018-07-31 23:34:28 +00:00
Ray Milkey
d7be362607 Make onos-gui bazel build hermetic
Change-Id: I24abb9c1a54314fb0dd00f40936e57f11280ebce
2018-07-16 16:45:23 +00:00
Ray Milkey
6b3775ada6 Bazel build of ONOS GUI package
Change-Id: Id5f9931c38f82afcdcefc49171dd79f2f5bdad14
2018-07-11 09:35:13 -07:00
Steven Burrows
1270c18e06 Topo2: Added Friendly host names
JIRA: ONOS-6657

Also added css into the browsersync tasks within gulp

Change-Id: Ibcf342c89b8e1eae131f5cb3694e3632bc134534
2017-09-14 17:13:49 +00:00
Steven Burrows
3c9bd0d67a Remove /tmp/npm-{pid} files on postinstall
The files are causing the Jenkins storage to fill up

Change-Id: I1f8bc8b657ad3bd9431a90cae6e32f5f0a1738d0
2017-08-31 18:46:02 +00:00
Steven Burrows
4b4d2b44de [onos-3264]: Close the gap between summary and details panel
Change-Id: I3921da4a3d9e9e3f6c127692e62815a8d54a28a4
2017-08-21 17:01:08 +00:00
Steven Burrows
9145867dfc [ONOS-6523] GUI Build: Removed third party libs from repo
- installed at build time as dependancies

Change-Id: I85fd69f0b14e6fd1af2693320c1ca23c62f58ac4
2017-08-16 17:36:11 +00:00
Steven Burrows
202034ff83 GUI: Added {view}-spec.js files for all main views
Change-Id: I75a50ae2689d0ab7863c8bb0546ec72ef8e9e7ea
2017-08-11 16:49:41 +00:00
Steven Burrows
0f26ac8fa2 BUCK GUI: Excluded generated javascript files from genrule
Removed the NPM Lock file that generated.

Change-Id: Ia2d16f28a3a11056f8eaed2805684020b9d2c4eb
2017-08-10 17:04:44 +00:00
Steven Burrows
a37e32f488 Gui: bugfix Broswersync error in buck build
Change-Id: I83f73eb5baf283334086c40d6ec4e82829396d70
2017-08-07 22:36:36 +01:00
Steven Burrows
1c2a9685de GUI: Added ESLint to gulp tasks. ONOS-6521
Commented out gulp tasks making this change uneffective
Fixed an error in the build script

Change-Id: I4f4f9762aa1a66304aa74b3ab208095b9c1d4515
2017-08-07 18:12:46 +00:00
Simon Hunt
5c3ed73c5a Revert "GUI: Added ESLint to gulp tasks GUI: Linted files Fixed an error in the build script"
This reverts commit 46c5f1087d76d93497a1e8e5593564991ccb6682.

Change-Id: I1464fdd1df075e93f885e3c1fbd02f0cc563fd4f
2017-07-20 19:08:07 +00:00
Steven Burrows
46c5f1087d GUI: Added ESLint to gulp tasks
GUI: Linted files
Fixed an error in the build script

JIRA-TASKS: ONOS-6522, ONOS-6521

Change-Id: Ie72abfe6cbe21c8946f219be6193344b67ec6dd1
2017-07-20 16:25:52 +00:00
Steven Burrows
dc165621d4 GUI: Better error messages for minify task in gulp
Change-Id: I25f287ae057ea8f164c5ec7a3f036f3e92dd8f3c
2017-07-20 14:40:27 +01:00
Steven Burrows
3defbb3e68 GUI: use a local installation of gulp
Change-Id: I5ef201aaf157e630610492e92d910c582ade6513
2017-07-12 21:47:02 +00:00
Steven Burrows
5cb50e3d87 GUI: Reverted changes to gulp task unit tests
Moved the unit-tests folder in to the correct location

Change-Id: I36bad4aea26ab2425e4b1b6bb2fea1d3be26548e
2017-07-12 14:05:09 +01:00
Steven Burrows
ad3c8c4840 GUI: Removed unused gulp package
Change-Id: I8c766c16d99ba35b2cecc78ab2ef5cf3086d5ddd
2017-07-12 07:16:12 +01:00
Steven Burrows
db3be6f636 ONOS-6524: Added Code Coverage tools to gulp
When `gulp test` is executed, Karma will now generate an interactive html report for code coverage in each file. The folder can be found in web/gui/src/main/webapp/tests/coverage

Change-Id: I951ac1bea7f3f0ca35deb9cc823bb883bcd9f8a5
2017-07-11 21:58:12 +00:00
Steven Burrows
96ee21ebab Bug Fix: Reverted minifying third party libs
Bug Fix: Minification revealed 'non-safe' bundle dependancy in the application view javascript

Upgraded Chart(.min).js to v2.6.0 to fix a known bug in v2.2.1

ONOS-6803

Change-Id: I02e130611dcff26cef08bbb6885e91b348e27f69
2017-07-11 21:54:05 +00:00
Steven Burrows
a145e10376 ONOS-628 - Download and extract node binaries for the GUI build step
- Added gulp build task the:
	- Bundles Vendor JS files
	- Bundles ONOS JS Files
	- Bundles ONOS CSS Files
	- Added SourceMaps to JS bundles - Helps with debugging during development
- Added Bundles to index.js and removed old references
- Git Ignored any generated files
- Ensured the build step is able to build without a local copy of node installed
- Added BUCK genrules (provided by Viswa)
- Added BUCK Dependency to GUI
- Buck Rule to run when src changes
- Node/NPM downloaded using BUCK remote_file

Change-Id: Ia6ca3b952ff801850ade7469c23aac76c8520400
2017-07-11 01:39:46 +00:00