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

feat: Dockerize TCK #331

Merged
merged 6 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ ENV NETWORK=local \
COPY . .

# Use the runner script
CMD ["npx", "ts-node", "--files", "/app/src/utils/docker/run-tests.ts"]
CMD ["npx", "ts-node", "--files", "/app/src/services/RunTestsInContainer.ts"]
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,6 @@ task generate-mirror-node-models

This command uses `openapi-typescript-codegen` to parse the `mirror-node.yaml` file and generate corresponding TypeScript models in `src/utils/models/mirror-node-models`


## Contributing

Whether you’re fixing bugs, enhancing features, or improving documentation, your contributions are important — let’s build something great together!

Please read our [contributing guide](https://github.com/hiero-ledger/.github/blob/main/CONTRIBUTING.md) to see how you can get involved.


## Code of Conduct

Hiero uses the Linux Foundation Decentralised Trust [Code of Conduct](https://www.lfdecentralizedtrust.org/code-of-conduct).


## Docker

The TCK is also available as a Docker image, providing an easy way to run tests in an isolated environment.
Expand Down Expand Up @@ -193,6 +180,26 @@ If you want to build the image locally:
```bash
docker build -t tck-client .
```
### Docker additional notes

```bash
# entry point for the Docker image. It sets the network environment, maps the ports, and runs the tests.

RunTestsInContainer.ts
```

**Note:** This file is specifically used for running tests within the Docker environment and does not affect how tests are run locally. For local test execution, please refer to the instructions provided in the "Install and run" section above.

## Contributing

Whether you’re fixing bugs, enhancing features, or improving documentation, your contributions are important — let’s build something great together!

Please read our [contributing guide](https://github.com/hiero-ledger/.github/blob/main/CONTRIBUTING.md) to see how you can get involved.


## Code of Conduct

Hiero uses the Linux Foundation Decentralised Trust [Code of Conduct](https://www.lfdecentralizedtrust.org/code-of-conduct).

Then run it using the same commands as above, replacing `ivaylogarnev/tck-client` with `tck-client`.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console */
import { TEST_CONFIGURATIONS } from "./test-paths";
import { setNetworkEnvironment } from "./network-config";
import { TEST_CONFIGURATIONS } from "../utils/constants/test-paths";
import { setNetworkEnvironment } from "../utils/helpers/network-config";

const runTests = async (testName: string, network: string): Promise<void> => {
try {
Expand Down
File renamed without changes.
File renamed without changes.