Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70898

Confusing command in Dockerfile of official docker image

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Installation
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      I found the following command in Dockerfile of official docker image (docker history).

      chown -R root. ${JIRA_INSTALL_DIR}/

      The dot after owner confuses me, I'm surprised that chown accept such input.

      GNU coreutils manual:

      Some older scripts may still use ‘.’ in place of the ‘:’ separator. POSIX 1003.1-2001 (see Standards conformance) does not require support for that, but for backward compatibility GNU chown supports ‘.’ so long as no ambiguity results. New scripts should avoid the use of ‘.’ because it is not portable, and because it has undesirable results if the entire owner‘.’group happens to identify a user whose name contains ‘.’.

      Please replace dot with colon, for sanity.

      Attachments

        Activity

          People

            Unassigned Unassigned
            3960f4860436 zhangyoufu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: