Skip to content

Commit 9ecada3

Browse files
Update docker config (#265)
Moved root level docker-compose and update docker documentation * Updated configuration in docker-compose for EI * Update the travis build for integration tests
1 parent 64bdb5a commit 9ecada3

File tree

8 files changed

+150
-249
lines changed

8 files changed

+150
-249
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ before_install:
1717
# This is only run before integrationTests job
1818
# To ensure docker containers are fully up and running we sleep 20s
1919
before_script:
20-
- source docker-env.bash
20+
- cd src/main/docker/
21+
- source env.bash
2122
- docker-compose up -d
2223
- sleep 60
24+
- cd ../../../
2325

2426

2527
# Generate site documentation using mvn site plugin

docker-compose.yml

Lines changed: 0 additions & 170 deletions
This file was deleted.

docker-env.bash

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/docker/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## A: Build Eiffel Intelligence Docker image based on Eiffel Intelligence from an Artifactory, e.g. Jitpack:
2+
cd (git root dir)
3+
docker build -t eiffel-intelligence-backend:1.0.1 --build-arg URL=https://jitpack.io/com/github/eiffel-community/eiffel-intelligence/1.0.1/eiffel-intelligence-1.0.1.war -f src/main/docker/Dockerfile .
4+
5+
6+
7+
## B: Build Eiffel Intelligence based on local source code changes
8+
1. Build Eiffel-Intelligence service artifact:
9+
cd (git root dir)
10+
mvn package -DskipTests
11+
12+
2. Build Eiffel Intelligence Docker image:
13+
cd (git root dir)/
14+
export EIFFEL_WAR=$(ls target/*.war)
15+
docker build -t eiffel-intelligence-backend --build-arg URL=./${EIFFEL_WAR} -f src/main/docker/Dockerfile .
16+
17+
18+
## Use docker-compose to set up environment for EI testing
19+
20+
The docker-compose file in this directory can be used to set up the proper
21+
environment for running the integration tests on EI backend. It also includes
22+
an Eiffel Intelligence backend pre-configured. It is possible to start up Eiffel
23+
Intelligence backend also in this environment, to try ou local changes. Just
24+
replace the docker image for ei-backend service with your locally built one.
25+
Update image versions or ports in src/main/docker/env.bash.
26+
27+
Standing in the root directory, run the below command to set up environment:
28+
29+
source src/main/docker/env.bash
30+
docker-compose -f src/main/docker/docker-compose.yml up -d
31+

src/main/docker/README.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)