Skip to content

MoonOoOoO/CSSI-ARIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARIO - Automated Reconnaissance Image Organizer

Deploy

Database

Install SQL Server and create a database on Ubuntu

Classification server

Install TensorFlow on Ubuntu

Install packages

$ sudo apt install libopencv-dev python3-opencv
$ pip3 install opencv-python h5py Flask tqdm pandas sklearn

Clone the project

$ git clone http://hpcg.purdue.edu/git/civil.git

Install the classifier SimpleClassifier/model_weights.h5

Run the server

$ python3 classifier.py

Web server

Install Node.js on Ubuntu

Install .NET Core SDK 2.0.3 on Ubuntu

Install libgdiplus

$ sudo apt install libgdiplus

Clone the project

$ git clone http://hpcg.purdue.edu/git/civil.git

Change the connection string in appsettings.json

Server=xxx.xxx.xxx.xxx;Database=Sismique;User Id=SA;Password=Passw0rd;

Change the address of the classification server in ReportController.cs

Publish the application on Ubuntu

$ npm install
$ dotnet publish -c Release -r ubuntu.16.04-x64
$ cd bin/Release/netcoreapp2.0/ubuntu.16.04-x64/publish
$ dotnet Sismique.dll

[OPTIONAL] Change the .NET Core RID

Host the application on Ubuntu

Add a basic authentication

Development configuration for nginx: /etc/nginx/sites-available/sismique

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    server_name _;

    auth_basic           "ARIO";
    auth_basic_user_file /home/mgaillard/civil/.htpasswd;

    client_max_body_size 16M;

    location / {
        proxy_pass http://localhost:5000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection keep-alive;
        proxy_set_header Host $http_host;
        proxy_cache_bypass $http_upgrade;
    }
}
# Activate the new website
$ cd /etc/nginx/sites-enabled
$ sudo unlink default
$ sudo ln -s /etc/nginx/sites-available/sismique .
# Check syntax
$ sudo nginx -t
# Reload
$ sudo nginx -s reload

Upgrade to a newer version

$ git clean -dfx
$ git stash
$ git pull
$ git stash pop
$ dotnet publish -c Release -r ubuntu.16.04-x64

NSF Award Link

https://www.nsf.gov/awardsearch/show-award?AWD_ID=1835473

About

NSF Award #1835473

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published