jasl8r / docker-mattermost

Docker solution for mattermost
MIT License
15 stars 20 forks source link

Mattermost 3.7.2 ? #21

Closed cduverne closed 6 years ago

cduverne commented 7 years ago

Hi @jasl8r ,

It's me again :) When do you plan on releasing the version 3.7.2 of Mattermost ? Can I help you by any mean ?

Thanks in advance CyD

cduverne commented 7 years ago

Hello @jasl8r ,

I started playing around with your code. I changed the version number and launched the script, just to to see it running and had the following issue :

11:48 $ sudo docker build --pull -t mattermost-3.7.2 ./
Sending build context to Docker daemon 37.89 kB
Step 1 : FROM alpine:3.3
3.3: Pulling from library/alpine
Digest: sha256:8d366db868cba704e3f86823106390201887de958b19f01e2daa4f178fe604e3
Status: Image is up to date for alpine:3.3
 ---> 6f4ea9f58e4e
Step 2 : MAINTAINER jasl8r@alum.wpi.edu
 ---> Using cache
 ---> afcbd700437a
Step 3 : ENV MATTERMOST_VERSION 3.7.2 MATTERMOST_HOME "/opt/mattermost"
 ---> Using cache
 ---> 198a79826927
Step 4 : ENV MATTERMOST_DATA_DIR "${MATTERMOST_HOME}/data" MATTERMOST_BUILD_DIR "${MATTERMOST_HOME}/build" MATTERMOST_RUNTIME_DIR "${MATTERMOST_HOME}/runtime" MATTERMOST_INSTALL_DIR "${MATTERMOST_HOME}/mattermost" MATTERMOST_CONF_DIR "${MATTERMOST_HOME}/config" MATTERMOST_LOG_DIR "/var/log/mattermost"
 ---> Using cache
 ---> 8364518dbbfe
Step 5 : RUN apk --no-cache add bash gettext sudo     mysql-client postgresql-client     ca-certificates
 ---> Using cache
 ---> cf2573661f10
Step 6 : COPY assets/build/ ${MATTERMOST_BUILD_DIR}/
 ---> Using cache
 ---> 871ab93fb632
Step 7 : RUN bash ${MATTERMOST_BUILD_DIR}/install.sh
 ---> Running in 978334f0e809
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
(1/29) Installing go (1.5.4-r0)
(2/29) Installing libssh2 (1.6.0-r1)
(3/29) Installing curl (7.52.1-r0)
(4/29) Installing expat (2.1.1-r1)
(5/29) Installing pcre (8.38-r1)
(6/29) Installing git (2.6.6-r0)
(7/29) Installing libbz2 (1.0.6-r4)
(8/29) Installing libffi (3.2.1-r2)
(9/29) Installing gdbm (1.11-r1)
(10/29) Installing sqlite-libs (3.9.2-r0)
(11/29) Installing python (2.7.12-r0)
(12/29) Installing mercurial (3.7.3-r1)
(13/29) Installing libuv (1.7.5-r0)
(14/29) Installing nodejs (4.3.0-r0)
(15/29) Installing make (4.1-r0)
(16/29) Installing binutils-libs (2.25.1-r0)
(17/29) Installing binutils (2.25.1-r0)
(18/29) Installing gmp (6.1.0-r0)
(19/29) Installing isl (0.14.1-r0)
(20/29) Installing libatomic (5.3.0-r0)
(21/29) Installing pkgconf (0.9.12-r0)
(22/29) Installing pkgconfig (0.25-r1)
(23/29) Installing mpfr3 (3.1.2-r0)
(24/29) Installing mpc1 (1.0.3-r0)
(25/29) Installing gcc (5.3.0-r0)
(26/29) Installing musl-dev (1.1.12-r7)
(27/29) Installing libc-dev (0.7-r0)
(28/29) Installing g++ (5.3.0-r0)
(29/29) Installing build-dependencies (0)
Executing busybox-1.24.2-r1.trigger
OK: 459 MiB in 60 packages
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
npm@4.4.1 /usr/lib/node_modules/npm
Cloning Mattermost 3.7.2...
Note: checking out 'f4473cf312d09a53a57312745963aee334e251cb'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Building Mattermost...
Preparation for running go code
go get  github.com/Masterminds/glide
touch .prebuild
Build Linux amd64
env GOOS=linux GOARCH=amd64 go install  -ldflags "-X github.com/mattermost/platform/model.BuildNumber=3.7.2 -X 'github.com/mattermost/platform/model.BuildDate=Mon Mar 20 10:51:55 UTC 2017' -X github.com/mattermost/platform/model.BuildHash=f4473cf312d09a53a57312745963aee334e251cb -X github.com/mattermost/platform/model.BuildHashEnterprise=none -X github.com/mattermost/platform/model.BuildEnterpriseReady=false" ./cmd/platform
# github.com/mattermost/platform/model
model/client4.go:150: undefined: http.MethodGet
model/client4.go:154: undefined: http.MethodPost
model/client4.go:158: undefined: http.MethodPut
model/client4.go:162: undefined: http.MethodDelete
Makefile:289: recipe for target 'build-linux' failed
make: *** [build-linux] Error 2
The command '/bin/sh -c bash ${MATTERMOST_BUILD_DIR}/install.sh' returned a non-zero code: 2

Would you mind having a look and telling me why this is failing ? Thanks