<@U04S8PLJWMT> how to build airbyte-server docker ...
# ask-ai
h
@kapa.ai how to build airbyte-server docker image locally?
k
To build the Airbyte server Docker image locally, follow these steps: 1. Fork and Clone the Repository Fork the [
airbyte-platform
](https://github.com/airbytehq/airbyte-platform) repository and clone it to your workstation:
Copy code
bash    git clone [email protected]:{YOUR_USERNAME}/airbyte-platform.git    cd airbyte-platform
2. Check abctl Status Ensure that
abctl
is running correctly:
Copy code
bash    abctl local status
Verify the status check is successful. 3. Build with Gradle In your local
airbyte-platform
repository, run:
Copy code
bash    ./gradlew build
This command will build all the code and run all the unit tests, creating the necessary Docker images, including
airbyte/server:dev
. > Note: This process can take some time as it builds all components. 4. Find the Built Image After the build completes, you should find the
airbyte/server:dev
Docker image in your local Docker host. 5. (Optional) Load the Image into abctl Kind Cluster If you want to use the image with your local abctl-managed Airbyte instance:
Copy code
bash    kind load docker-image airbyte/server:dev --name airbyte-abctl
You can now use the locally built
airbyte/server:dev
Docker image for development or testing purposes. For more details, see the official documentation: [Developing Locally - Platform Contributions](https://docs.airbyte.com/platform/next/contributing-to-airbyte/developing-locally#platform-contributions).
h
@kapa.ai what is the java runtime version needed to build?
k
A message from kapa.ai
The required Java runtime version to build Airbyte locally is Java 21. This is explicitly mentioned in the prerequisites for local development in the official documentation across multiple versions, including the latest ("Next") version [Developing Locally - Prerequisites](https://docs.airbyte.com/platform/next/contributing-to-airbyte/developing-locally#prerequisites).
h
@kapa.ai i build failed
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':oss:airbyte-workload-api-server:test'.
> There were failing tests. See the report at: file:///Users/hungle/Documents/airbyte-platform/airbyte-workload-api-server/build/reports/tests/test/index.html
k
A message from kapa.ai
Your build failed because there were failing tests in the
:oss:airbyte-workload-api-server
module. The error message suggests you should review the detailed test report at the following location on your machine:
Copy code
file:///Users/hungle/Documents/airbyte-platform/airbyte-workload-api-server/build/reports/tests/test/index.html
Open this file in your browser to see which tests failed and the specific reasons for the failures. This will help you identify and address the underlying issues in your build. If you only want to build the code and skip running tests (for development purposes), you can use the
-x test
flag with Gradle:
Copy code
bash ./gradlew build -x test
However, for contributing to Airbyte or merging changes, passing all tests is required [Developing Locally - Platform Contributions](https://docs.airbyte.com/platform/next/contributing-to-airbyte/developing-locally#platform-contributions).