Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit ae30773

Browse files
authored
Add base Java image (airbytehq#17847)
* Add base Java image * Fix typo
1 parent 834ea96 commit ae30773

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

airbyte-base-java-image/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM amazoncorretto:19
2+
3+
ARG DOCKER_BUILD_ARCH=amd64
4+
5+
WORKDIR /app
6+
7+
RUN yum install -y tar
8+
9+
# Add the DataDaog Java APM agent
10+
ADD https://dtdg.co/latest-java-tracer dd-java-agent.jar
11+
12+
# Add the OpenTelemetry Java APM agent
13+
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar opentelemetry-javaagent.jar

airbyte-base-java-image/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Base Docker Image for Java
2+
3+
This Docker image provides the base for any Java-based Airbyte module. It is currently based on the [Amazon Corretto](https://aws.amazon.com/corretto/?filtered-posts.sort-by=item.additionalFields.createdDate&filtered-posts.sort-order=desc)
4+
distribution of [OpenJDK](https://openjdk.org/).
5+
6+
# Releasing
7+
8+
To release a new version of this base image, use the following steps:
9+
10+
1. Log in to [Dockerhub](https://hub.docker.com/) via the Docker CLI (`docker login`).
11+
2. Run `docker buildx create --use` to enable Docker `buildx` if you have not used it previously.
12+
3. Run the following to build and push a new version of this image (replace `<new_version>` with a new version!) :
13+
```
14+
docker buildx build --push \
15+
--tag airbyte/airbyte-base-java-image:<new_version> \
16+
--platform linux/amd64,linux/arm64 .
17+
```
18+
To see existing versions, [view the image on Dockerhub](https://hub.docker.com/r/airbyte/airbyte-base-java-image).
19+
4. Update base Docker image tag to the new version in all Dockerfiles that depend on the base image:
20+
```bash
21+
FROM airbyte/java-datadog-tracer-base:<NEW VERSION>
22+
```
23+
24+
[dockerhub]: https://hub.docker.com/repository/registry-1.docker.io/airbyte/airbyte-base-java-image/general

0 commit comments

Comments
 (0)