Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-126919

Workspace's createDockerContainer command won't create its needed directories

    Details

    • Fix Priority:
      3

      Description

      In the manually created version of Workspace used for Liferay Learn, we don't have the configs directory by default. It's likely users and customers will download one of our sample projects to use as a starting point. If you try to create a Docker container, it fails with this error: 

      Execution failed for task ':buildDockerImage'.
      > Could not build image: COPY failed: file not found in build context or excluded by .dockerignore: stat configs: file does not exist
      

      If you create just the configs folder, you get another cryptic error: 

      > The 'configs' directory must contain one directory not named: common, docker
      
      

      The Gradle task should create all necessary directories if they don't exist. 

       

      UPDATE: The current Gradle task also requires a portal-ext.properties file to be inside at least one (dev) of the config folders. This is extra configuration and also should not be required. 

        Attachments

          Activity

            People

            Assignee:
            gregory.amerson Gregory Amerson
            Reporter:
            richard.sezov Rich Sezov
            Participants of an Issue:
            Recent user:
            Brian Chan
            Engineering Assignee:
            Gregory Amerson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              31 weeks, 2 days ago

                Packages

                Version Package
                Master