Skip to content

Commit

Permalink
Add base Java image (#17847)
Browse files Browse the repository at this point in the history
* Add base Java image

* Fix typo
  • Loading branch information
jdpgrailsdev authored Oct 11, 2022
1 parent 834ea96 commit ae30773
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
13 changes: 13 additions & 0 deletions airbyte-base-java-image/Dockerfile
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
24 changes: 24 additions & 0 deletions airbyte-base-java-image/README.md
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

0 comments on commit ae30773

Please sign in to comment.