Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14588

Support mounting volumes for test data in the Pipelines service containers

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      It's simple enough:

      We have some tests that we run with a compose file. The mysql image in that compose file mounts a volume in the source directory to run some boot-up scripts that essentially create the structure we need. I don't see any where to do this in the pipeline.yml file. Below is my compose that I am trying to move to a pipeline

      # File is a work in progress
      version: '3.3'
      services:
        mysql:
          image: mysql:5.6
          environment:
            - MYSQL_ALLOW_EMPTY_PASSWORD=true
          volumes:
            - $PWD/user-login-server/src/main/resources/sql:/docker-entrypoint-initdb.d/:ro
        redis:
          image: redis
        build:
          image: anapsix/alpine-java:8_jdk
          command: ./gradlew  compileJava check assemble 
          working_dir: /root
          volumes:
            - $PWD:/root:rw
          depends_on:
            - mysql
            - redis
          environment:
            - HOST=$HOST
      
      

      I am betting money I am not the only one who needs this

      Attachments

        Activity

          People

            Unassigned Unassigned
            dee47f9cefd8 Christian Bongiorno
            Votes:
            47 Vote for this issue
            Watchers:
            26 Start watching this issue

            Dates

              Created:
              Updated: