Compare commits
	
		
			13 Commits
		
	
	
		
			1.0.14
			...
			1.0.28-tes
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d4aa21b680 | |||
| 4c286521eb | |||
| 9e349de285 | |||
| 6d356d4af6 | |||
| 8bbf4369cd | |||
| 7dddc84ff0 | |||
| cbc0d0a5d7 | |||
| 20329546d2 | |||
| d7892255ee | |||
| f2053f9314 | |||
| 00be948c9b | |||
| 0f45783feb | |||
| 8645ae54f8 | 
							
								
								
									
										14
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| --- | ||||
| kind: pipeline | ||||
| name: publish docker image | ||||
| steps: | ||||
|   - name: build and publish | ||||
|     image: plugins/docker | ||||
|     settings: | ||||
|       username: 3wordchant | ||||
|       password: | ||||
|         from_secret: git_coopcloud_tech_token_3wc | ||||
|       repo: git.coopcloud.tech/wiki-cafe/wiki-farm | ||||
|       auto_tag: true | ||||
|       tags: latest | ||||
|       registry: git.coopcloud.tech | ||||
							
								
								
									
										30
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								Dockerfile
									
									
									
									
									
								
							| @ -4,14 +4,32 @@ RUN apk add --update --no-cache \ | ||||
|   dumb-init \ | ||||
|   git \ | ||||
|   jq | ||||
|  | ||||
| WORKDIR "/home/node" | ||||
| ARG WIKI_PACKAGE=wiki@0.28.0 | ||||
| RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE" | ||||
| RUN su node -c "mkdir -p .wiki" | ||||
| VOLUME "/home/node/.wiki" | ||||
| EXPOSE 3000 | ||||
|  | ||||
| ARG WIKI_PACKAGE=wiki@0.37.0 | ||||
|  | ||||
| USER node | ||||
|  | ||||
| RUN npm install -g --prefix . $WIKI_PACKAGE | ||||
| RUN cd lib/node_modules/wiki/node_modules && \ | ||||
|   rm -r wiki-security-passportjs && \ | ||||
|   git clone https://git.coopcloud.tech/wiki-cafe/wiki-security-passportjs.git | ||||
|  | ||||
| RUN cd lib/node_modules/wiki/node_modules/wiki-security-passportjs && \ | ||||
|   npm install && \ | ||||
|   node_modules/grunt/bin/grunt | ||||
|  | ||||
| RUN mkdir -p .wiki | ||||
|  | ||||
| VOLUME "/home/node/.wiki" | ||||
|  | ||||
| EXPOSE 3000 | ||||
|  | ||||
| ENV PATH="${PATH}:/home/node/bin" | ||||
|  | ||||
| ENV NPM_CONFIG_PREFIX="${HOME}" | ||||
|  | ||||
| ENTRYPOINT ["dumb-init"] | ||||
| CMD ["wiki", "--farm", "--security_type=friends"] | ||||
|  | ||||
| CMD ["wiki", "--farm"] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	