Sign inSign up

bptlab/rembrandt-smile-data

By bptlab

•Updated almost 7 years ago

A collection of mongo databases to be used in Rembrandt in the context of SMile.

Image
0

475

bptlab/rembrandt-smile-data repository overview

⁠Readme

⁠Available Tags

Each available tag refers to one specific data dump. In the following the tags and the data they contain are briefly described. (Sorted from the least prepared to a ready-to-run setup.)

empty: Contains only the resource type Resource (abstract)

base: Packed with all required resource types: Microdepot, Receiver, Deliverer and Tour. The meta type Address is used for Microdepot and Receiver.

deliverer: Same as base but with two resource instances of the type Deliverer

filled: Like deliverer, but also comes with a Microdepot instance, as well as three receivers.

algorithm: Build upon filled, it also has the SMile-Munkres⁠ algorithm and a rule based algorithm predefined. Ready to be used in recipes.

recipe: Additionally to algorithm, it includes two recipe definitions: one for the munkres algorithm and one for the rule based algorithm. Ready to execute!

⁠Usage

The images are supposed to be used in combination with the Rembrandt project⁠.

  1. Download the provided docker-compose file⁠.

  2. Open the file and add the following to the services section in the compose file:

    smile-data:
        image: bptlab/rembrandt-smile-data:[tag]
            links:
                - mongo
    
  3. In the image definition, replace [tag] by your desired data dump (see previous section).

  4. Run docker-compose up.

  5. In the appearing log, you should see entries starting with rembrandt_smile-data_1 in combination with finished restoring [...] and exited with code 0 in the end.

  6. You're all set!

⁠docker-compose example

Your docker-compose.yml should somehow look like this:

version: '3'
services:
    rembrandt:
        image: bptlab/rembrandt:latest
        ports:
            - 3000:3000
        environment:
            - MONGO_HOST=mongo
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - data-exchange:/usr/src/rembrandt/dataExchange
    smile-data:
        image: bptlab/rembrandt-smile-data:recipe
        links:
            - mongo
    mongo:
        image: mongo:latest
volumes:
    data-exchange:

Tag summary

Content type

Image

Digest

Size

37 MB

Last updated

almost 7 years ago

docker pull bptlab/rembrandt-smile-data:recipe