-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_standalone_analysisservice.sh
49 lines (41 loc) · 1.73 KB
/
build_standalone_analysisservice.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash
RELEASE_VERSION=Release77
NEO4J_USER=neo4j
NEO4J_PASSWORD=neo4j-password
STARTING_DIR=$(pwd)
set -e
echo -e "===\nBuilding graph database...\n"
cd $STARTING_DIR/neo4j
docker build -t reactome/graphdb:$RELEASE_VERSION \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
--build-arg GRAPHDB_LOCATION=./reactome.graphdb.tgz \
-f ./neo4j_stand-alone.dockerfile .
echo -e "===\nCreating the Analyis file...\n"
cd $STARTING_DIR/analysis-core
docker build -t reactome/analysis-core:${RELEASE_VERSION} \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
-f analysis-core.dockerfile .
echo -e "===\nGenerating Fireworks files...\n"
cd $STARTING_DIR/fireworks-generator
docker build -t reactome/fireworks-generator:$RELEASE_VERSION \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
-f fireworks-generator.dockerfile .
echo -e "===\nBuilding analysis-service image...\n"
cd $STARTING_DIR/stand-alone-analysis-service
docker build -t reactome/stand-alone-analysis-service:${RELEASE_VERSION} \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
-f analysis-service.dockerfile .
cd $STARTING_DIR/
echo -e "===\nImages built: "
# We are building 4 "reactome" images, so lets display them
docker images | grep "reactome" | head -n 4
echo -e "Now you can run the stand-alone content-service like this:\n'docker run --name reactome-analysis-service -p 8080:8080 reactome/stand-alone-analysis-service:${RELEASE_VERSION}'"
set +e