CircleCI Ideas

Allow building a Docker image instead of pulling one during the build

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Dec 8 2017
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    March 04, 2019 22:52

    I'm very interested in this idea. I have a bunch of private repositories where I don't want or need to publish an image, but I need a customized build environment.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    May 06, 2019 22:40

    Can this be achieved with the following lines already? The following works within a containerized docker build (using image docker:18.09-git)

    steps:
    - checkout
    - setup_remote_docker
    - run: |
    docker build -t yourapp:${CIRCLE_SHA1} -f Dockerfile .
    docker run -it yourapp:${CIRCLE_SHA1} <test_command>