1
0
Fork 0

updated start script

This commit is contained in:
Christian Kühnel 2020-01-23 10:33:56 +01:00
parent 9f3db2cc48
commit ebdda6fdc6

View file

@ -12,9 +12,18 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
$IMAGE="gcr.io/llvm-premerge-checks/agent-windows-jenkins" # Pull and start the Docker container for a Windows agent.
# To setup a Windows agent see docs/playbooks.md
# check for new images on every start $NAME="agent-windows-jenkins"
docker pull $IMAGE:latest $IMAGE="gcr.io/llvm-premerge-checks/${NAME}"
docker run $IMAGE
docker run -v D:\:C:\ws -v C:\credentials:C:\credentials -e PARENT_HOSTNAME=$env:computername $IMAGE docker pull ${IMAGE}:latest
docker stop ${NAME}
docker run `
-v D:\:C:\ws `
-v C:\credentials:C:\credentials `
-e PARENT_HOSTNAME=$env:computername `
--restart unless-stopped `
--name ${NAME} `
${IMAGE}