air icon indicating copy to clipboard operation
air copied to clipboard

I can't run the cmd about in docker.

Open smartdevcode opened this issue 2 years ago • 5 comments

RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin The errors are following contents.

[dev 1/2] RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin: #0 1.464 cosmtrek/air info checking GitHub for latest tag #0 151.4 cosmtrek/air crit unable to find '' - use 'latest' or see https://github.com/cosmtrek/air/releases for details


failed to solve: executor failed running [/bin/sh -c curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin]: exit code:

smartdevcode avatar May 30 '22 04:05 smartdevcode

I'm having de same problem

cosmtrek/air info checking GitHub for latest tag
cosmtrek/air crit unable to find '' - use 'latest' or see https://github.com/cosmtrek/air/releases for details

lalizita avatar Jun 02 '22 14:06 lalizita

let me take a look

xiantang avatar Jun 03 '22 07:06 xiantang

hi @smartdevcode @lalizita

i tried this

FROM docker.io/library/golang:1.18.2 as builder

RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

and everything is working fine, can you share your Dockerfile?

agungsid avatar Jun 10 '22 07:06 agungsid

@smartdevcode @lalizita Are you try to install via RUN go get github.com/cosmtrek/air?

anderson-oki avatar Jun 13 '22 12:06 anderson-oki

@smartdevcode @lalizita Are you try to install via RUN go get github.com/cosmtrek/air?

why u use install air in this way?

xiantang avatar Jun 14 '22 10:06 xiantang

Sorry for the delay, I loose notifications about it. I'm using the docker image like this in my docker-compsoe.yml

services:
  web:
    image: cosmtrek/air

But I think that it's a problem with M1, in my other computer it works well, but in M1 Macbook doesn't, maybe a problem with fsnotify

lalizita avatar Oct 25 '22 23:10 lalizita

Perfect.

smartdevcode avatar Oct 28 '22 23:10 smartdevcode