Environments
The Shared Collection Service Bus (SCSB) is a middleware application deployed in AWS. Environment details are listed below:
Service | Consumer | Link | Comments |
---|---|---|---|
SCSB UI (Dev) | All | http://192.168.55.198:9091 | SCSB's Graphical User Interface (GUI). Primarily used by the development team for initial deployment and unit testing purposes. |
SCSB Swagger (Dev) | All | http://192.168.55.198:9093/swagger-ui.html | SCSB's REST APIs are exposed through this port. Swagger documentation provides information on API parameters and lets users try the services. Primarily used by the development team for initial deployment and unit testing purposes. |
SCSB UI (Test) | All | https://tst-recap.htcinc.com | SCSB's Graphical User Interface (GUI). Primarily used by the quality and functional teams for system and functional testing. |
SCSB Swagger (Test) | All | https://tst-recap.htcinc.com:9093/swagger-ui.html | SCSB's REST APIs are exposed through this port. Swagger documentation provides information on API parameters and lets users try the services. Primarily used by the quality and functional teams for system and functional testing. |
SCSB UI (UAT) | All | http://uat-recap.htcinc.com:9091 | SCSB's Graphical User Interface (GUI). Primarily used by partners to complete User Acceptance Testing |
SCSB Swagger (UAT) | All | http://uat-recap.htcinc.com:9093/swagger-ui.html | SCSB's REST APIs are exposed through this port. Swagger documentation provides information on API parameters and lets users try the services. Primarily used by partners to complete User Acceptance Testing |
Development Environment
The first thing a developer will need to do is to setup the development environment. It is common for developers to be working in different environments (Windows, Linux, Mac OS etc..) especially on open source projects and distributed teams. In order to set up a development environment which typically would involve installing softwares like Java, MySQL, tomcat, PHP etc, it can take up anywhere from hours to days depending on what all is required.
To minimize the effort and to ensure every developer is working with the same software versions (i.e development environment), we are going to use Docker Containers to install the "ReCAP Dev Environment".
Docker
Installation
In order to install Docker, please visit https://docs.docker.com and follow the instructions for your Operating System (Mac, Linux, Windows etc..)
Getting Started
Fork ReCAP SCSB Repository
You need to have a github account before you can do this. The main repo is at https://github.com/ResearchCollectionsAndPreservation/docker.
Once forked, clone the repository onto your local machine by following the steps below;
- Create a directory in your file system: mkdir recap-middleware
- git clone https://github.com/**username**/docker.git
Once the repository has been downloaded, change into the directory. You will see a folder called docker.
- cd docker
- cd dockerfile
- Run the following command to check if any existing containers are runnning and if so, stop and remove them
- docker ps -a
- docker ps -aq | xargs docker rm -f
- Deleting images
- docker rmi -f $(docker images -q)
- Building Dev Container Image from the Dockerfile
- docker build -t scsb-dev . - Here scsb-dev is the image name; you can name it whatever you like. The . indicates the current directory where the Dockerfile.
- Building ETL Container image
- docker build -t scsb-etl .
- Running the Dev Container
- docker run -i -t scsb-dev /bin/bash
- Running the ETL Container
- docker run -i -t scsb-etl /bin/bash