-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
245 changed files
with
17,432 additions
and
7,946 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"directory": "src/main/webapp/static/lib/" | ||
"directory": "src/main/webapp/static/bower_components/" | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ branches: | |
- develop | ||
install: true | ||
script: mvn test -P production | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
site 'https://supermarket.getchef.com/api/v1' | ||
|
||
cookbook 'apt' | ||
|
||
cookbook 'redis', | ||
:git => '[email protected]:phlipper/chef-redis.git', | ||
:ref => 'v0.5.6' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
SITE | ||
remote: https://supermarket.getchef.com/api/v1 | ||
specs: | ||
apt (2.7.0) | ||
|
||
GIT | ||
remote: [email protected]:phlipper/chef-redis.git | ||
ref: v0.5.6 | ||
sha: 7476279fc9c8727f082b8d77b5e1922dc2ef437b | ||
specs: | ||
redis (0.5.6) | ||
apt (>= 0.0.0) | ||
|
||
DEPENDENCIES | ||
apt (>= 0) | ||
redis (>= 0) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
module.exports = (grunt) -> | ||
jasmineRequireTemplate = require 'grunt-template-jasmine-requirejs' | ||
|
||
jasmineSpecRunner = 'spec-runner.html' | ||
|
||
sourcePath = 'src/main/webapp/static/js/find/**/*.js' | ||
|
||
documentation = 'doc' | ||
|
||
testRequireConfig = [ | ||
'src/main/webapp/static/js/require-config.js' | ||
'src/test/js/test-require-config.js' | ||
] | ||
|
||
specs = 'src/test/js/spec/**/*.js' | ||
serverPort = 8000 | ||
host = "http://localhost:#{serverPort}/" | ||
|
||
grunt.initConfig | ||
pkg: grunt.file.readJSON 'package.json' | ||
clean: [ | ||
jasmineSpecRunner | ||
'bin' | ||
'.grunt' | ||
documentation | ||
] | ||
connect: | ||
server: | ||
options: | ||
port: serverPort | ||
jasmine: | ||
test: | ||
src: sourcePath | ||
options: | ||
host: host | ||
keepRunner: true | ||
outfile: jasmineSpecRunner | ||
specs: specs | ||
template: jasmineRequireTemplate | ||
templateOptions: | ||
requireConfigFile: testRequireConfig | ||
watch: | ||
test: | ||
files: [ | ||
'src/**/*.js' | ||
'test/**/*.js' | ||
] | ||
tasks: ['test'] | ||
|
||
grunt.loadNpmTasks 'grunt-contrib-connect' | ||
grunt.loadNpmTasks 'grunt-contrib-jasmine' | ||
grunt.loadNpmTasks 'grunt-contrib-watch' | ||
|
||
grunt.registerTask 'default', ['test'] | ||
grunt.registerTask 'test', ['connect:server', 'jasmine:test'] | ||
grunt.registerTask 'browser-test', ['connect:server:keepalive'] | ||
grunt.registerTask 'watch-test', ['watch:test'] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
vm_name = 'hp-find-backend' | ||
|
||
required_plugins = %w(vagrant-hostsupdater vagrant-librarian-chef vagrant-proxyconf) | ||
|
||
required_plugins.each do |plugin| | ||
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin | ||
end | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
# All Vagrant configuration is done here. The most common configuration | ||
# options are documented and commented below. For a complete reference, | ||
# please see the online documentation at vagrantup.com. | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "hashicorp/precise64" | ||
|
||
config.vm.network "private_network", ip: '192.168.242.242' | ||
|
||
config.vm.hostname = vm_name | ||
|
||
config.vm.provider :virtualbox do |vb| | ||
# Don't boot with headless mode | ||
# Uncomment this if you get stuck at the bootloader | ||
# vb.gui = true | ||
|
||
vb.name = vm_name | ||
end | ||
|
||
config.vm.provider 'vmware_workstation' do |hv| | ||
hv.name = vm_name | ||
end | ||
|
||
config.proxy.http = ENV["http_proxy"] | ||
config.proxy.https = ENV["https_proxy"] | ||
config.proxy.no_proxy = ENV["no_proxy"] | ||
|
||
# Enable provisioning with chef solo, specifying a cookbooks path, roles | ||
# path, and data_bags path (all relative to this Vagrantfile), and adding | ||
# some recipes and/or roles. | ||
# | ||
config.vm.provision :chef_solo do |chef| | ||
chef.cookbooks_path = "cookbooks" | ||
chef.roles_path = "vagrant/roles" | ||
chef.add_role "redis-server" | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
"private": true, | ||
"authors": [ | ||
"Alex Scown <[email protected]>", | ||
"Alyona Ivanova <[email protected]>" | ||
"Alyona Ivanova <[email protected]>", | ||
"Daniel Grayling <[email protected]" | ||
], | ||
"moduleType": [ | ||
"amd" | ||
|
@@ -12,31 +13,42 @@ | |
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"src/main/webapp/static/lib", | ||
"src/main/webapp/static/bower_components", | ||
"src/main/test", | ||
"mockups" | ||
], | ||
"dependencies": { | ||
"backbone": "backbone#~1.1.0", | ||
"backbone": "~1.2.0", | ||
"colorbox": "colorbox#~1.5.10", | ||
"fontawesome": "components-font-awesome#~3.2.1", | ||
"jquery": "components/jquery#~1.10.2", | ||
"json": "json2#*", | ||
"underscore": "components/underscore#~1.5.2", | ||
"hp-autonomy-js-whatever": "~2.1.0", | ||
"underscore": "~1.8.3", | ||
"hp-autonomy-js-whatever": "~2.3.0", | ||
"hp-autonomy-login-page": "~1.0.2", | ||
"hp-autonomy-settings-page": "~0.1.0", | ||
"hp-autonomy-bootstrap-2": "~2.3.2", | ||
"hp-autonomy-fieldtext-js": "~1.1.0", | ||
"hp-autonomy-js-parametric-refinement": "~0.1.1", | ||
"requirejs": "~2.1.15", | ||
"requirejs-text": "~2.0.13", | ||
"requirejs-i18n": "~2.0.4" | ||
"requirejs-i18n": "~2.0.4", | ||
"icheck": "~1.0.2", | ||
"moment": "~2.10.3", | ||
"eonasdan-bootstrap-datetimepicker": "~4.14.30", | ||
"bootstrap-timepicker": "tarruda/bootstrap-datetimepicker", | ||
"hp-autonomy-hod-sso-js": "~0.5.0", | ||
"hp-autonomy-js-databases-view": "~0.4.0" | ||
}, | ||
"devDependencies": { | ||
"hp-autonomy-js-testing-utils": "~1.0.2" | ||
"hp-autonomy-js-testing-utils": "~1.1.1", | ||
"jasmine-jquery": "~2.1.0" | ||
}, | ||
"resolutions": { | ||
"underscore": "~1.5.2", | ||
"hp-autonomy-js-whatever": "~2.1.0", | ||
"jquery": "~1.10.2" | ||
"underscore": "~1.8.3", | ||
"hp-autonomy-js-whatever": "~2.3.0", | ||
"jquery": "~1.10.2", | ||
"backbone": "~1.2.1", | ||
"jasmine": ">=2" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!upstart | ||
description "HP Find" | ||
author "Copyright 2015 Hewlett-Packard Development Company, L.P. Licensed under the MIT License (the 'License'); you may not use this file except in compliance with the License." | ||
|
||
start on startup | ||
stop on shutdown | ||
|
||
env HOME=/opt/find #ISO installation directory | ||
env USER=find # Linux user to run ISO as | ||
env PORT=8080 # Port to run ISO on | ||
|
||
env SYSLOG=/var/log/find.sys.log # Where to write startup logging to | ||
env PID=/var/run/find.pid # ISO process id file | ||
|
||
env JAVA_BIN=/usr/bin/java # Path to Java 7 binary | ||
|
||
script | ||
cd $HOME | ||
echo $$ > $PID | ||
exec sudo -u $USER $JAVA_BIN -jar $HOME/find.jar -Dhp.find.home="$HOME/home/" -Djava.security.egd=file:/dev/./urandom -httpPort $PORT -uriEncoding utf-8 >> $SYSLOG | ||
end script | ||
|
||
pre-start script | ||
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Starting" >> $ISO_SYSLOG | ||
end script | ||
|
||
pre-stop script | ||
rm $ISO_PID | ||
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Stopping" >> $ISO_SYSLOG | ||
end script |
Oops, something went wrong.