Open LoSunny opened 3 years ago
The Dockerfile
seems to assume that the plugin version moves parallel to the focalboard server version, which doesn't seem to be the case.
As of today, the dockerfile should look something like this:
ARG GOLANG_BUILDER_IMAGE=golang:buster
ARG DIST_IMAGE=gcr.io/distroless/static
FROM ${GOLANG_BUILDER_IMAGE} as builder
ARG focalboard_version
ENV FOCALBOARD_VERSION=${focalboard_version}
WORKDIR /usr/src
RUN curl -L -o focalboard-bin.tgz https://github.com/mattermost/focalboard/releases/download/v0.7.0/focalboard-server-linux-amd64.tar.gz && \
mkdir focalboard && \
tar xzf focalboard-bin.tgz -C focalboard --strip-components=1
RUN curl -L -o focalboard-src.tgz "https://github.com/mattermost/focalboard/archive/refs/tags/v0.7.3.tar.gz" && \
mkdir source && \
tar xzf focalboard-src.tgz -C source --strip-components=1
RUN cd source && BUILD_NUMBER="0.7.0" LDFLAGS='-w -s -extldflags "-static"' make server
RUN cp source/bin/focalboard-server focalboard/bin
FROM ${DIST_IMAGE}
EXPOSE 8000
WORKDIR /opt/focalboard
COPY --from=builder /usr/src/focalboard .
ENTRYPOINT ["/opt/focalboard/bin/focalboard-server"]
The focalboard instance crashes when it starts, here is the build & start logs: https://hastebin.com/yolopuqimi.yaml Config file
docker-compose.yml. I had changed the version to
0.6.7
as it's the latest version