forked from camunda-community-hub/zeebe-simple-monitor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged with latest 19.0 snapshot changes
- Loading branch information
Showing
162 changed files
with
508 additions
and
988 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,60 @@ | ||
metadata: | ||
labels: | ||
agent: zeebe-ci-build | ||
spec: | ||
nodeSelector: | ||
cloud.google.com/gke-nodepool: agents-n1-standard-32-netssd-preempt | ||
tolerations: | ||
- key: "agents-n1-standard-32-netssd-preempt" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
volumes: | ||
- name: shared-data | ||
emptyDir: {} | ||
containers: | ||
- name: maven | ||
image: maven:3.6.0-jdk-11 | ||
command: ["cat"] | ||
tty: true | ||
env: | ||
- name: LIMITS_CPU | ||
valueFrom: | ||
resourceFieldRef: | ||
resource: limits.cpu | ||
- name: JAVA_TOOL_OPTIONS | ||
value: | | ||
-XX:+UseContainerSupport | ||
- name: DOCKER_HOST | ||
value: tcp://localhost:2375 | ||
- name: ZEEBE_CI_SHARED_DATA | ||
value: /home/shared | ||
resources: | ||
limits: | ||
cpu: 2 | ||
memory: 4Gi | ||
requests: | ||
cpu: 2 | ||
memory: 4Gi | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- name: shared-data | ||
mountPath: /home/shared | ||
mountPropagation: Bidirectional | ||
- name: docker | ||
image: docker:18.09.4-dind | ||
args: ["--storage-driver=overlay2"] | ||
securityContext: | ||
privileged: true | ||
tty: true | ||
resources: | ||
limits: | ||
cpu: 2 | ||
memory: 4Gi | ||
requests: | ||
cpu: 2 | ||
memory: 4Gi | ||
volumeMounts: | ||
- name: shared-data | ||
mountPath: /home/shared | ||
mountPropagation: Bidirectional |
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,4 @@ | ||
#!/bin/sh -eux | ||
|
||
apt-get -qq update | ||
apt-get install --no-install-recommends -qq -y jq libatomic1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 +1,20 @@ | ||
#!/bin/bash -xeu | ||
|
||
cd target | ||
|
||
export PROJECT_NAME="Zeebe Simple Monitor" | ||
export GITHUB_TOKEN=${GITHUB_TOKEN_PSW} | ||
export GITHUB_ORG=zeebe-io | ||
export GITHUB_REPO=zeebe-simple-monitor | ||
|
||
# do github release | ||
curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar xjvf - --strip 3 | ||
./github-release release --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --draft --name "Zeebe Simple Monitor ${RELEASE_VERSION}" --description "" | ||
|
||
# upload app | ||
cd app/target | ||
|
||
export ARTIFACT=zeebe-simple-monitor-app-${RELEASE_VERSION}.jar | ||
export ARTIFACT=zeebe-simple-monitor-${RELEASE_VERSION}.jar | ||
export CHECKSUM=${ARTIFACT}.sha1sum | ||
|
||
# create checksum files | ||
sha1sum ${ARTIFACT} > ${CHECKSUM} | ||
|
||
../../github-release upload --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --name "${ARTIFACT}" --file "${ARTIFACT}" | ||
../../github-release upload --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --name "${CHECKSUM}" --file "${CHECKSUM}" | ||
# do github release | ||
curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar xjvf - --strip 3 | ||
|
||
./github-release release --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --draft --name "${PROJECT_NAME} ${RELEASE_VERSION}" --description "" | ||
./github-release upload --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --name "${ARTIFACT}" --file "${ARTIFACT}" | ||
./github-release upload --user ${GITHUB_ORG} --repo ${GITHUB_REPO} --tag ${RELEASE_VERSION} --name "${CHECKSUM}" --file "${CHECKSUM}" |
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 @@ | ||
.idea | ||
target/* | ||
!target/*.jar | ||
.classpath | ||
.checkstyle | ||
.project | ||
|
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,10 @@ | ||
FROM maven:3.6.3-jdk-11 AS BUILD_IMAGE | ||
COPY src usr/local/src | ||
COPY pom.xml usr/local | ||
RUN mvn -f usr/local/pom.xml clean package | ||
|
||
FROM openjdk:11-jre | ||
EXPOSE 8082 | ||
ARG JAR=usr/local/target/zeebe-simple-monitor-*-SNAPSHOT.jar | ||
COPY --from=BUILD_IMAGE ${JAR} /usr/local/zeebe-simple-monitor.jar | ||
ENTRYPOINT ["java", "-jar", "/usr/local/zeebe-simple-monitor.jar"] |
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
Oops, something went wrong.