-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DFTT 2.0 release using updated schema, additional file format support…
…, and providing docker container options.
- Loading branch information
1 parent
935f3b7
commit e004c30
Showing
532 changed files
with
49,094 additions
and
26,900 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Manually running the project | ||
|
||
Install Docker or compatible runtime: | ||
|
||
### Windows | ||
https://docs.microsoft.com/en-us/windows/wsl/install | ||
|
||
https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-containers | ||
|
||
### Linux/Mac/Etc | ||
|
||
https://docs.docker.com/engine/ | ||
|
||
|
||
Pull the official Oracle container repository Dockerfile and build the EE image at oracle/docker-images/tree/main/OracleDatabase/SingleInstance/dockerfiles/, download the LINUX.X64_213000_db_home.zip installation file for Oracle EE 21.3, place it in the 21.3.0 folder, and run: | ||
|
||
./buildContainerImage.sh -v 21.3.0 -t oracle:21.3.0-0-ee -e | ||
|
||
Pull or build the dftt and dftt-db images. | ||
|
||
Create a host-only bridge network for DFTT, this will enable the service discovery mechanism and insure that DFTT doesn't conflict with any existing network resources: | ||
|
||
docker network create --driver bridge dftt-net | ||
|
||
Start the database and set the necessary password: | ||
|
||
mkdir -p \$(pwd)/database | ||
|
||
docker run -e ORACLE_PDB=ORCL -e ORACLE_PWD=changeit -v $(pwd)/database/:/opt/oracle/oradata/ --network dftt-net --name dftt-db -d -p 127.0.0.1:1521:1521 dftt-db | ||
|
||
Start the gui: | ||
|
||
mkdir -p \$(pwd)/config | ||
|
||
mkdir -p \$(pwd)/data | ||
|
||
docker run -p 127.0.0.1:8080:8080 -v $(pwd)/config/:/opt/apps/config/ -v \$(pwd)/data/:/opt/apps/data/ -e DB_URL=dftt-db --name dftt-gui --network dftt-net -d dftt | ||
|
||
Log into the gui by opening a browser and visiting: | ||
http://127.0.0.1:8080/ | ||
|
||
You can now connect to the database from the Builder to start working on DFTT projects. | ||
|
||
### FDSN example | ||
|
||
cd /opt/apps/config/ && ../ConfigCreator_2.0.sh dftt@dftt-db -c TJN -m 2022040 -M 2022046 -s TJN -I IRISDMC -type FDSN | ||
|
||
### Continuous Waveform table example | ||
|
||
./ConfigCreator_2.0.sh dftt@dftt-db -c JOKA_Z -D 1 -d 1 -e 10 -f 2 -F 20 -i 5 -m 2018119 -M 2018124 -n 80 -s JOKA -S 2 -t 0.5 | ||
|
||
Note that for the continuous waveform usage you will need to have waveforms available and mounted in volumes into the docker container that match the paths entered into the CONTINUOUS_WAVEFORM table. |
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,12 @@ | ||
FROM oracle:21.3.0-0-ee | ||
|
||
ARG NAME="Detection Framework Standalone Database" | ||
ARG DESCRIPTION="Basic Oracle database set up to allow testing the DFTT project in a standalone configuration, not for production use!" | ||
ARG LICENSE="Unreleased" | ||
ARG VENDOR="LLNL" | ||
|
||
LABEL name=$NAME | ||
LABEL maintainer="Justin Barno ([email protected])" | ||
LABEL gov.llnl.tags="utilities" | ||
|
||
ADD oracle-setup/ /opt/oracle/scripts/setup/ |
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 @@ | ||
#!/bin/sh | ||
docker build . -t dftt-db:latest |
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,61 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: oracle | ||
namespace: dftt | ||
labels: | ||
app: oracle | ||
tier: databases | ||
version: v1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
name: oracle | ||
template: | ||
metadata: | ||
labels: | ||
name: oracle | ||
spec: | ||
containers: | ||
- name: oracle | ||
image: llnl/oracle:latest | ||
env: | ||
- name: ORACLE_SQL_DIR | ||
value: /opt/oracle/scripts/startup | ||
- name: ORACLE_PDB | ||
value: ORCL | ||
- name: ORACLE_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 1521 | ||
name: oracle | ||
- containerPort: 8080 | ||
name: oracle-studio | ||
volumeMounts: | ||
- mountPath: /opt/oracle/oradata | ||
name: oracle-data | ||
- mountPath: /dev/shm | ||
name: dshm | ||
volumes: | ||
- name: oracle-data | ||
hostPath: | ||
path: /oradata | ||
- name: dshm | ||
emptyDir: | ||
medium: Memory | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dftt-db-service | ||
spec: | ||
selector: | ||
app: oracle | ||
ports: | ||
- port: 1521 | ||
targetPort: oracle |
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
SYS_SCRIPTS=/opt/oracle/scripts/setup/sys_scripts | ||
DFTT_SCRIPTS=/opt/oracle/scripts/setup/dftt_scripts | ||
DFTT_USER=dftt | ||
DFTT_PWD=changeit | ||
DFTT_USER_AUTH=${DFTT_USER}/${DFTT_PWD} | ||
|
||
for f in $SYS_SCRIPTS/*; do | ||
case "$f" in | ||
*.sh) echo "$0: running $f"; . "$f" ;; | ||
*.sql) echo "$0: running $f"; echo "exit" | $ORACLE_HOME/bin/sqlplus -s "sys/$ORACLE_PWD@localhost:1521/ORCL as SYSDBA" @"$f"; echo ;; | ||
*) echo "$0: ignoring $f" ;; | ||
esac | ||
echo ""; | ||
done | ||
|
||
for f in $DFTT_SCRIPTS/*; do | ||
case "$f" in | ||
*.sh) echo "$0: running $f"; . "$f" ;; | ||
*.sql) echo "$0: running $f"; echo "exit" | $ORACLE_HOME/bin/sqlplus -s "${DFTT_USER_AUTH}@localhost:1521/ORCL" @"$f"; echo ;; | ||
*) echo "$0: ignoring $f" ;; | ||
esac | ||
echo ""; | ||
done |
Oops, something went wrong.