-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
37 additions
and
0 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,13 @@ | ||
FROM amazoncorretto:19 | ||
|
||
ARG DOCKER_BUILD_ARCH=amd64 | ||
|
||
WORKDIR /app | ||
|
||
RUN yum install -y tar | ||
|
||
# Add the DataDaog Java APM agent | ||
ADD https://dtdg.co/latest-java-tracer dd-java-agent.jar | ||
|
||
# Add the OpenTelemetry Java APM agent | ||
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar opentelemetry-javaagent.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Base Docker Image for Java | ||
|
||
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) | ||
distribution of [OpenJDK](https://openjdk.org/). | ||
|
||
# Releasing | ||
|
||
To release a new version of this base image, use the following steps: | ||
|
||
1. Log in to [Dockerhub](https://hub.docker.com/) via the Docker CLI (`docker login`). | ||
2. Run `docker buildx create --use` to enable Docker `buildx` if you have not used it previously. | ||
3. Run the following to build and push a new version of this image (replace `<new_version>` with a new version!) : | ||
``` | ||
docker buildx build --push \ | ||
--tag airbyte/airbyte-base-java-image:<new_version> \ | ||
--platform linux/amd64,linux/arm64 . | ||
``` | ||
To see existing versions, [view the image on Dockerhub](https://hub.docker.com/r/airbyte/airbyte-base-java-image). | ||
4. Update base Docker image tag to the new version in all Dockerfiles that depend on the base image: | ||
```bash | ||
FROM airbyte/java-datadog-tracer-base:<NEW VERSION> | ||
``` | ||
|
||
[dockerhub]: https://hub.docker.com/repository/registry-1.docker.io/airbyte/airbyte-base-java-image/general |