-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add/mmap #19
Open
james-poole-mf
wants to merge
6
commits into
main
Choose a base branch
from
add/mmap
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add/mmap #19
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7a3b2ee
Initial implementation of idol-mmap chart
daniel-lau-mf 702357c
Initial changes for adding idol-mmap to stuff
james-poole-mf 48e87d6
Restore ReadWriteMany accessMode for video pvcs
james-poole-mf af84fc2
Add README note for OpenShift deployments
james-poole-mf 4c70982
Re-add copyright notice
james-poole-mf 7ce0c59
Add postgres primary securityContext defaults to values.yaml
james-poole-mf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,19 @@ | ||
# BEGIN COPYRIGHT NOTICE | ||
# (c) Copyright 2022 Micro Focus or one of its affiliates. | ||
# END COPYRIGHT NOTICE | ||
apiVersion: v2 | ||
name: idol-mmap | ||
version: 0.1.0 | ||
appVersion: "23.4.0" | ||
description: A configurable IDOL mmap setup | ||
dependencies: | ||
- name: idol-library | ||
version: "0.2.0" | ||
repository: https://raw.githubusercontent.com/opentext-idol/idol-containers-toolkit/main/helm | ||
- name: idol-licenseserver | ||
condition: idol-licenseserver.enabled | ||
version: "0.1.0" | ||
repository: https://raw.githubusercontent.com/opentext-idol/idol-containers-toolkit/main/helm | ||
- name: postgresql | ||
version: "13.2.3" | ||
repository: https://charts.bitnami.com/bitnami |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2023 Open Text or one of its affiliates. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,15 @@ | ||
# idol-mmap | ||
|
||
Provides a deployment of a IDOL MMAP (Media Management and Analysis Platform). | ||
|
||
## OpenShift Deployment | ||
|
||
In order to comply with constraints OpenShift places on containers, the Container and Pod security contexts of the Bitnami PostgreSQL sub chart need to be disabled. | ||
``` | ||
postgresql: | ||
primary: | ||
containerSecurityContext: | ||
enabled: false | ||
podSecurityContext: | ||
enabled: false | ||
``` |
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,289 @@ | ||
|
||
create table annotation ( | ||
imageFrame int4 not null, | ||
imageHeight int4 not null, | ||
imageTime timestamp not null, | ||
imageWidth int4 not null, | ||
label varchar(255), | ||
id varchar(255) not null, | ||
notesId int8, | ||
primary key (id) | ||
); | ||
|
||
create table annotationNotes ( | ||
id bigserial not null, | ||
text text not null, | ||
primary key (id) | ||
); | ||
|
||
create table face ( | ||
confidence int4, | ||
database varchar(255), | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
name varchar(255), | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table keyframe ( | ||
id varchar(255) not null, | ||
stream varchar(50) not null, | ||
time timestamp not null, | ||
imageHeight int4, | ||
image bytea, | ||
imagePath varchar(255), | ||
mimeType varchar(255), | ||
imageWidth int4, | ||
primary key (id) | ||
); | ||
|
||
create table licensePlate ( | ||
confidence int4, | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
origin varchar(255), | ||
rawRead varchar(255), | ||
shape varchar(255), | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
vehicleColor1 int4, | ||
vehicleColor2 int4, | ||
vehicleColor3 int4, | ||
vehicleColorSpace varchar(255), | ||
vehicleColorName varchar(255), | ||
vehicleColorProportion int4, | ||
vehicleMake varchar(255), | ||
vehicleMakeConfidence int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table licensePlateRead ( | ||
id serial not null, | ||
text varchar(255) not null, | ||
licensePlate varchar(255), | ||
primary key (id) | ||
); | ||
|
||
create table logo ( | ||
confidence int4, | ||
database varchar(255), | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
name varchar(255) not null, | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table ocr ( | ||
confidence int4, | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
text varchar(255) not null, | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table program ( | ||
category varchar(255), | ||
channel varchar(255), | ||
description varchar(255), | ||
quality varchar(255), | ||
title varchar(255) not null, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table sceneAnalysis ( | ||
category varchar(255), | ||
confidence int4, | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table searchableVideoEvent ( | ||
id varchar(255) not null, | ||
searchableText varchar(255), | ||
primary key (id) | ||
); | ||
|
||
create table speaker ( | ||
confidence int4, | ||
gender varchar(255), | ||
name varchar(255), | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table story ( | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table storyTerm ( | ||
id serial not null, | ||
text varchar(255) not null, | ||
weight int4 not null, | ||
story varchar(255), | ||
primary key (id) | ||
); | ||
|
||
create table surveillance ( | ||
alerttype varchar(255), | ||
category varchar(255), | ||
confidence int4, | ||
detector varchar(255), | ||
imageHeight int4, | ||
imageMimeType varchar(255), | ||
imagePath varchar(255), | ||
imageWidth int4, | ||
thumbnailHeight int4, | ||
thumbnailMimeType varchar(255), | ||
thumbnailPath varchar(255), | ||
thumbnailWidth int4, | ||
id varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table videoEvent ( | ||
id varchar(255) not null, | ||
endTime timestamp not null, | ||
startTime timestamp not null, | ||
stream varchar(50) not null, | ||
type varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
create table word ( | ||
id varchar(255) not null, | ||
stream varchar(50) not null, | ||
endTime timestamp not null, | ||
startTime timestamp not null, | ||
confidence int4, | ||
text varchar(255) not null, | ||
primary key (id) | ||
); | ||
|
||
alter table keyframe | ||
add constraint keyframe_time_unq unique (stream, time); | ||
|
||
create index event_stream_startTime_id_endTime_type_idx on videoEvent (stream, startTime, id, endTime, type); | ||
create index word_stream_startTime_id_endTime_idx on word (stream, startTime, id, endTime); | ||
create index word_stream_startTime_endTime_idx on word (stream, startTime, endTime); | ||
|
||
alter table annotation | ||
add constraint FKjyieyp90ei64bk9u331ou9hd1 | ||
foreign key (notesId) | ||
references annotationNotes | ||
on delete cascade; | ||
|
||
alter table annotation | ||
add constraint FKks1blew2yqrw0vcbbrlvnpl11 | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table face | ||
add constraint FK1ve9ltfqfufn7fqf10sqymo8y | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table licensePlate | ||
add constraint FKf1ulnrocsacl2843gdvy4wrnb | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table licensePlateRead | ||
add constraint FKib0sp3h07iy04rko1f05ybccx | ||
foreign key (licensePlate) | ||
references licensePlate | ||
on delete cascade; | ||
|
||
alter table logo | ||
add constraint FKmu6t6p67lj4mhfu8xarti1v01 | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table ocr | ||
add constraint FK7ww0rowql7s8vwnydx70489t9 | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table program | ||
add constraint FKb4ja1aqr7pm49l1dwj5wyl0nh | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table sceneAnalysis | ||
add constraint FKesbcn045ptbdq82ifqb6bba59 | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table speaker | ||
add constraint FKk97thxt0c5rfsqh1j85rt3x4j | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table story | ||
add constraint FK7wq88em3p7pok1j5jvpsfltd | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; | ||
|
||
alter table storyTerm | ||
add constraint FKkgeiev5loidqx29npx4v8rvn9 | ||
foreign key (story) | ||
references story | ||
on delete cascade; | ||
|
||
alter table surveillance | ||
add constraint FKmhkr30m69dcdv8rnrrgkq1b5a | ||
foreign key (id) | ||
references videoEvent | ||
on delete cascade; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add these explicitly into the values.yaml file with defaults set to 'true' so it's easier to see what/where to change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7ce0c59