mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
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>
24 lines
696 B
Text
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","./..."]
|