-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_standalone_contentservice.sh
63 lines (53 loc) · 2.2 KB
/
build_standalone_contentservice.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /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 "===\nBuilding solr index...\n"
cd $STARTING_DIR/solr
docker build -t reactome/solr:$RELEASE_VERSION \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
-f index-builder.dockerfile .
echo -e "===\nBuilding relational database...\n"
cd $STARTING_DIR/mysql
docker build -t reactome/reactome-mysql:$RELEASE_VERSION \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
-f mysql.dockerfile .
echo -e "===\nGenerating diagram files...\n"
cd $STARTING_DIR/diagram-generator
docker build -t reactome/diagram-generator:${RELEASE_VERSION} \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
-f diagram-generator.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 content-service image...\n"
cd $STARTING_DIR/stand-alone-content-service
docker build -t reactome/stand-alone-content-service:${RELEASE_VERSION} \
--build-arg NEO4J_USER=$NEO4J_USER \
--build-arg NEO4J_PASSWORD=$NEO4J_PASSWORD \
--build-arg RELEASE_VERSION=$RELEASE_VERSION \
-f content-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-content-service -p 8080:8080 reactome/stand-alone-content-service:${RELEASE_VERSION}'"
set +e