This project contains scripts to fetch and run the executable artifacts for csw-services and ocs-gateway. All of these scripts are to be run from the base directory of the project.
Scripts to be used directly by the user
- csw-bootstrap.sh
- esw-bootstrap.sh
- csw-services.sh
Bootstrap scripts are used to fetch the executable artifacts for csw project and esw-prototype project.
Script expects a specific version of the project to generate and fetch respective executables using Jitpack.
Generating executable against a sha of git commit. Used to get the changes already checked-into git.
./scripts/csw-bootstrap.sh 235aa5852
Generating executable against a project version. Used to get the changes published locally.
./scripts/csw-bootstrap.sh 0.1-SNAPSHOT
Similarly, we can get artifacts for esw-prototype
./scripts/esw-bootstrap.sh cfa9197e68
./scripts/esw-bootstrap.sh 0.1.0-SNAPSHOT
After running the csw-bootstrap.sh script, we can run the csw services by using the generated artifacts.
Generating executable against a sha of git commit. Used to get the changes already checked-into git.
Assuming the version used to generate the artifacts is 235aa5852
and we are running the services for the first time.
./target/csw/235aa5852/bin/csw-services.sh start -i en0 --initRepo
Once initializing repo for config service is complete, we can simply use.
./target/csw/235aa5852/bin/csw-services.sh start -i en0
Stopping the services
./target/csw/235aa5852/bin/csw-services.sh stop
After running the esw-bootstrap.sh script, we can run the esw gateway by using the generated artifact.
Assuming version used with esw-bootstrap.sh is cfa9197e68
./target/esw/cfa9197e68/bin/ocs-gateway
Default port for gateway is 9090 you can override it e.g.
./target/esw/cfa9197e68/bin/ocs-gateway 9000
After running the esw-bootstrap.sh script, we can run the esw gateway by using the generated artifact.
Assuming version used with esw-bootstrap.sh is cfa9197e68
./target/esw/cfa9197e68/bin/ocs-client