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

Commit 28081de

Browse files
Merge pull request #2 from microservices-demo/test-build
test build
2 parents d480625 + 5355267 commit 28081de

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
language: java
21
sudo: required
32
services:
43
- docker
5-
jdk:
6-
- oraclejdk8
74
install: true
85

96
env:
107
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=msd-java;
118

129
script:
1310
- set -e
14-
- travis_wait ./scripts/build.sh;
11+
- ./scripts/build.sh;
1512

1613
after_success:
1714
- set -e;

Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ RUN addgroup -g ${SERVICE_GID} ${SERVICE_GROUP} && \
1313
ln -s /usr/lib/jvm/java-1.8-openjdk/lib/amd64/jli/libjli.so /lib/libjli.so && \
1414
setcap 'cap_net_bind_service=+ep' $(readlink -f $(which java))
1515

16-
COPY java.sh /usr/local/bin/java.sh
16+
COPY java.sh /usr/local/bin/java.sh
17+
18+
ARG BUILD_DATE
19+
ARG BUILD_VERSION
20+
ARG COMMIT

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# msd-java
2-
A base image for all the Java based services
2+
A base image for all the Java based services.

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ $DOCKER_CMD build \
2929
--build-arg BUILD_VERSION=$BUILD_VERSION \
3030
--build-arg BUILD_DATE=$BUILD_DATE \
3131
--build-arg COMMIT=$COMMIT \
32-
-t ${DOCKER_REPO}:${COMMIT} $CODE_DIR/Dockerfile;
32+
-t ${DOCKER_REPO}:${COMMIT} $CODE_DIR;

0 commit comments

Comments
 (0)