Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20115

RSS processing inside Windows Docker Engine container uses incorrect path representation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.3.0, 6.10.4
    • Bamboo Specs, Docker, Windows
    • None

    Description

      Summary

      When running RSS on Windows the path

      /mnt/input

      is passed to the container using the wrong representation for a Linux container:

      \\mnt\\input

      Environment

      • Windows
      • Repository Stored Specs enabled and Process Bamboo Specs in Docker enabled

      Steps to Reproduce

      1. Run RSS

      Expected Results

      RSS runs successfully.

      Actual Results

      An exception is thrown when Bamboo tries to create the container. Docker complains about the format of the path being sent as argument:

      Processing Specs within Docker containerUnable to scan repository <repository name> for Bamboo Specs
      com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository <repository name> for Bamboo Specs
              at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:739)
      ...
      Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: POST http://localhost:2375/containers/create?name=bamboo-specs-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: 400, body: {"message":"the working directory '\\mnt\\input' is invalid, it needs to be an absolute path"}
      
              at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2694)
              at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2644)
              at com.spotify.docker.client.DefaultDockerClient.createContainer(DefaultDockerClient.java:651)
              at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:698)
              ... 8 more
      Caused by: com.spotify.docker.client.shaded.javax.ws.rs.BadRequestException: HTTP 400 Bad Request
      ...
      

      Workaround

      There is no workaround.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abacs Andrei
            Votes:
            12 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: