mirror of
				https://github.com/docker/compose.git
				synced 2025-10-31 11:14:02 +01:00 
			
		
		
		
	- Make use of the same Dockerfile when producing an image for testing and for deploying to DockerHub Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			383 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			383 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| if [ -z "$1" ]; then
 | |
|     >&2 echo "First argument must be image tag."
 | |
|     exit 1
 | |
| fi
 | |
| 
 | |
| TAG="$1"
 | |
| 
 | |
| VERSION="$(python setup.py --version)"
 | |
| 
 | |
| DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
 | |
| echo "${DOCKER_COMPOSE_GITSHA}" > compose/GITSHA
 | |
| python setup.py sdist bdist_wheel
 | |
| 
 | |
| docker build \
 | |
|     --build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}" \
 | |
|     -t "${TAG}" .
 |