Skip to content

Commit 2eed8fc

Browse files
committed
Merge branch 'master' into ExportExceptionFixesForRoundTrip
2 parents d9b88a5 + 0efa9a3 commit 2eed8fc

File tree

161 files changed

+12217
-595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+12217
-595
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ COPY ./vcell-client/target/vcell-client-0.0.1-SNAPSHOT.jar \
6767
./vcell-admin/target/maven-jars/*.jar \
6868
./vcell-cli/target/vcell-cli-0.0.1-SNAPSHOT.jar \
6969
./vcell-cli/target/maven-jars/*.jar \
70-
./non-maven-java-libs/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar \
71-
./non-maven-java-libs/com/oracle/ucp/11.2.0.4/ucp-11.2.0.4.jar \
7270
./non-maven-java-libs/org/sbml/libcombine/libCombineLinux64/0.2.7/libCombineLinux64-0.2.7.jar \
7371
/usr/local/app/vcell/lib/
7472

README_Debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ If VCell client simulation list view says 'hasdata=no' but there is data
33
-----Find sim id (click 'i' button when sim is selected) -> theSimID
44
-----log into vcell-node1 (or any node not in DMZ, not vcellapi or vcellapi-beta)
55
-----Check data exists, give cmd " ls /share/apps/vcell3/users/boris/SimID_theSimID* "
6-
-----open oracle db tool (toad,sql,squirrel), log into vcell@vcell-db.cam.uchc.edu and do query " select * from vc_simulationjob where simref=theSimID; "
6+
-----open oracle db tool (toad,sql,squirrel), log into vcell@vcell-oracle.cam.uchc.edu and do query " select * from vc_simulationjob where simref=theSimID; "
77
-----If the query column 'hasdata' is blank then do update " update vc_simulationJob set hasdata='Y' where simref=theSimID; " and " commit; "
88
-----log into vcellapi(Rel) or vcellapi-beta(Alpha)
99
-----Restart VCell docker scheduler service with cmd " sudo docker service update --force --detach=false vcell{rel,alpha}_sched "
@@ -131,7 +131,7 @@ client local run alpha
131131
-Dvcell.server.dbPassword=
132132
-Dvcell.server.dbUserid=vcell
133133
-Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver
134-
-Dvcell.server.dbConnectURL=jdbc:oracle:thin:@vcell-db.cam.uchc.edu:1521:vcelldborcl
134+
-Dvcell.server.dbConnectURL=jdbc:oracle:thin:@vcell-oracle.cam.uchc.edu:1521:ORCLPDB1
135135
-Dvcell.server.id=alpha\_7.0.0\_51
136136
-Dvcell.mongodb.database=TEST
137137
-Dvcell.mongodb.host.internal=vcellapi-beta.cam.uchc.edu

README_flow_control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ all solvers call vcell-solver/VCellMessaging/src/SimulationMessaging.cpp.setWork
5555
--SimulationDispatcherEngine.onworkerEvent(...)
5656
---SimulationStateMachine.onWorkerEvent(...)
5757
----SimulationDatabaseDirect.updateSimulationJobStatus(...)
58-
-----AdminDBToplevel.updateSimulationJobStatus(...) (**updates Oracle** real database host vcell-db.cam.uchc.edu, NOT vcell-db container)
58+
-----AdminDBToplevel.updateSimulationJobStatus(...) (**updates Oracle** real database host vcell-oracle.cam.uchc.edu, NOT vcell-db container)
5959
----StatusMessage.sendToClient(...) (sends to AMQint container clientStatus topic)
6060
**activemqint container**
6161
-recieves sim status message on the 'clientStatus' topic

README_orphan.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ vcellNagios.sh calls Rel web service https://vcellapi/health?check={login,sim}
7979
**DBBackupAndClean**
8080
vcell-node1:/opt/build/frm/dbbackupclean
8181
//Normal, without debug
82-
java -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk vcell-db vcell /opt/build/frm/dbpw.txt vcelldborcl.cam.uchc.edu /tmp /share/apps/vcell3/users
82+
java -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk vcell-oracle vcell /opt/build/frm/dbpw.txt ORCLPDB1 /tmp /share/apps/vcell3/users
8383

8484
//Normal, without debug, single user only
85-
java -Xms200m -Xmx1500m -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk2 vcell-db vcell /opt/build/frm/dbpw.txt vcelldborcl.cam.uchc.edu /tmp /share/apps/vcell3/users Juliajessica
85+
java -Xms200m -Xmx1500m -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk2 vcell-oracle vcell /opt/build/frm/dbpw.txt ORCLPDB1 /tmp /share/apps/vcell3/users Juliajessica
8686

8787
//With debug (note: eclipse debug config: vcell-server,vcell-node1,30301)
88-
java -agentlib:jdwp=transport=dt_socket,server=y,address=30301,suspend=y -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk vcell-db vcell /opt/build/frm/dbpw.txt vcelldborcl.cam.uchc.edu /tmp /share/apps/vcell3/users
88+
java -agentlib:jdwp=transport=dt_socket,server=y,address=30301,suspend=y -cp ./maven-jars/*:./vcell-server-0.0.1-SNAPSHOT.jar:./ojdbc6-11.2.0.4.jar:./ucp-11.2.0.4.jar:./vcell-oracle-0.0.1-SNAPSHOT.jar -Dvcell.server.dbDriverName=oracle.jdbc.driver.OracleDriver cbit.vcell.modeldb.DBBackupAndClean delsimsdisk vcell-oracle vcell /opt/build/frm/dbpw.txt ORCLPDB1 /tmp /share/apps/vcell3/users
8989

90-
//DBBackupAndClean Scheduled Task (vcell-db.cam.uchc.edu->'scheduled task'->'Task Scheduler Library'->cleanAndBackupDB->properties->Actions->'Edit...')
90+
//DBBackupAndClean Scheduled Task (vcell-oracle.cam.uchc.edu->'scheduled task'->'Task Scheduler Library'->cleanAndBackupDB->properties->Actions->'Edit...')
9191
Program/script: "C:\Program Files (x86)\Java\jre1.8.0_121\bin\java.exe"
92-
Add arguments: -jar DBBackupAndClean_Ampli.jar cleanandbackup vcell-db vcell cbittech vcelldborcl.cam.uchc.edu \\cfs05\vcell\temp \\cfs03\shared\archive\vcell\VCDBdumps
92+
Add arguments: -jar DBBackupAndClean_Ampli.jar cleanandbackup vcell-oracle vcell password ORCLPDB1 \\cfs05\vcell\temp \\cfs03\shared\archive\vcell\VCDBdumps
9393
Start in: C:\fromDBS3
9494

9595

96-
**Delete large listener.log file**
96+
**Delete large listener.log file - obsolete - oracle now containerized running on vcell-oracle machine **
9797
log in to vcell-db (a windows host) as admin user using 'Remote Desktop Connection'
9898
start 'cmd' window as system administrator (start->'command prompt->'rt-click, 'run as administrator')
9999
//make sure of path to listener log
@@ -130,22 +130,22 @@ NOTE: enter following after 'java' for debug (-agentlib:jdwp=transport=dt_socket
130130
4a. Run to generate .csv report, expects vcellDB password to be enetered on console
131131

132132
java -cp ./dbbackupclean/ojdbc6-11.2.0.4.jar:./dbbackupclean/ucp-11.2.0.4.jar:./dbbackupclean/vcell-oracle-0.0.1-SNAPSHOT.jar:./cbit_vcell_tools_IonItems.jar
133-
cbit.vcell.tools.IonItems 'jdbc:oracle:thin:@vcell-db.cam.uchc.edu:1521:vcelldborcl' '/share/apps/vcell3/users' publicmodelwithsims false | tee ./pubModelsSimIdOnly.txt
133+
cbit.vcell.tools.IonItems 'jdbc:oracle:thin:@vcell-oracle.cam.uchc.edu:1521:ORCLPDB1' '/share/apps/vcell3/users' publicmodelwithsims false | tee ./pubModelsSimIdOnly.txt
134134

135135
4b. Run to save vcml of published modesl with sims that have no data or exceptions removed from vcml
136136

137137
java -cp ./dbbackupclean/ojdbc6-11.2.0.4.jar:./dbbackupclean/ucp-11.2.0.4.jar:./dbbackupclean/vcell-oracle-0.0.1-SNAPSHOT.jar:./cbit_vcell_tools_IonItems.jar:./maven- jars/jhdf5_2.10-2.9.jar
138-
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-db.cam.uchc.edu:1521:vcelldborcl" "/share/apps/vcell3/users" publishedmodelvcml /share/apps/vcell3/users/ionvcml 0 0
138+
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-oracle.cam.uchc.edu:1521:ORCLPDB1" "/share/apps/vcell3/users" publishedmodelvcml /share/apps/vcell3/users/ionvcml 0 0
139139

140140
4c. Run to read vcml saved from 4b and compare to vcml from db and print the sims that had to be removed
141141

142142
java -cp ./dbbackupclean/ojdbc6-11.2.0.4.jar:./dbbackupclean/ucp-11.2.0.4.jar:./dbbackupclean/vcell-oracle-0.0.1-SNAPSHOT.jar:./cbit_vcell_tools_IonItems.jar:./maven-jars/jhdf5_2.10-2.9.jar
143-
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-db.cam.uchc.edu:1521:vcelldborcl" /share/apps/vcell3/users/ionvcml publishedmodelvcmldiff
143+
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-oracle.cam.uchc.edu:1521:ORCLPDB1" /share/apps/vcell3/users/ionvcml publishedmodelvcmldiff
144144
145145
4d. Run to save vcml from TestSuit
146146

147147
java -cp ./dbbackupclean/ojdbc6-11.2.0.4.jar:./dbbackupclean/ucp-11.2.0.4.jar:./dbbackupclean/vcell-oracle-0.0.1-SNAPSHOT.jar:./cbit_vcell_tools_IonItems.jar:./maven-jars/jhdf5_2.10-2.9.jar
148-
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-db.cam.uchc.edu:1521:vcelldborcl" /share/apps/vcell3/users/ionts testsuitemodelvcml
148+
-Djava.library.path="./natlibs" cbit.vcell.tools.IonItems "jdbc:oracle:thin:@vcell-oracle.cam.uchc.edu:1521:ORCLPDB1" /share/apps/vcell3/users/ionts testsuitemodelvcml
149149

150150
***----------------------------------------------------------------------------------------------------------***
151151

docker/README_Oracle.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# grab dump from VCell-db.cam.uchc.edu, windows 2008, Oracle 11g enterprise
2+
### character set is WE8MSWIN1252
3+
4+
### export from vcell-db using datapump for vcell schema
5+
in vcell-db database, named directory ```E_DATA_PUMP_DIR``` maps to ```e:\db```
6+
7+
scn = 1430710053 (compute from sql below)
8+
```sql
9+
select current_scn from v$database
10+
```
11+
expdp system/<<password>>@vcelldborcl directory=E_DATA_PUMP_DIR dumpfile=vcelldb_dump_2023_08_19.dmp logfile=vcelldb_dump_2023_08_19.log schemas=vcell flashback_scn=1430710053
12+
13+
# build new oracle database image on vcell-oracle.cam.uchc.edu
14+
15+
### check out github repo for oracle docker containers
16+
### download ```LINUX.X64_193000_db_home.zip``` and install in ./19.3.0/ directory
17+
### build the container (from docker-images/OracleDatabase/SingleInstance/)
18+
19+
```bash
20+
./buildContainerImage.sh -s -v 19.3.0 -o '--build-arg SLIMMING=false'
21+
```
22+
### tag and push image to container repository
23+
```bash
24+
docker tag <<image name>> ghcr.io/virtualcell/oracle-database:19.3.0-se2
25+
docker push ghcr.io/virtualcell/oracle-database:19.3.0-se2
26+
```
27+
28+
## create /data/oradata, /data/backup directories and set permissions to allow container oracle/dba rw access.
29+
30+
## running the container on vcell-oracle (for the first time)
31+
```bash
32+
sudo docker run --detach --restart=always \
33+
--name oracle-database \
34+
-p 1521:1521 -p 5500:5500 \
35+
--ulimit nofile=1024:65536 --ulimit nproc=2047:16384 --ulimit stack=10485760:33554432 --ulimit memlock=3221225472 \
36+
-e ORACLE_SID=ORCLCDB \
37+
-e ORACLE_PDB=ORCLPDB1 \
38+
-e ORACLE_PWD=<<password>> \
39+
-e INIT_CPU_COUNT=4 \
40+
-e ORACLE_EDITION=standard \
41+
-e ENABLE_TCPS=false \
42+
-e ORACLE_CHARACTERSET=WE8MSWIN1252 \
43+
-e ENABLE_ARCHIVELOG=true \
44+
-v /data/oradata:/opt/oracle/oradata \
45+
-v /data/backup:/opt/oracle/backup \
46+
ghcr.io/virtualcell/oracle-database:19.3.0-se2
47+
```
48+
49+
```bash
50+
sudo docker logs -f oracle-database
51+
```
52+
53+
## register directory object EXT_DATA_PUMP_DIR for /opt/oracle/backup (host /data/backup)
54+
```sql
55+
create or replace directory EXT_DATA_PUMP_DIR as '/opt/oracle/backup';
56+
```
57+
58+
## add user vcell (((Command doesn't work)))
59+
sqlplus system/<<password>>@ORCLPDB1
60+
```sql
61+
create directory EXT_DATA_PUMP_DIR as '/opt/oracle/backup';
62+
```
63+
64+
## run the import
65+
```bash
66+
docker exec -it oracle-database /bin/bash
67+
impdp system/<<password>>@ORCLPDB1 schemas=vcell table_exists_action=REPLACE directory=EXT_DATA_PUMP_DIR dumpfile=FRMDEV2ORCL_VCELL_2023_08_19_17_05_08.DMP logfile=FRMDEV2ORCL_VCELL_2023_08_19_17_05_08.log
68+
69+
impdp system/<<password>>@ORCLPDB1 schemas=vcell table_exists_action=REPLACE directory=EXT_DATA_PUMP_DIR dumpfile=FRMDEV2ORCL_VCELL_2023_08_19_17_05_08.DMP logfile=FRMDEV2ORCL_VCELL_2023_08_19_17_05_08.log.3
70+
```
71+

docker/README_serviceInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ nmym8qspowiu1d850ok9vwtk2 vcell-node4.cam.uchc.edu Ready A
107107
kn3y3t1rw8skyua80j841ohng vcellapi-beta.cam.uchc.edu Ready Active Reachable 18.03.0-ce
108108
```
109109

110-
## vcell-db.cam.uchc.edu, NOT Docker, (VCell database)
110+
## vcell-oracle.cam.uchc.edu, NOT Docker, (VCell database)
111111
Oracle database, has all models, sim status, all user data, everything
112112

113113
## vcell-docker.cam.uchc.edu, NOT Swarm node, (VCell docker registry) [details](build/README_Registry.md)

docker/build/Dockerfile-admin-dev

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ FROM ubuntu:18.04
33
RUN apt-get -y update && \
44
apt-get install -y curl openjdk-8-jre dnsutils && \
55
mkdir -p /usr/local/app/lib
6-
6+
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
8+
RUN unlink /etc/localtime || true
9+
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
10+
711
WORKDIR /usr/local/app
812

913
COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
1014
./vcell-server/target/maven-jars/*.jar \
1115
./vcell-oracle/target/vcell-oracle-0.0.1-SNAPSHOT.jar \
1216
./vcell-oracle/target/maven-jars/*.jar \
13-
./non-maven-java-libs/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar \
14-
./non-maven-java-libs/com/oracle/ucp/11.2.0.4/ucp-11.2.0.4.jar \
1517
./vcell-api/target/vcell-api-0.0.1-SNAPSHOT.jar \
1618
./vcell-api/target/maven-jars/*.jar \
1719
./vcell-admin/target/vcell-admin-0.0.1-SNAPSHOT.jar \

docker/build/Dockerfile-api-dev

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ FROM ubuntu:18.04
33
RUN apt-get -y update && \
44
apt-get install -y curl openjdk-8-jre dnsutils && \
55
mkdir -p /usr/local/app/lib
6-
6+
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
8+
RUN unlink /etc/localtime || true
9+
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
10+
711
WORKDIR /usr/local/app
812

913
COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
1014
./vcell-server/target/maven-jars/*.jar \
1115
./vcell-oracle/target/vcell-oracle-0.0.1-SNAPSHOT.jar \
1216
./vcell-oracle/target/maven-jars/*.jar \
13-
./non-maven-java-libs/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar \
14-
./non-maven-java-libs/com/oracle/ucp/11.2.0.4/ucp-11.2.0.4.jar \
1517
./vcell-api/target/vcell-api-0.0.1-SNAPSHOT.jar \
1618
./vcell-api/target/maven-jars/*.jar \
1719
./lib/
@@ -62,6 +64,7 @@ ENTRYPOINT java \
6264
-Dvcell.server.dbDriverName="${dbdriver}" \
6365
-Dvcell.server.dbUserid="${dbuser}" \
6466
-Dvcell.db.pswdfile="${dbpswdfile}" \
67+
-Duser.timezone="${userTimezone}" \
6568
-Dvcell.jms.int.host.internal="${jmshost_int_internal}" \
6669
-Dvcell.jms.int.port.internal="${jmsport_int_internal}" \
6770
-Dvcell.jms.blobMessageUseMongo=true \

docker/build/Dockerfile-batch-dev

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ RUN apt-get -y update && \
8686
# wget --no-check-certificate https://download.opensuse.org/repositories/home:/fbergman:/COPASI/xUbuntu_17.10/amd64/python-copasi_4.22.170-1_amd64.deb && \
8787
# gdebi -n -q python-copasi_4.22.170-1_amd64.deb
8888

89+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
90+
RUN unlink /etc/localtime || true
91+
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
92+
8993
RUN mkdir -p /usr/local/app/localsolvers && ln -s /vcellbin /usr/local/app/localsolvers/linux64
9094
WORKDIR /usr/local/app
9195

docker/build/Dockerfile-data-dev

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@ RUN mkdir -p /usr/local/app && \
5858
apk update && \
5959
apk add --no-cache ttf-dejavu && \
6060
apk add openssh-client && \
61-
apk add screen
61+
apk add screen tzdata
62+
63+
ENV TZ=America/New_York
64+
RUN unlink /etc/localtime || true
65+
RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
6266

6367
WORKDIR /usr/local/app
6468

6569
COPY ./vcell-server/target/vcell-server-0.0.1-SNAPSHOT.jar \
6670
./vcell-server/target/maven-jars/*.jar \
6771
./vcell-oracle/target/vcell-oracle-0.0.1-SNAPSHOT.jar \
6872
./vcell-oracle/target/maven-jars/*.jar \
69-
./non-maven-java-libs/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar \
70-
./non-maven-java-libs/com/oracle/ucp/11.2.0.4/ucp-11.2.0.4.jar \
7173
./lib/
7274

7375

0 commit comments

Comments
 (0)