docker.io to docker

This commit is contained in:
Bertrand Gouny committed 2014-08-29 17:41:13 +02:00
1 parent c788c20245
commit f5d4c7b5c5
5 files changed
+14 -14

No files matched your search

+4 -4
View File
@@ -6,16 +6,16 @@ VERSION = 0.9.1
all: build
build:
docker.io build -t $(NAME):$(VERSION) --rm .
docker build -t $(NAME):$(VERSION) --rm .
test:
env NAME=$(NAME) VERSION=$(VERSION) ./test.sh debug
tag_latest:
docker.io tag $(NAME):$(VERSION) $(NAME):latest
docker tag $(NAME):$(VERSION) $(NAME):latest
release: build test tag_latest
@if ! docker.io images $(NAME) | awk '{ print $$2 }' | grep -q -F $(VERSION); then echo "$(NAME) version $(VERSION) is not yet built. Please run 'make build'"; false; fi
docker.io push $(NAME)
@if ! docker images $(NAME) | awk '{ print $$2 }' | grep -q -F $(VERSION); then echo "$(NAME) version $(VERSION) is not yet built. Please run 'make build'"; false; fi
docker push $(NAME)
@echo "*** Don't forget to run 'twgit release finish' :)"
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh
docker.io build -t $testImage .
#docker.io build --no-cache=true -t $testImage .
docker build -t $testImage .
#docker build --no-cache=true -t $testImage .
+3 -3
View File
@@ -1,9 +1,9 @@
#!/bin/sh
# remove test container
res=$(docker.io ps -a | grep -c "$testContainer")
res=$(docker ps -a | grep -c "$testContainer")
if [ $res -ne 0 ]; then
docker.io stop $testContainer
docker.io rm $testContainer
docker stop $testContainer
docker rm $testContainer
fi
+2 -2
View File
@@ -1,8 +1,8 @@
#!/bin/sh
# remove test image
res=$(docker.io images | grep -c "$testImage")
res=$(docker images | grep -c "$testImage")
if [ $res -ne 0 ]; then
docker.io rmi $testImage
docker rmi $testImage
fi
+3 -3
View File
@@ -1,11 +1,11 @@
#!/bin/sh
echo "docker.io run --name $testContainer $runOptions -d $testImage $runCommand"
ID=`docker.io run --name $testContainer $runOptions -d $testImage $runCommand`
echo "docker run --name $testContainer $runOptions -d $testImage $runCommand"
ID=`docker run --name $testContainer $runOptions -d $testImage $runCommand`
sleep 10
echo " --> Obtaining IP"
IP=`docker.io inspect -f "{{ .NetworkSettings.IPAddress }}" $ID`
IP=`docker inspect -f "{{ .NetworkSettings.IPAddress }}" $ID`
if [ "$IP" = "" ]; then
abort "Unable to obtain container IP"
exit 1