-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
childish-sambino
authored
Jun 3, 2020
1 parent
b50129f
commit 217e6ed
Showing
12 changed files
with
272 additions
and
742 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ examples/Example.java | |
.vscode | ||
sendgrid-java.jar | ||
dependency-reduced-pom.xml | ||
prism* |
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,21 @@ | ||
ARG version=latest | ||
FROM openjdk:$version | ||
|
||
# version <= 11 | ||
RUN apt-get update \ | ||
&& apt-get install -y make maven || true | ||
COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt | ||
RUN update-ca-certificates || true | ||
|
||
# version > 11 | ||
RUN yum update -y \ | ||
&& yum install -y make wget || true | ||
RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \ | ||
&& yum install -y maven || true | ||
RUN keytool -import -trustcacerts -cacerts -storepass changeit -noprompt \ | ||
-alias api.sendgrid.com -file /usr/local/share/ca-certificates/cert.crt || true | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN make install |
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,17 +1,20 @@ | ||
.PHONY: install test test-integration clean | ||
.PHONY: install test test-integ test-docker clean | ||
|
||
VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]') | ||
install: | ||
@java -version || (echo "Java is not installed, please install Java >= 7"; exit 1); | ||
mvn clean install -DskipTests=true -Dgpg.skip -B | ||
mvn clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B | ||
cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar | ||
|
||
test: | ||
mvn test | ||
|
||
test-integration: | ||
./scripts/startPrism.sh & | ||
sleep 5 | ||
test-integ: test | ||
|
||
version ?= latest | ||
test-docker: | ||
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/prism/prism.sh -o prism.sh | ||
version=$(version) bash ./prism.sh | ||
|
||
clean: | ||
mvn clean |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.