-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #933 from support-project/develop
Release v1.11.0
- Loading branch information
Showing
673 changed files
with
27,168 additions
and
2,862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.dockerignore | ||
Dockerfile | ||
docker-compose.yml | ||
|
||
.git/ | ||
.gitignore/ | ||
|
||
target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ target | |
.eclipse-pmd | ||
.checkstyle | ||
node | ||
.idea | ||
.m2 | ||
knowledge.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
language: java | ||
jdk: oraclejdk8 | ||
|
||
install: mvn install -DskipTests=true | ||
script: mvn test site | ||
|
||
install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.exec.skip=true -B -V | ||
script: mvn clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
FROM node:8.6-alpine | ||
|
||
# Default to UTF-8 file.encoding | ||
ENV LANG C.UTF-8 | ||
|
||
# install git | ||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh | ||
|
||
# install jdk | ||
RUN { \ | ||
echo '#!/bin/sh'; \ | ||
echo 'set -e'; \ | ||
echo; \ | ||
echo 'dirname "$(dirname "$(readlink -f "$(which javac || which java)")")"'; \ | ||
} > /usr/local/bin/docker-java-home \ | ||
&& chmod +x /usr/local/bin/docker-java-home | ||
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk | ||
ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin | ||
|
||
ENV JAVA_VERSION 8u131 | ||
ENV JAVA_ALPINE_VERSION 8.131.11-r2 | ||
|
||
RUN set -x \ | ||
&& apk add --no-cache \ | ||
openjdk8="$JAVA_ALPINE_VERSION" \ | ||
&& [ "$JAVA_HOME" = "$(docker-java-home)" ] | ||
|
||
# install maven | ||
RUN apk add --no-cache curl tar bash | ||
|
||
ARG MAVEN_VERSION=3.5.0 | ||
ARG USER_HOME_DIR="/root" | ||
ARG SHA=beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034 | ||
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries | ||
|
||
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | ||
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ | ||
&& echo "${SHA} /tmp/apache-maven.tar.gz" | sha256sum -c - \ | ||
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \ | ||
&& rm -f /tmp/apache-maven.tar.gz \ | ||
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn | ||
|
||
ENV MAVEN_HOME /usr/share/maven | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
COPY settings-docker.xml /usr/share/maven/ref/ | ||
|
||
VOLUME "$USER_HOME_DIR/.m2" | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] | ||
|
||
# RUN knowledge tool install | ||
RUN npm install -g bower | ||
RUN npm install -g gulp | ||
|
||
COPY package.json /usr/src/mymaven/ | ||
COPY bower.json /usr/src/mymaven/ | ||
COPY .bowerrc /usr/src/mymaven/ | ||
|
||
WORKDIR /usr/src/mymaven | ||
|
||
RUN npm install | ||
RUN bower install --allow-root | ||
|
||
|
||
#### RUN on docker-compose | ||
# docker-compose build dev | ||
# docker-compose run --rm dev mvn clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '2.1' | ||
|
||
services: | ||
dev: | ||
image: knowledge-maven | ||
build: | ||
context: . | ||
args: | ||
- https_proxy | ||
- http_proxy | ||
links: | ||
- mailcatcher | ||
environment: | ||
KNOWLEDGE_TEST_MAIL: 'false' | ||
volumes: | ||
- $PWD:/usr/src/mymaven | ||
- $PWD/.m2:/root/.m2 | ||
|
||
mailcatcher: | ||
image: "zolweb/docker-mailcatcher" | ||
ports: | ||
- "1025:1025" | ||
- "1080:1080" | ||
expose: | ||
- "1080" |
Binary file not shown.
Oops, something went wrong.