Download the latest SDK image here: spark_sdk.zip
Unzip that folder into a working directory. Inside you should see something like this:
spark_sdk.img client/ spark_client.cmd examples/
Import the spark_sdk image into docker using the
docker load command.
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Confirm that the import worked by running
docker images which should list the new image.
c:\bts> docker images REPOSITORY TAG IMAGE ID CREATED SIZE bluetradingsystems/spark_sdk latest e2be89436e73 4 hours ago 3.89GB
To update your Spark SDK simply download an unzip a new spark_sdk.zip and use
docker load < spark_sdk.img to overwrite the old image with the new one.
To preserve the old image so you can go back to it later run
docker tag spark_sdk spark_sdk:your_custom_tag before loading the new SDK image.
If you are using Visual Studio Code you also need to rebuild the dev-container so it picks up the new image.
To re-build from inside Visual Studio Code. Click the 'Remote Explorer' icon on the left hand side. You should see your spark_sdk project listed under the Containers section. Right click on it and select rebuild-container.
To re-build from the command line run
docker ps -a and find the row with the spark_sdk image.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 54d96cfa3888 spark_sdk "/bin/sh -c 'echo Co…" About a minute ago Up About a minute 127.0.0.1:9000-9001->9000-9001/tcp quizzical_lichterman
docker rm 54d96cfa3888 (use your container id instead of 54d96cfa3888) or
docker rm quizzical_lichterman (use your container name).