-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/sails-1.5.7
- Loading branch information
Showing
925 changed files
with
496 additions
and
98 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
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
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
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
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,64 @@ | ||
FROM ubuntu:20.04 | ||
|
||
# Install apt packages | ||
RUN set -ex \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
python3-dev \ | ||
python3-pip \ | ||
libglib2.0-0 \ | ||
&& rm -rf /var/cache/apt \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get -y update && \ | ||
apt-get -y install git && \ | ||
apt-get clean | ||
|
||
|
||
RUN apt-get update -y | ||
RUN apt-get upgrade -y | ||
RUN apt-get install curl -y | ||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash | ||
RUN apt-get install nodejs -y | ||
RUN apt-get install wget -y | ||
RUN apt-get install gnupg -y | ||
RUN apt-get install mongodb -y | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get install graphicsmagick -y | ||
ENV DEBIAN_FRONTEND newt | ||
|
||
RUN apt-get install dcraw -y | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
COPY . . | ||
|
||
RUN mkdir /tmp/log | ||
|
||
RUN mkdir /data | ||
COPY ./develop-with-data/example_data/db /data/db | ||
COPY ./develop-with-data/example_data/tmp /tmp/scout-tmp | ||
COPY ./develop-with-data/example_data/nas /tmp/nas | ||
# permissions are fussy when you run live code | ||
RUN ["chmod", "-R", "a+rwx", "/data/db"] | ||
RUN ["chmod", "-R", "a+rwx", "/tmp/nas"] | ||
RUN ["chmod", "-R", "a+rwx", "/tmp/scout-tmp"] | ||
|
||
|
||
RUN npm cache clean --force | ||
RUN rm -rf node_modules | ||
RUN npm install | ||
RUN npm install sails -g | ||
RUN npm install [email protected] -g | ||
RUN npm install gm -g | ||
RUN npm install readline-sync --save | ||
RUN npm install connect-mongodb-session --save | ||
RUN npm install sails --save | ||
|
||
|
||
EXPOSE 1337 | ||
|
||
RUN ["chmod", "+x", "/usr/src/app/docker-entrypoint.sh"] | ||
CMD ["/usr/src/app/docker-entrypoint.sh"] |
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,26 @@ | ||
# Development | ||
|
||
This `docker-compose.yml` file can be used to launch an instance of Scout for development purposes. | ||
It will use the repo root directory (up one level) to run the code "live", which allows for editing and | ||
testing code. | ||
|
||
This docker image also comes with some **example data** which can be helpful in testing Scout development. | ||
|
||
Also, this version of Scout **does not include scoutbot** and therefore does not require a GPU (and related setup | ||
overhead) to function. This also means, however, that it cannot process images with ML classifiers. | ||
|
||
## One time setup | ||
From root of the code directory, run `npm install` to make sure all necessary libraries are installed. | ||
|
||
## Usage | ||
|
||
1. From this directory (`/develop-with-data`), run `docker-compose up` to fetch that docker image and run Scout. | ||
1. Once running, use a browser to open http://localhost:1337. Login with `admin`/`admin` as username/password. | ||
|
||
## Troubleshooting | ||
- If you encounter a docker error `urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker`, try running `pip install requests=2.31.0` | ||
- If your process fails, you should run `docker-compose down` to stop the container when you shut down your scout instance (`Ctrl+C`) | ||
|
||
### Credit | ||
|
||
- Example images are from the [WAID dataset from Applied Sciences](https://github.com/xiaohuicui/WAID/). |
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,8 @@ | ||
## Docker image building | ||
|
||
The `Dockerfile` here can be used to build the scout-with-data image. The command to do so, which should be executed from the | ||
root directory of the repo is: | ||
|
||
``` | ||
docker build -t desired-image-name -f develop-with-data/Dockerfile . | ||
``` |
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,20 @@ | ||
version: "3.8" | ||
|
||
services: | ||
|
||
scout: | ||
image: wildme/scout-with-data | ||
stdin_open: true | ||
tty: true | ||
volumes: | ||
- "$PWD/..:/usr/src/app" | ||
|
||
networks: | ||
- intranet | ||
ports: | ||
# development exposure, not exposed in production | ||
- 1337:1337 | ||
|
||
networks: | ||
intranet: | ||
|
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,2 @@ | ||
WiredTiger | ||
WiredTiger 3.1.0: (April 23, 2018) |
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 @@ | ||
WiredTiger lock file |
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,8 @@ | ||
Compatibility version | ||
major=3,minor=0 | ||
WiredTiger version string | ||
WiredTiger 3.1.0: (April 23, 2018) | ||
WiredTiger version | ||
major=3,minor=1,patch=0 | ||
file:WiredTiger.wt | ||
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=,cache_resident=false,checkpoint=(WiredTigerCheckpoint.255=(addr="018081e4108bc0518181e49a5740988281e4ecb73751808080e3020fc0e2bfc0",order=255,time=1732061083,size=61440,write_gen=682)),checkpoint_lsn=(16,6362752),checksum=uncompressed,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,value_format=S,version=(major=1,minor=1) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+60.7 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T17-22-30Z-00000
Binary file not shown.
Binary file added
BIN
+117 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T17-31-21Z-00000
Binary file not shown.
Binary file added
BIN
+494 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T18-43-18Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-16-00Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-20-29Z-00000
Binary file not shown.
Binary file added
BIN
+35.6 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-23-48Z-00000
Binary file not shown.
Binary file added
BIN
+38.4 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-30-53Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-32-47Z-00000
Binary file not shown.
Binary file added
BIN
+35.5 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-35-49Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-37-59Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T20-41-09Z-00000
Binary file not shown.
Binary file added
BIN
+34.8 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T22-10-29Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T22-12-04Z-00000
Binary file not shown.
Binary file added
BIN
+3.62 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T22-13-20Z-00000
Binary file not shown.
Binary file added
BIN
+40.4 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T22-14-55Z-00000
Binary file not shown.
Binary file added
BIN
+548 KB
develop-with-data/example_data/db/diagnostic.data/metrics.2024-11-19T22-21-38Z-00000
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+100 MB
develop-with-data/example_data/db/journal/WiredTigerPreplog.0000000001
Binary file not shown.
Binary file added
BIN
+100 MB
develop-with-data/example_data/db/journal/WiredTigerPreplog.0000000002
Binary file not shown.
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 |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.