mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
*Stop running TestKafkaSourceIntegration with t.Parallel() This test can't be run in parallel as it's currently written. Doing so allows for interleaving of messages to the same kafka topic between tests. I didn't attempt to modify the test so it could be run in parallel. That could be done, but left for someone more ambitious. * Remove idk/testenv/certs which got accidentally committed. also update .gitignore to include those.
55 lines
1 KiB
Docker
55 lines
1 KiB
Docker
ARG GO_VERSION=latest
|
|
|
|
#######################
|
|
### Lattice builder ###
|
|
#######################
|
|
|
|
FROM ghcr.io/featurebasedb/nodejs:0.0.1 as lattice-builder
|
|
WORKDIR /lattice
|
|
|
|
COPY lattice/package.json ./
|
|
COPY lattice/yarn.lock ./
|
|
RUN yarn install
|
|
|
|
COPY lattice ./
|
|
RUN yarn build
|
|
|
|
######################
|
|
### Pilosa builder ###
|
|
######################
|
|
|
|
FROM golang:${GO_VERSION} as pilosa-builder
|
|
ARG MAKE_FLAGS
|
|
WORKDIR /pilosa
|
|
|
|
RUN go install github.com/rakyll/statik@v0.1.7
|
|
|
|
COPY . ./
|
|
COPY --from=lattice-builder /lattice/build /lattice
|
|
RUN /go/bin/statik -src=/lattice -dest=/pilosa
|
|
|
|
RUN make build FLAGS="-o build/featurebase" ${MAKE_FLAGS}
|
|
|
|
#####################
|
|
### Pilosa runner ###
|
|
#####################
|
|
|
|
FROM alpine:3.13.2 as runner
|
|
|
|
LABEL maintainer "dev@molecula.com"
|
|
|
|
RUN apk add --no-cache curl jq
|
|
|
|
COPY --from=pilosa-builder /pilosa/build/featurebase /
|
|
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 10101
|
|
VOLUME /data
|
|
|
|
ENV PILOSA_DATA_DIR /data
|
|
ENV PILOSA_BIND 0.0.0.0:10101
|
|
ENV PILOSA_BIND_GRPC 0.0.0.0:20101
|
|
|
|
ENTRYPOINT ["/featurebase"]
|
|
CMD ["server"]
|