Skip to content

Commit 904eae7

Browse files
author
Martin Schwamberger
committed
Copy directory into container
1 parent 938ab40 commit 904eae7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ addons:
1313

1414
before_install:
1515
- export TRAVIS_TAG=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
16-
- echo $TRAVIS_TAG
1716
- docker build -t android-dispatch .
18-
- docker run -it -d --user build --name dispatch-container -v `pwd`:/home/build/app -e TRAVIS_TAG=$TRAVIS_TAG android-dispatch bash
17+
- docker run -it -d --user build --name dispatch-container -e TRAVIS_TAG=$TRAVIS_TAG android-dispatch bash
1918

2019
script:
21-
- docker exec --user build dispatch-container sh ls -al /home/build/app
22-
- docker exec --user build dispatch-container sh whoami
2320
- docker exec --user build dispatch-container sh /home/build/app/dispatch.sh
2421
- docker exec --user build dispatch-container sh /home/build/app/package.sh
2522

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ RUN useradd build -m -u 112
6767
USER build
6868

6969
RUN mkdir -p /home/build/.m2 && mkdir -p /home/build/app
70-
WORKDIR /home/build/app
70+
COPY . /home/build/app/
71+
72+
WORKDIR /home/build/app/

0 commit comments

Comments
 (0)