mirror of
				https://github.com/docker/compose.git
				synced 2025-10-29 18:23:48 +01:00 
			
		
		
		
	Containerize release tool
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
		
							parent
							
								
									6b83a651f6
								
							
						
					
					
						commit
						eba67910f3
					
				
							
								
								
									
										14
									
								
								script/release/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								script/release/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| FROM python:3.6 | ||||
| RUN mkdir -p /src && pip install -U Jinja2==2.10 \ | ||||
|     PyGithub==1.39 \ | ||||
|     pypandoc==1.4 \ | ||||
|     GitPython==2.1.9 \ | ||||
|     requests==2.18.4 && \ | ||||
|     apt-get update && apt-get install -y pandoc | ||||
| 
 | ||||
| VOLUME /src/script/release | ||||
| WORKDIR /src | ||||
| COPY . /src | ||||
| RUN python setup.py develop | ||||
| ENTRYPOINT ["python", "script/release/release.py"] | ||||
| CMD ["--help"] | ||||
							
								
								
									
										25
									
								
								script/release/release.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								script/release/release.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,25 @@ | ||||
| #!/bin/sh | ||||
| 
 | ||||
| docker image inspect compose/release-tool > /dev/null | ||||
| if test $? -ne 0; then | ||||
|     docker build -t compose/release-tool -f $(pwd)/script/release/Dockerfile $(pwd) | ||||
| fi | ||||
| 
 | ||||
| if test -z $GITHUB_TOKEN; then | ||||
|     echo "GITHUB_TOKEN environment variable must be set" | ||||
|     exit 1 | ||||
| fi | ||||
| 
 | ||||
| if test -z $BINTRAY_TOKEN; then | ||||
|     echo "BINTRAY_TOKEN environment variable must be set" | ||||
|     exit 1 | ||||
| fi | ||||
| 
 | ||||
| docker run -e GITHUB_TOKEN=$GITHUB_TOKEN -e BINTRAY_TOKEN=$BINTRAY_TOKEN -it \ | ||||
|     --mount type=bind,source=$(pwd),target=/src \ | ||||
|     --mount type=bind,source=$(pwd)/.git,target=/src/.git \ | ||||
|     --mount type=bind,source=$HOME/.docker,target=/root/.docker \ | ||||
|     --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ | ||||
|     --mount type=bind,source=$HOME/.ssh,target=/root/.ssh \ | ||||
|     -v $HOME/.pypirc:/root/.pypirc \ | ||||
|     compose/release-tool $* | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user