Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command to pack only files required for tests into Docker #652

Open
Anton3 opened this issue Jul 19, 2024 · 0 comments
Open

Add a command to pack only files required for tests into Docker #652

Anton3 opened this issue Jul 19, 2024 · 0 comments

Comments

@Anton3
Copy link
Member

Anton3 commented Jul 19, 2024

Multiple users have reported (ru support chat example) that their CI uses the following process:

  1. One machine builds the service
  2. Only the required artifacts are stored and packed into Docker
  3. Another machine runs the tests

To better support this workflow, we need the ability to prepare such a Docker image (in debug or release build) with a single command.

The files required for tests:

  1. the binary build/SERVICE_NAME
  2. build/runtests-testsuite-SERVICE_NAME
  3. configs
  4. testsuite tests directory
  5. build/venv-testsuite-SERVICE_NAME
  6. while we are at it, let's also pack the binary of gtest tests

All the files currently have to be placed at the paths within the Docker image that are identical to the paths on the build machine, e.g. /path/to/my-service/build-release/my-service should be put at exactly that path within the Docker.

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

No branches or pull requests

1 participant