Windows version of the IronWorker CLI
The Iron.io command line tool will help you interact with the IronWorker API to make creating workers easier.
Table of Contents
Install
Head over to https://github.com/iron-io/ironcli/releases and download the newest version of the cli.
Configure
Open a new Command Line and CD into the directory you’ve downloaded the executable to. From that directory, confirm the installation was successful by checking the version
ironcli.exe --version
Now that it’s working, let’s move everything to C:\ directly (Replacing $username with your username)
copy c:\Users\$username\Downloads\ironcli.exe c:\IronCli\iron.exe
Once that has been completed, add the C:\IronCli to the PATH Environment Variable. If you need help with this step, please see this article as a guide.
Confirm
Finally, to confirm everything has been setup properly, open a new Command Line and run
iron --version
Now you can follow along with all of the examples in the docs.
Docker Troubleshooting
If you’re having trouble getting started with Docker in Windows, here are a few things to consider.
The Linux VM in the VirtualBox maps the c/Users directory in the VM instance to the C:\Users folder in Windows. So be sure your source code for your worker is in a folder under C:\Users, then cd to that folder in the context of the VM (in Docker terminal) and run it from there.
Specifying paths in docker commands
Sometimes the Docker Terminal tool cannot properly recognize the paths given to docker commands as arguments. Assume you’re creating a bind mount using the -v option:
docker run --rm -v "$PWD":/worker-w /worker IMAGE [COMMAND]
If you get an invalid path error, you should retry the above command with additional “/” signs:
docker run --rm -v "//$PWD":/worker -w //worker IMAGE [COMMAND]