Skip to content

Commit

Permalink
Pushing updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniocavalcante committed Sep 24, 2018
1 parent 1e1540b commit a4ce1bd
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 42 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
FROM ubuntu:latest
USER root
RUN apt-get update -y
RUN apt-get update -y
#RUN apt-get install -y apt-utils
RUN apt-get install -y python3-dev python3-pip build-essential
RUN apt-get install -y python-dev python-pip

# Install nodemon
RUN apt-get install -y nodejs npm
RUN npm i -g nodemon

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# dependancies
# dependancies
RUN apt-get install -y default-jdk
RUN apt-get install -y python-tk
RUN apt-get install -y python3-tk
RUN apt-get install -y python3-tk
RUN apt install -y gunicorn
RUN apt install -y python-numpy

Expand All @@ -23,7 +27,6 @@ WORKDIR /app
RUN mkdir workspace
RUN chmod a+rwx workspace


RUN pip3 install -r requirements.txt
RUN pip install -r mustache/resources/requirements.txt
RUN pip install hdbscan
Expand All @@ -37,5 +40,3 @@ WORKDIR /app
# EXPOSE 5000

# ENTRYPOINT [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "4", "wsgi:app" ]


3 changes: 1 addition & 2 deletions compose.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

echo "Building Application.."
export COMPOSE_PROJECT_NAME=mustache
export MUSTACHE_WORKSPACE=$1
Expand All @@ -14,5 +15,3 @@ echo "sleep 3" >> run.sh
echo "xdg-open http://127.0.0.01:5000" >> run.sh

docker-compose build --compress


2 changes: 1 addition & 1 deletion mustache/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"DEBUG": false,
"CELERY_BROKER_URL": "redis://redis/0",
"CELERY_RESULT_BACKEND": "redis://redis/0"
}
}
8 changes: 4 additions & 4 deletions mustache/static/gen/dashboard.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions mustache/static/gen/home.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions mustache/static/js/dashboard/myplots.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var dendrogramXScale;
var yScaleInverted;
var lineScale;

// reachabillity settings
// reachabillity settings
var reachExponent = 1.0;
var reachCharts = {};

Expand Down Expand Up @@ -388,7 +388,7 @@ function update() {
.attr("fill", MultiReachcolorScale(medoids[d]));
})

// add new
// add new
u.enter()
.append("div").classed("chart-scroller", "true").property("id", function (d) {
return "chart_" + d;
Expand Down Expand Up @@ -948,7 +948,7 @@ function dendrogram() {

var transitionTime = 100;

// colour and extract clusters from dendogram based on threshold bar current value.
// colour and extract clusters from dendogram based on threshold bar current value.
function clusterThresholdExtraction(currentValue) {

d3.select("#manualThresh").select("input").property("value", function () {
Expand Down Expand Up @@ -1135,7 +1135,7 @@ function dendrogram() {

}

// set dendogram initially
// set dendogram initially
d3.selectAll("input").each(function (d, i) {
dendoSelect(this)
})
Expand Down Expand Up @@ -1560,4 +1560,4 @@ d3.select("#reach-per-pg").on("change", function () {
d3.select('#reach-plot').selectAll(".chart-scroller").remove();
reachPaging();
update();
})
})
16 changes: 8 additions & 8 deletions mustache/static/js/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function submitData() {

function startStep() {
$("#submitDataForm").trigger("reset");
console.log("start");
console.log("Opening data submission form...");
}

function nextStep() {
Expand Down Expand Up @@ -397,6 +397,7 @@ function check(selection) {
}
if (id == "file-labels") {
checkSum[1] = data.length;
console.log(data.length);
}

function resetFile(id) {
Expand All @@ -405,12 +406,11 @@ function check(selection) {
$('.dropify-wrapper').has("#" + id).toggleClass("has-error")
}

if (errors.length > 0) {
resetFile(id);
console.log(errors);
return false;

}
// if (errors.length > 0) {
// resetFile(id);
// console.log(errors);
// return false;
// }

if (checkSum.length == 2) {
if (checkSum[0] != checkSum[1]) {
Expand Down Expand Up @@ -461,4 +461,4 @@ $(function () {
checkSum = [];
})

});
});
2 changes: 1 addition & 1 deletion mustache/templates/dashboard/index2.html
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ <h1 class="text-center brand-block">
<img src="{{ url_for('static', filename='img/UA-EAC-COLOUR-REVERSE.svg') }}" class="side-logo-uofa">
</a>
<a href="">
<img src="{{ url_for('static', filename='img/jcu-logo.png') }}" class="side-logo-jcu">
<img src="{{ url_for('static', filename='img/newcastle-logo.png') }}" class="side-logo-newcastle">
</a>
</div>
</div>
Expand Down
19 changes: 8 additions & 11 deletions mustache/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ <h5 class="modal-title text-center panel-title-extra js-title-step" id="exampleM
<strong class="text-primary">Step 1: </strong>Load a CSV file of data. </p>
</div>
<div class="col-md-6">
<!-- <p>load yourself some really good data!</p> -->
<div class="well well-sm">
<code>
0.1\t0.2\t0.5\t0.9
<br>0.2\t0.1\t5.0\t0.2
<br>0.4\t0.1\t7.0\t0.8
0.1, 0.2, 0.5, 0.9 <br>
0.2, 0.1, 5.0, 0.2 <br>
0.4, 0.1, 7.0, 0.8
</code>
</div>
</div>
Expand All @@ -130,14 +129,12 @@ <h5 class="modal-title text-center panel-title-extra js-title-step" id="exampleM
<strong class="text-primary">Step 2: </strong>Load a CSV file of labels. </p>
</div>
<div class="col-md-6">
<!-- <p>load yourself some really good data!</p> -->
<div class="well well-sm">
<code>
Pokémon\tSpecies
<br>Wartortle\tTurtle
<br>Venusaur\tSeed
<br>Charmeleon\tFlame
</code>
Linda Stanley, Toronto<br>
Alan Jonhson, New York<br>
Marie Dubois, Paris
</code>
</div>
</div>
<div class="col-md-6">
Expand Down Expand Up @@ -389,4 +386,4 @@ <h1 class="text-center brand-block">
</script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
export COMPOSE_PROJECT_NAME=mustache
export MUSTACHE_WORKSPACE=/home/csaba/Documents/datasets
export MUSTACHE_WORKSPACE=/home/toni/workspace
docker-compose up -d
sleep 3
xdg-open http://127.0.0.01:5000

0 comments on commit a4ce1bd

Please sign in to comment.