Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are multiple implementations of the server depending on the environment. The easiest way to set up the server is however to spin the docker image. Instruction and source files can be found here. In the most basic way, starting the server results in just two shell commands:

SIP2 Mock Server

Build Application

mvn clean install

Building Image

sudo docker build -t phase4-scsb-sip-mock-server .

Running Container

sudo docker run --name phase4-sip2scsb-sip-mock-server --restart always -v /data:/recap-vol  vol -p 80129101:8012 9101 -e "ENV= -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/recap-vol/phase4-scsb-mock-nypl-server/heapdump/  -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*" -Dspring.config.location=/recap-vol/config/external-sip-application.properties " --network=scsb -d phase4-sip2-mock-serverphase4-scsb-sip-mock-server

external-sip-application properties

#Database information

spring.datasource.url=jdbc:mysql://localhost:3306/pul?autoReconnect=true&serverTimezone=A merica/New_York&useSSL=false

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.datasource.username=XXXX

spring.datasource.password=XXXXX

spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect

ils.mock.sip.server.url=phase4-scsb-sip-mock-server

ils.mock.sip.server.port=9101

Properties to Update -

UPDATE `recap`.`scsb_properties_t` SET `P_VALUE`='phase4-scsb-sip-mock-server' WHERE `P_KEY`='ils.server' AND `INSTITUTION_CODE`='CUL';

UPDATE `recap`.`scsb_properties_t` SET `P_VALUE`='9101' WHERE `P_KEY`='ils.server.port' AND `INSTITUTION_CODE`='CUL';

UPDATE `recap`.`scsb_properties_t` SET `P_VALUE`=XXXXX WHERE `P_KEY`='ils.server.operator.user.id' AND `INSTITUTION_CODE`='CUL';

UPDATE `recap`.`scsb_properties_t` SET `P_VALUE`=XXXXX WHERE `P_KEY`='ils.server.operator.password' AND `INSTITUTION_CODE`='CUL';

UPDATE `recap`.`scsb_properties_t` SET `P_VALUE`=XXXXXX WHERE `P_KEY`='ils.server.operator.location' AND `INSTITUTION_CODE`='CUL';

 NYPL Mock Server

 sudo docker build -t phase4-scsb-mock-nypl-server .

...