Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 5f8f6c8

Browse files
authored
Merge pull request #31 from microservices-demo/cp-command-issue
cp command was causing issues on mac
2 parents 6a6490b + 20bee39 commit 5f8f6c8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,6 @@ weave-ecs-demo-key.pem
114114

115115
# Ignore Vagrant cache files
116116
*.vagrant/
117+
118+
# Ignore jar files
119+
orders.jar

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
script:
1313
- set -e
14-
- ./scripts/build.sh;
14+
- sudo ./scripts/build.sh;
1515
- travis_wait ./test/test.sh unit.py
1616
- ./test/test.sh component.py
1717
- docker build -t weaveworksdemos/json-server ./test/json-server/

scripts/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ else
2323
fi
2424
CODE_DIR=$(cd $SCRIPT_DIR/..; pwd)
2525
echo $CODE_DIR
26-
$DOCKER_CMD run -u 1000 --rm -v $HOME/.m2:/root/.m2 -v $CODE_DIR:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -DskipTests package
26+
$DOCKER_CMD run --rm -v $HOME/.m2:/root/.m2 -v $CODE_DIR:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -DskipTests package
2727

28-
cp $CODE_DIR/docker $CODE_DIR/target/docker/ -rf
29-
cp $CODE_DIR/target/*.jar $CODE_DIR/target/docker/${IMAGE} -rf
28+
cp -r $CODE_DIR/docker $CODE_DIR/target/docker/
29+
cp -r $CODE_DIR/target/*.jar $CODE_DIR/target/docker/${IMAGE}
3030

3131
REPO=${GROUP}/${IMAGE}
3232
$DOCKER_CMD build -t ${REPO}:${COMMIT} $CODE_DIR/target/docker/${IMAGE};

0 commit comments

Comments
 (0)