featurebase/idk/Dockerfile-test
Garrison Davis 123b20d2f9
Upgrade Go to 1.19 (#2204)
Upgrade Go to 1.19

* Use go install to install statik for CI/CD

* Switch from stretch to buster for idk

The stretch release doesn't exist anymore for go 1.19 docker images.

buster is a newer version of Debian anyway (v10 vs v9)

Co-authored-by: Fletcher Haynes <fletcher.haynes@molecula.com>
2022-08-25 14:54:14 -06:00

24 lines
696 B
Text

ARG GO_VERSION=1.19
FROM golang:${GO_VERSION} as build_base
WORKDIR /
RUN ["apt-get","update","-y"]
RUN ["apt-get","install","-y","git","unixodbc","unixodbc-dev","netcat", "build-essential","musl-tools"]
RUN ["git", "clone", "https://github.com/edenhill/librdkafka.git"]
WORKDIR /librdkafka
# need to install dependencies because librdkafka does not find openssl header otherwise
RUN ["./configure", "--install-deps"]
RUN ["./configure", "--prefix", "/usr"]
RUN ["make"]
RUN ["make", "install"]
FROM build_base
WORKDIR /go/src/github.com/molecula/featurebase/
COPY . .
WORKDIR /go/src/github.com/molecula/featurebase/idk/
CMD ["go","test","-v","-mod=vendor","-tags=odbc,dynamic","./..."]