Commit b47e2544 authored by Unai's avatar Unai 🇵🇲

Added script that automatizes DC deployment, stub generation

parent 90a9f434
[submodule "app/dataclay"]
path = model
url = https://gitlab.bsc.es/elastic-h2020/elastic-sa/nfr-tool/dataclay
version: '3.4'
services:
logicmodule:
image: "bscdataclay/logicmodule:2.5.jdk8-slim"
ports:
- "11034:11034"
environment:
- LOGICMODULE_PORT_TCP=11034
- LOGICMODULE_HOST=logicmodule
- DATACLAY_ADMIN_USER=admin
- DATACLAY_ADMIN_PASSWORD=admin
- DEBUG=true
- EXPOSED_IP_FOR_CLIENT=localhost
stop_grace_period: 5m
healthcheck:
interval: 5s
retries: 10
test: ["CMD-SHELL", "/home/dataclayusr/dataclay/health/health_check.sh"]
dsjava:
image: "bscdataclay/dsjava:2.5.jdk8-slim"
ports:
- "2127:2127"
depends_on:
- logicmodule
environment:
- DATASERVICE_NAME=DS1
- DATASERVICE_JAVA_PORT_TCP=2127
- LOGICMODULE_PORT_TCP=11034
- LOGICMODULE_HOST=logicmodule
- DEBUG=true
- EXPOSED_IP_FOR_CLIENT=localhost
stop_grace_period: 5m
healthcheck:
interval: 5s
retries: 10
test: ["CMD-SHELL", "/home/dataclayusr/dataclay/health/health_check.sh"]
#!/bin/bash
set -e
docker-compose -f model/dataclay/docker-compose.yml kill && \
docker-compose -f model/dataclay/docker-compose.yml down -v && \
docker-compose -f model/dataclay/docker-compose.yml up -d
rm -rf ./app/stubs
docker run -it --rm --network dataclay_default -v $PWD/model/cfgfiles:/home/dataclayusr/dataclay/cfgfiles bscdataclay/client:2.5.dev NewAccount ElasticUser ElasticPass
docker run -it --rm --network dataclay_default -v $PWD/model/cfgfiles:/home/dataclayusr/dataclay/cfgfiles bscdataclay/client:2.5.dev NewDataContract ElasticUser ElasticPass ElasticDS ElasticUser
docker run -it --rm --network dataclay_default -v $PWD/model/cfgfiles:/home/dataclayusr/dataclay/cfgfiles -v $PWD/model/model/target/classes:/classes bscdataclay/client:2.5.dev NewModel ElasticUser ElasticPass ElasticNS /classes java
docker run -it --rm --network dataclay_default -v $PWD/model/cfgfiles:/home/dataclayusr/dataclay/cfgfiles -v $PWD/app/stubs:/stubs bscdataclay/client:2.5.dev GetStubs ElasticUser ElasticPass ElasticNS /stubs
cd ./app/stubs && \
jar cf stubs.jar es/bsc/compss/nfr/model && \
mvn install:install-file -Dfile=stubs.jar -DgroupId=es.bsc.compss -DartifactId=nfrtool-dataclay-stubs -Dversion=2.0 -Dpackaging=jar -DcreateChecksum=true && \
cd -
Subproject commit fcdaaf3068bb48e0a06215138f9b08b4e2637e7c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment