Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying go get yarascanner in docker #1

Open
unstppbl opened this issue Jul 19, 2018 · 0 comments
Open

Error trying go get yarascanner in docker #1

unstppbl opened this issue Jul 19, 2018 · 0 comments

Comments

@unstppbl
Copy link

I get following errors when trying to build an image with dockerfile, the command is go get yarascanner

src/github.com/hillu/go-yara/compiler_yara37.go:87:3: could not determine kind of name for C.YR_COMPILER_INCLUDE_CALLBACK_FUNC
src/github.com/hillu/go-yara/compiler_yara37.go:88:3: could not determine kind of name for C.YR_COMPILER_INCLUDE_FREE_FUNC
src/github.com/hillu/go-yara/compiler_yara37.go:42:2: could not determine kind of name for C.yr_compiler_set_include_callback

Here is my Dockerfile

FROM jheise/ubuntu-golang

RUN apt-get update && apt-get install -y libyara-dev git

RUN mkdir -p /go/src/yarascanner

ADD *.go /go/src/yarascanner/
RUN apt-get install -y pkg-config

RUN go get yarascanner
RUN go install yarascanner

RUN git clone https://github.com/Yara-Rules/rules.git /rules
RUN mkdir /uploads

ENV IPADDR 0.0.0.0
ENV PORT 9999
ENV UPLOADS /uploads
ENV INDEXES -i /rules/malware_index.yar

EXPOSE ${PORT}
CMD /go/bin/yarascanner -address ${IPADDR} -port ${PORT} -uploads ${UPLOADS} ${INDEXES}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant