Uploaded image for project: 'ECS'
  1. ECS
  2. ECS-10

Windows10: in-docker sh script must by LF not CR/LF via .gitattributes override: *.sh text eol=lf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Labels:
      None

      Description

      see

      http://wiki.obrienlabs.cloud/display/DEV/AWS+ECR+E2E+Architecture#AWSECRE2EArchitecture-VerifyDockerContainerrunsinWindowsunderDockerDesktoponHyper-Vaswell

      michaelobrien@biometrics MINGW64 /f/wse_github/ecs-app-source/ecs-app-source-nbi/src/docker (master)$ ./build.shSending build context to Docker daemon  24.54MBStep 1/6 : FROM openjdk:1111: Pulling from library/openjdk                                                                                                                                                                                                db8414d1baad: Pull complete                                                                                                                                                                                                Digest: sha256:0e871bfa64e4eab7453fecb9b555da938ca3496c89f19de9eeb4bced684bf66fStatus: Downloaded newer image for openjdk:11 ---> 243e95d792e3Step 2/6 : ARG USERVICE_HOME=/opt/app/ ---> Running in e37270d17866Removing intermediate container e37270d17866 ---> eee7698fd555Step 3/6 : RUN mkdir -p $USERVICE_HOME ---> Running in 2ea24b69d2ccRemoving intermediate container 2ea24b69d2cc ---> 5598e6b253f8Step 4/6 : ADD ecs-app-source-nbi-*.jar $USERVICE_HOME/lib/ecs-app-source-nbi.jar ---> 80cfbe1e7834Step 5/6 : ADD startService.sh $USERVICE_HOME/bin/ ---> 3d45f937a3ffStep 6/6 : CMD ["/opt/app/bin/startService.sh"] ---> Running in 5529387ab214Removing intermediate container 5529387ab214 ---> 884e985c1c60[Warning] One or more build-args [build-id] were not consumedSuccessfully built 884e985c1c60Successfully tagged ecs-app-source-nbi:latestSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.Error response from daemon: No such container: ecs-app-source-nbiError: No such container: ecs-app-source-nbistarting: ecs-app-source-nbi5c013d61c996c9cc9c52cf971e4cda27498a390e01bf8e055de8e25841c4a68c container failedmichaelobrien@biometrics MINGW64 /f/wse_github/ecs-app-source/ecs-app-source-nbi/src/docker (master)$ docker psCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES check logsmichaelobrien@biometrics MINGW64 /f/wse_github/ecs-app-source/ecs-app-source-nbi/src/docker (master)$ docker ps -aCONTAINER ID        IMAGE                       COMMAND                  CREATED              STATUS                          PORTS               NAMES5c013d61c996        ecs-app-source-nbi:latest   "/opt/app/bin/startS…"   About a minute ago   Exited (1) About a minute ago                       ecs-app-source-nbi michaelobrien@biometrics MINGW64 /f/wse_github/ecs-app-source/ecs-app-source-nbi/src/docker (master)$ docker logs -f ecs-app-source-nbistandard_init_linux.go:211: exec user process caused "no such file or directory" This actually means the file is either not 755 chmod or it is in CR/LF format not LF.

        Attachments

          Activity

            People

            • Assignee:
              obrienlabs Michael O'Brien
              Reporter:
              obrienlabs Michael O'Brien
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: