forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Java-Python base image for builder server (#7419)
- Loading branch information
Joe Reuter
committed
Jun 28, 2023
1 parent
171a377
commit b125210
Showing
5 changed files
with
39 additions
and
14 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
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 airbyte/airbyte-base-java-image:2.0.3 | ||
|
||
RUN yum update -y && \ | ||
yum groupinstall -y "Development Tools" && \ | ||
yum install -y openssl11-devel bzip2-devel libffi-devel zlib-devel sqlite-devel xz-devel | ||
|
||
ENV PYTHON_VERSION=3.9.11 | ||
|
||
# Set up python | ||
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv | ||
ENV PYENV_ROOT /root/.pyenv | ||
ENV PATH ${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:$PATH | ||
RUN pyenv install ${PYTHON_VERSION} && pyenv global ${PYTHON_VERSION} |
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,23 @@ | ||
# Base Docker Image for Java + Python | ||
|
||
This Docker image provides the base for any Java-based Airbyte module that also needs to run python code. It is based on the [airbyte/airbyte-base-java-image](../airbyte-base-java-image/) image. | ||
|
||
# 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-python-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-python-image). | ||
4. Update base Docker image tag to the new version in all Dockerfiles that depend on the base image: | ||
```bash | ||
FROM airbyte/airbyte-base-java-python-image:<NEW VERSION> | ||
``` | ||
|
||
[dockerhub]: https://hub.docker.com/repository/docker/airbyte/airbyte-base-java-python-image/general |
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