Giter Site home page Giter Site logo

railway_station's Introduction

Railway station

Station is Railways client-side application. It polls central for new tasks and pulls the so called 'train' specified in the task, which is a docker image created by a researcher. Afterwards, a container is started for the train and the task is run by executing either runStation.sh or runMaster.sh, depending on the type of task. The results of the task are sent back to central which will ultimately result in a final result or new tasks being created which will again be polled.

Authentication

Clients use Keycloak to authenticate by means of a client secret. The client-id and client-secret can be defined in the application.yml and should correspond with the entries defined in Keycloak. Ask your central administrator for a new client entry in keycloak.

Building station

Station is a standard Spring-boot application and can be built with mvn clean package. You can also get the latest station version by downloading the artifacts of the latest Gitlab pipeline at https://gitlab.com/medicaldataworks/railway/station/pipelines.

Running station

To run the application, first make sure there is a 'station' docker network. If not, run create-station-network.sh. Copy the target folder (or just the jar and application.yml) to a desired location after building and run java -jar station-{VERSION}.jar. Make sure the client-id and client-secret are configured in the application.yml

Troubleshooting

  • finishConnect(..) failed: Connection refused
    Check the port number in the specified URL. Either Keycloak or Central cannot be reached by station. By default 9080 is configured for Keycloak and 8080 is configured for Central.
  • ProductionTaskService : invalid station name: {STATION_NAME}
    The client-id in the application.yml is unknown in Central. Either the client-id is configured incorrectly in the application.yml, or the station still needs to be configured to Central. Ask your central administrator for a new Station entry in Central.

railway_station's People

Contributors

tim-hendriks avatar

Watchers

Johan van Soest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.