Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
/ beacon-demo Public archive

Docker-based demo of the beacon for local deployment/test

Notifications You must be signed in to change notification settings

ga4gh-beacon/beacon-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beacon demo

This repository helps you setup a beacon demo in a docker container.

For convenience, we created a Makefile, that contains all the necessary commands.

Step 1: Get the source files

Clone this repository to your machine

git clone https://github.com/ga4gh-beacon/beacon-demo
# and go inside
cd beacon-demo

Step 2: Compile the java code

This step is done on your machine, it is simpler than in a docker container.

Clone the repository (version 1.0.1):

git clone https://github.com/ga4gh-beacon/beacon-elixir.git code
cd code
git checkout v1.0.1

Do update the CORS setting in elixir_beacon/src/main/resources/META-INF/corsFilter.properties with:

allowed.origins=*

Follow the instructions from the reference implementation

Step 3: Prepare the docker image

We use a Postgres database, running in a docker container. We add the jar file created with step 1, and load some data.

Copy the java target, the data to load and the database definitions to /beacon

cd [back-to-this-repository]
mkdir beacon
cp code/elixir_beacon/target/elixir-beacon-1.0.1-SNAPSHOT.jar beacon/beacon.jar
cp code/elixir_beacon/src/main/resources/application-dev.properties beacon/.
cp -r code/elixir_beacon/src/main/resources/META-INF/1000_genomes_data beacon/data

Do update the API endpoint from v1 to v1.0.1 in the beacon/application-dev.properties properties file.

The docker image is named elixir/beacon and is created with:

make build

Step 4: Instanciate a docker container from the image

Once the image is build, run:

make up

If you want to follow what is happening:

make log

You can then contact the beacon with:

curl http://localhost:9075/elixirbeacon/v1.0.1/beacon/

Or open a web browser at the above URL

Here are a few other examples of queries:

Step 5: Tear down everything

make down

Note

For the moment, it's all in one docker container.

We plan on separating the database from the beacon controller in a future release.

About

Docker-based demo of the beacon for local deployment/test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published