Skip to content

[WIP] Fix Docker image build by installing prerequisites - #11

Merged
makr-code merged 2 commits into
mainfrom
copilot/fix-dockerfile-prerequisites
Nov 10, 2025
Merged

makr-code merged 2 commits into
mainfrom
copilot/fix-dockerfile-prerequisites

Conversation

Copilot AI commented Nov 10, 2025 •

Copy link
Copy Markdown
Contributor

Fix Docker build prerequisites and vcpkg configuration

This PR addresses the CI failure in workflow docker-qnap that failed during vcpkg configuration/build of boost-headers.

Failing job reference:

Changes implemented:

  • Update Dockerfile to add missing OS-level prerequisites for vcpkg (tar, wget, zlib1g-dev, libssl-dev, libicu-dev)
  • Update .github/workflows/docker-qnap.yml to add VCPKG_KEEP_BUILDTREES=1 and VCPKG_LOG_LEVEL=debug to build-args
  • Remove unsupported 'progress: plain' input from docker/build-push-action in workflow file
  • Verify all changes meet requirements
Original prompt

CI failure summary
The Docker image build in workflow docker-qnap failed during vcpkg when configuring/building boost-headers (boost 1.89.0). Ninja returned error code 1 while configuring (see job: https://github.com/makr-code/ThemisDB/actions/runs/19239820796/job/54999401627, ref e604851). CMake aborted with "vcpkg install failed".

Changes required

  1. Dockerfile: install OS-level prerequisites that vcpkg needs to build ports (ninja, build-essential, cmake, git, python3, curl, unzip, tar, wget, pkg-config, ca-certificates, zlib1g-dev, libssl-dev, libicu-dev). Add a single RUN apt-get install step before cmake/vcpkg runs. If the Dockerfile uses a non-debian base, adapt package manager accordingly.

Patch to add (insert near top of Dockerfile before building):

RUN apt-get update && apt-get install -y --no-install-recommends
build-essential
ninja-build
cmake
git
python3
curl
unzip
tar
wget
pkg-config
ca-certificates
zlib1g-dev
libssl-dev
libicu-dev
&& rm -rf /var/lib/apt/lists/*

  1. .github/workflows/docker-qnap.yml: update build-args to add VCPKG_KEEP_BUILDTREES=1 and VCPKG_LOG_LEVEL=debug to preserve logs; remove the unsupported 'progress: plain' input from docker/build-push-action.

Replace build-args with:

build-args: |
VCPKG_TRIPLET=${{ matrix.triplet }}
VCPKG_COMMIT=beea85fdd8bf6b716acdac191cde9bfc7c72b73b
VCPKG_KEEP_BUILDTREES=1
VCPKG_LOG_LEVEL=debug

And remove the 'progress: plain' line.

  1. PR description should reference the failing job ref e604851 and the run URL.

Acceptance criteria

Do not modify unrelated files. Do not set an assignee.

This pull request was created as a result of the following prompt from Copilot chat.

CI failure summary
The Docker image build in workflow docker-qnap failed during vcpkg when configuring/building boost-headers (boost 1.89.0). Ninja returned error code 1 while configuring (see job: https://github.com/makr-code/ThemisDB/actions/runs/19239820796/job/54999401627, ref e604851). CMake aborted with "vcpkg install failed".

Changes required

  1. Dockerfile: install OS-level prerequisites that vcpkg needs to build ports (ninja, build-essential, cmake, git, python3, curl, unzip, tar, wget, pkg-config, ca-certificates, zlib1g-dev, libssl-dev, libicu-dev). Add a single RUN apt-get install step before cmake/vcpkg runs. If the Dockerfile uses a non-debian base, adapt package manager accordingly.

Patch to add (insert near top of Dockerfile before building):

RUN apt-get update && apt-get install -y --no-install-recommends
build-essential
ninja-build
cmake
git
python3
curl
unzip
tar
wget
pkg-config
ca-certificates
zlib1g-dev
libssl-dev
libicu-dev
&& rm -rf /var/lib/apt/lists/*

  1. .github/workflows/docker-qnap.yml: update build-args to add VCPKG_KEEP_BUILDTREES=1 and VCPKG_LOG_LEVEL=debug to preserve logs; remove the unsupported 'progress: plain' input from docker/build-push-action.

Replace build-args with:

build-args: |
VCPKG_TRIPLET=${{ matrix.triplet }}
VCPKG_COMMIT=beea85fdd8bf6b716acdac191cde9bfc7c72b73b
VCPKG_KEEP_BUILDTREES=1
VCPKG_LOG_LEVEL=debug

And remove the 'progress: plain' line.

  1. PR description should reference the failing job ref e604851 and the run URL.

Acceptance criteria

Do not modify unrelated files. Do not set an assignee.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@makr-code
makr-code marked this pull request as ready for review November 10, 2025 17:31
@makr-code
makr-code merged commit ef59738 into main Nov 10, 2025
Copilot AI requested a review from makr-code November 10, 2025 17:31
@makr-code
makr-code deleted the copilot/fix-dockerfile-prerequisites branch November 30, 2025 11:50
makr-code added a commit that referenced this pull request Dec 6, 2025
…sites

[WIP] Fix Docker image build by installing prerequisites
Copilot AI added a commit that referenced this pull request Jan 3, 2026
Issue #9 - Configuration error logging:
- Add specific exception catching for YAML and JSON parsing errors
- Log detailed error messages with exception details
- Add file open failure logging
- Better debugging for configuration issues

Issue #10 - Defensive nullptr checks:
- Add null check after transaction creation in TransactionManager
- Throw exception if MVCC transaction creation fails
- Existing code already has good checks for GetBaseDB(), weak_ptr::lock()

Issue #11 - Static cast usage:
- Documented in new coding standards
- Added guidelines for safe type conversions
- Existing casts are safe (size comparisons, dimension checks)

Issue #12 - Code style consistency:
- Created comprehensive CODING_STANDARDS.md
- Defined logging level usage (ERROR, WARN, INFO, DEBUG)
- Memory management guidelines (RAII, smart pointers)
- Thread safety patterns (atomics, mutexes)
- Signal handler safety requirements
- Error handling best practices

Co-authored-by: makr-code <[email protected]>
@makr-code makr-code added this to the Phase 3: Integration & Testing milestone Feb 21, 2026
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants