Skip to content

Commit a4545c8

Browse files
committedApr 10, 2017
Dockerfile, bower install, hopefully from github
1 parent b2166e6 commit a4545c8

39 files changed

+1238
-11883
lines changed
 

‎.dockerignore

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
.git
2-
*.pyc
3-
__pycache__/
4-
.tox
5-
.cache
1+
recastcontrolcenter/static/bower_components

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**.pyc
22
*.egg-info
3+
recastcontrolcenter/static/bower_components

‎Dockerfile

+11-14
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,25 @@ RUN pip install Flask-SQLAlchemy oauth2 cryptography \
2929
Flask-OAuth termcolor urllib3 pyopenssl \
3030
ndg-httpsclient glob2
3131

32-
RUN apt-get update && apt-get install -y npm
33-
RUN apt-get -y --only-upgrade install openssl
32+
3433
# Add sources to `code` and work there:
3534
WORKDIR /code
3635

36+
RUN apt-get update
37+
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
38+
RUN apt-get install -y nodejs
39+
40+
RUN npm install -g bower; echo '{ "allow_root": true }' > /root/.bowerrc
41+
3742
RUN echo bust
3843
ADD . /code
3944

4045
EXPOSE 8000
4146

42-
43-
#RUN pip install recast-api recast-resultblueprints recast-database
44-
4547
RUN echo wha11
4648
# Install recast:
49+
RUN echo bust
50+
RUN curl -sSL https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -o /usr/bin/jq && chmod +x /usr/bin/jq
51+
RUN cat recastcontrolcenter/.bowerrc | jq '.allow_root = true' > newbower; mv newbower recastcontrolcenter/.bowerrc
52+
RUN cd recastcontrolcenter; bower install
4753
RUN pip install --process-dependency-links .
48-
49-
#RUN cd recastcontrolcenter && bower install
50-
# Run container as user `recast` with UID `1000`, which should match
51-
# current host user in most situations:
52-
RUN adduser --uid 1000 --disabled-password --gecos '' recast && \
53-
chown -R recast:recast /code
54-
55-
# Start the application:
56-
# USER recast

‎recastcontrolcenter/bower.json

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
{
2-
"name": "recastcontrolcenter",
3-
"homepage": "https://github.com/recast-hep/recast-control-center-prototype",
4-
"description": "RECAST control center",
2+
"name": "recastcontrol",
3+
"description": "RECAST Control Center",
54
"main": "",
5+
"keywords": [
6+
"workflows"
7+
],
68
"authors": [
79
"Lukas Heinrich"
810
],
911
"license": "MIT",
10-
"private": true
12+
"homepage": "",
13+
"ignore": [
14+
"**/.*",
15+
"node_modules",
16+
"bower_components",
17+
"test",
18+
"tests"
19+
],
20+
"dependencies": {
21+
"bootstrap": "^3.3.7",
22+
"jquery": "^3.2.1",
23+
"lodash": "^4.17.4",
24+
"vis": "^4.19.1"
25+
}
1126
}

‎recastcontrolcenter/recast_interface_templates/recast_all_requests.html

-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
{% endblock %}
66

77
{% block prebody %}
8-
<link rel="stylesheet" href="//cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css">
9-
<script src="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
10-
11-
<link rel="stylesheet" href="//cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.css">
12-
<script src="//cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js"></script>
138

149
<script type="text/javascript">
1510
$(document).ready(function(){

‎recastcontrolcenter/recast_interface_templates/recast_catalogue.html

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
{% endblock %}
66

77
{% block prebody %}
8-
<link rel="stylesheet" href="//cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css">
9-
<script src="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
10-
11-
<link rel="stylesheet" href="//cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.css">
12-
<script src="//cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js"></script>
13-
148
<script type="text/javascript">
159
$(document).ready(function(){
1610
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FlexiJsonEditor is licensed under the MIT license.
2+
3+
Copyright (c) 2011 David Durman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to use,
8+
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
9+
Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
JSON editor jQuery plugin
2+
=========================
3+
4+
A JSON editor component for you web apps/pages.
5+
[Blog post](http://www.daviddurman.com)
6+
7+
[Live example](http://www.daviddurman.com/flexi-json-editor/jsoneditor.html)
8+
9+
10+
INSTALLATION
11+
============
12+
13+
Include these lines into your HTML:
14+
15+
<link rel="stylesheet" href="jsoneditor.css"/>
16+
<script src="jquery.min.js"></script>
17+
<script src="jquery.jsoneditor.js"></script>
18+
19+
20+
USAGE
21+
=====
22+
23+
24+
var myjson = { any: { json: { value: 1 } } };
25+
var opt = {
26+
change: function(data) { /* called on every change */ },
27+
propertyclick: function(path) { /* called when a property is clicked with the JS path to that property */ }
28+
};
29+
/* opt.propertyElement = '<textarea>'; */ // element of the property field, <input> is default
30+
/* opt.valueElement = '<textarea>'; */ // element of the value field, <input> is default
31+
$('#mydiv').jsonEditor(myjson, opt);
32+
33+
34+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/DavidDurman/flexijsoneditor/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
35+

0 commit comments

Comments
 (0)
Please sign in to comment.