Skip to content

Commit 23ce83a

Browse files
feat: initial commit
0 parents  commit 23ce83a

File tree

15 files changed

+437
-0
lines changed

15 files changed

+437
-0
lines changed

.circleci/config.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
version: 2.1
2+
3+
executors:
4+
gradle_docker:
5+
docker:
6+
- image: cimg/openjdk:11.0
7+
8+
commands:
9+
gradle:
10+
description: 'Run the provided gradle command'
11+
parameters:
12+
args:
13+
type: string
14+
when:
15+
default: "on_success"
16+
type: enum
17+
enum: ["on_fail", "on_success", "always"]
18+
steps:
19+
- run:
20+
name: << parameters.args >>
21+
command: ./gradlew << parameters.args >> --info --max-workers=2 -Dorg.gradle.jvmargs=-Xmx2g -Dorg.gradle.console=plain --continue
22+
when: << parameters.when >>
23+
setup_build_environment:
24+
description: 'Checkout, restore the cache, and setup docker'
25+
steps:
26+
- checkout
27+
- run:
28+
name: Generate cache key
29+
command: find . -type f -name "*.gradle*" -o -name "gradle-wrapper*" -exec shasum {} + | sort > /tmp/checksum.txt && cat /tmp/checksum.txt
30+
- restore_cache:
31+
keys:
32+
- v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
33+
# fallback to using the latest cache if no exact match is found
34+
- v1-dependencies-
35+
- setup_remote_docker
36+
save_populated_cache:
37+
description: "Save the gradle binary to the cache so it doesn't have to redownload"
38+
steps:
39+
- save_cache:
40+
paths:
41+
- ~/.gradle
42+
key: v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
43+
44+
jobs:
45+
build:
46+
executor: gradle_docker
47+
steps:
48+
- setup_build_environment
49+
- gradle:
50+
args: dockerBuildImages
51+
- save_populated_cache
52+
publish:
53+
executor: gradle_docker
54+
steps:
55+
- setup_build_environment
56+
- gradle:
57+
args: :tag -Prelease
58+
- add_ssh_keys:
59+
fingerprints:
60+
- '9f:bb:a7:39:fa:3d:39:04:bd:c6:66:27:79:b1:49:86'
61+
- run: git push origin $(./gradlew -q :printVersion)
62+
- gradle:
63+
args: dockerPushImages
64+
65+
workflows:
66+
version: 2
67+
build-and-publish:
68+
jobs:
69+
- build
70+
# - publish:
71+
# context: hypertrace-publishing
72+
# requires:
73+
# - build
74+
# filters:
75+
# branches:
76+
# only:
77+
# - main

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build
6+
7+
.idea

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Docker JRE Base
2+
3+
Base images for Hypertrace java-based docker images

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins {
2+
id("org.hypertrace.docker-publish-plugin") version "0.3.3" apply false
3+
}

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
org.gradle.parallel=true
2+
org.gradle.daemon=true
3+
org.gradle.caching=true
4+
org.gradle.configureondemand=true
5+

gradle/wrapper/gradle-wrapper.jar

57.5 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)