add ability to build your own mm binary (#314)
This commit is contained in:
		
							parent
							
								
									ddbc3cc81b
								
							
						
					
					
						commit
						1604e11a5b
					
				@ -8,6 +8,7 @@ ENV MM_VERSION=5.3.1
 | 
				
			|||||||
ARG edition=enterprise
 | 
					ARG edition=enterprise
 | 
				
			||||||
ARG PUID=2000
 | 
					ARG PUID=2000
 | 
				
			||||||
ARG PGID=2000
 | 
					ARG PGID=2000
 | 
				
			||||||
 | 
					ARG MM_BINARY=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install some needed packages
 | 
					# Install some needed packages
 | 
				
			||||||
@ -25,7 +26,8 @@ RUN apk add --no-cache \
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Get Mattermost
 | 
					# Get Mattermost
 | 
				
			||||||
RUN mkdir -p /mattermost/data \
 | 
					RUN mkdir -p /mattermost/data \
 | 
				
			||||||
    && if [ "$edition" = "team" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \
 | 
					    && if [ ! -z "$MM_BINARY" ]; then curl $MM_BINARY | tar -xvz ; \
 | 
				
			||||||
 | 
					      elif [ "$edition" = "team" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \
 | 
				
			||||||
      else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \
 | 
					      else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \
 | 
				
			||||||
    && cp /mattermost/config/config.json /config.json.save \
 | 
					    && cp /mattermost/config/config.json /config.json.save \
 | 
				
			||||||
    && rm -rf /mattermost/config/config.json \
 | 
					    && rm -rf /mattermost/config/config.json \
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user