F1 (Java) Story 3: Set Up Docker Image Build Infrastructure for CSPs
Description
Establish Dockerfile and necessary build scripts that take into account CSP specifics to allow for local and pipeline creation of Docker images of the application. As part of this, implement a Dockerfile for AWS. Additionally, structure the repository to facilitate easy inclusion of other CSP Dockerfiles in the future. Consider Dockerfile build scripts from other OSDU core services (like Storage) as references.
Acceptance Criteria
- Dockerfile and necessary build scripts are created.
- Dockerfile specific to AWS is implemented.
- The repository is structured in a way that future addition of Dockerfiles for other CSPs is straightforward.
- Instructions for building Docker images are added to the README file.
- It's possible to build a Docker image of the application both locally and in a pipeline environment.
Testing Scenarios
- Validate the successful creation of Dockerfile for AWS and test the Docker image build locally and in a pipeline.
- Verify that the repository is appropriately structured to support multiple CSP Dockerfiles.
- Ensure the accuracy of the Docker image building instructions in the README file.
Technical Notes
- Refer to Docker documentation and Dockerfile build scripts from other OSDU core services (like Storage) for best practices in creating a Dockerfile and build scripts.
- To reduce boilerplate, utilize the "os-core-common" for common code and "os-core-lib-aws" for AWS CSP specific code in alignment with other OSDU core services.