Giter Site home page Giter Site logo

Comments (5)

talex5 avatar talex5 commented on June 2, 2024

What is the use for this? I worry that testing two PRs at the same time with a fixed network might cause a port conflict.

from datakit.

Thegaram avatar Thegaram commented on June 2, 2024

Well DataKitCI aims to be a generic CI solution right? I would like to use it for my CI scenario, where I have two containers, one with the service I am testing and the other one with my acceptance tests. For the latter to be able to access the service, I need to use Docker run's --network parameter.

It would also be nice to specify other parameters for Docker run, including port mappings. I've seen mirageCI's Docker utility has some more configuration options (e.g. volumes, tags), but I would prefer not to reimplement a utility like this when DataKitCI has it already.

Yeah I can see that if the CI runs the tests for PRs parallelly, then this can cause problems if the container exposes any ports (which is not the case for my tests). What do you suggest? Would it be possible to parameterize Docker.run's separately for PRs?

from datakit.

talex5 avatar talex5 commented on June 2, 2024

How do the acceptance tests access the service, if it doesn't expose any ports? Is there a fixed test container, or a new one for each PR?

from datakit.

Thegaram avatar Thegaram commented on June 2, 2024

Sorry I was not clear enough. The service container does expose ports, but for now, it is not started by the CI. The test container is built and run for each commit/PR.

More generally, I think it would be nice if DataKitCI could support more complex build/test scenarios involving multiple containers communicating with each other.

from datakit.

talex5 avatar talex5 commented on June 2, 2024

Yes. It probably needs docker-compose support, really.

from datakit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.