• Peter Lyons's avatar
    feat: get host uid:gid and use in docker for dev · 2a485612
    Peter Lyons authored
    
    
    - Grab the uid:gid of the repo root in docker
    - Use that for the node user we run as in the container
    - Check owner of all volume mounts, if not OK, fix them
    - this should avoid permission errors on linux
    - provide bin/fix-volumes to fix owner issues ad hoc
    - There is no more ../node_modules
      - 1 and only 1 place where modules go for local dev (and prod)
      - local dev it's a volume mount, prod it's baked in
      - We have no native add-ons at the moment, so it should be OK, but
        `npm rebuild` as needed
    - Also many docker and CI refactorings
      - split prod and dev dockerfiles
        - They are both small now
      - Use ci-scripts/docker-labels to reduce LABEL boilerplate
      - change lint CI task to run outside a docker container
    
    Signed-off-by: default avatarPeter Lyons <pete@reactioncommerce.com>
    2a485612