-
Notifications
You must be signed in to change notification settings - Fork 1
[Tech] Docker notes , version 3.32
1. Replace the application.yml file found in seqdb.web/src/main/resources with the application.yml file found in the Downloads repository on Bitbucket (https://bitbucket.org/aafc-mbb/seqdb/downloads/)
- 'docker-compose up -d db'
- 'docker-compose up -d adminer'
- localhost:18080 , login and create schema 'seqdb'
-
REVOKE CONNECT ON DATABASE seqdb_prod FROM PUBLIC;
-
REVOKE CREATE ON SCHEMA public FROM PUBLIC;
-
create schema from 'adminer' : localhost:18080 -> ( Create seqdb schema -> CREATE SCHEMA seqdb;)
- Create roles using createUsersSetPrivileges.sql (https://bitbucket.org/aafc-mbb/seqdb/downloads/createUsersSetPrivileges.sql) 1.1 Add the SQL-Commands from the 'createUsersSetPrivileges.sql'-file
- Start docker-seqdb -> builds the tables in the 'seqdb'-schema.
- Add users to seqdb by running insertSeqdbUsers.sql (https://bitbucket.org/aafc-mbb/seqdb/downloads/insertSeqdbUsers.sql)
1.1 insert into seqdb.people (NameFamily, NameGiven,LastModified) values ('admin','admin','2019-01-01'), ('user','user','2019-01-01');
1.2 insert into seqdb.accounts (PeopleID,AccountName,AccountPw,AccountStatus,AccountType,ApiKey,LastModified) values (1,'Admin','$2a$10$2AdGg40oWZdmL288StGGhO88VPXGOv6K548k8DbfRhza1rrkbnuci','Active','Admin','adminkey','2019-01-01'), (2,'User','$2a$10$xWykm3LUauNxthMDhfXGfeeYFVsvVaN5uJk8C.1oTVV77ea0.nT4a','Active','User','userkey','2019-01-01');
1.3 insert into seqdb.groups (GroupName,DefaultRights,LastModified) values ('Admin Group','0000','2019-01-01'), ('User Group','0000','2019-01-01'), ('CNC Loan Diptera','0000','2019-01-01'), ('CNC Loan General','0000','2019-01-01'), ('CNC Loan Staff','0000','2019-01-01'), ('CNC Loan Client','0000','2019-01-01'), ('Public','1000','2019-01-01');
1.4 insert into seqdb.accountsgroups (AccountID,GroupID,Rights,Admin,LastModified) values (1,1,'1111','true','2019-01-01'), (2,2,'1111','true','2019-01-01');
1.5 insert into seqdb.accountprofiles (AccountID,LastModified) values (1,'2019-01-01'), (2,'2019-01-01');
- Username: Admin
- Password: Admin
- login
- click the 'Specimens'-link
- click the 'Samples'-link
-
generic config but .... referring to the 'sample_working.xlsx'
-
Create a 'Group': 'NRM-DNA' (all rights)
-
Create a 'Specimen Collection': 'specimen collection' -> 'LARHED' (chosen group-name='NRM-DNA')
-
import specimen-file: https://github.com/CGI-NRM/SeqDB-documentation/blob/master/sample-files/dna-lab/specimen_working.xlsx
-
verify-1 the import of the specimen file : result=OK (96 records)
-
verify-2 the import of the specimen file : press the 'Specimens'-link : Result=OK (96 records)
-
Create a 'storage Container Type' group name = NRM-DNA, container type name = 96well, container type = 'micronic 96 barcoded', number of columns = 12, number of rows = 8, total numbers of wells = 96
-
Add a 'storage container' group name = NRM-DNA, container name = 3000142933 , container type = 96well
-
import the sample-file : https://github.com/CGI-NRM/SeqDB-documentation/blob/master/sample-files/dna-lab/sample_working.xlsx
-
verify-1 the import of the sample file : result=OK (96 records)
-
verify-2 the import of the sample file : press the 'Samples'-link : Result=OK (96 records)
-
verify-3 press the 'Samples'-link : press the first record 'D1305' (Result=OK) , view of the 'rack' (Result=OK)