docker use executing username to avoid root file perms, support absolute paths in repoapi_client

This commit is contained in:
Bryan Thornbury 2015-10-22 16:17:57 -07:00
parent 85d4f888ea
commit f4d72cd201
3 changed files with 2 additions and 7 deletions

View file

@ -24,5 +24,6 @@ docker build -t $DOTNET_BUILD_CONTAINER_TAG scripts/docker/
docker rm -f $DOTNET_BUILD_CONTAINER_NAME
docker run --rm \
-v $DOCKER_HOST_SHARE_DIR:/opt/code \
-u $(whoami) \
-e DOTNET_BUILD_VERSION=$DOTNET_BUILD_VERSION \
$DOTNET_BUILD_CONTAINER_TAG $BUILD_COMMAND $1

View file

@ -1,6 +0,0 @@
{
"name":"dotnet",
"version":"0.3",
"repositoryId":"561d36b9e548cb6eea0d6fc3",
"sourceUrl":"http://dotnetbuilddrops.blob.core.windows.net/debiantest/dotnet_0.3-1_amd64.deb"
}

View file

@ -68,7 +68,7 @@ function AddPackage
fi
packageUrl=$(grep "sourceUrl" $packageFile | head -n 1 | awk '{print $2}')
echo "Adding package to $server [$packageUrl]"
curl -i -k "$baseurl/v1/packages" --data @./$packageFile -H "Content-Type: application/json"
curl -i -k "$baseurl/v1/packages" --data @$packageFile -H "Content-Type: application/json"
BailIf $?
echo ""
}