The Score command-line client is a tool designed to enable user interactions with Score endpoints.
To run the score-client using a Docker image, you need to provide specific environment variables including the Score server STORAGE_URL
, the Song server METADATA_URL
, and a valid ACCESSTOKEN
.
Running the score-client docker image:
Use the following templated command to run a Score Client docker container:
docker run -d --name score-client \-e ACCESSTOKEN=${token} \-e STORAGE_URL=${scoreServerUrl} \-e METADATA_URL=${songServerUrl} \--network="host" \--platform="linux/amd64" \--mount type=bind,source="$(pwd)",target=/output \ghcr.io/overture-stack/score:latest
Replace all placeholders ${}
with the appropriate values for your environment.
-d
runs the container in detached mode, meaning it runs in the background and does not receive input or display output in the terminal.-e ACCESSTOKEN=${token}
will be the access token supplied by the platform's authorization and authentication service. For Overture, this will be Ego or Keycloak. API keys can be generated by users by logging into the front-end stage UI and navigating to their profile page.-e STORAGE_URL=${scoreServerUrl}
is the URL for the Score server that the Score-Client will interact with.-e METADATA_URL=${songServerUrl}
is the URL for the Song server that the Score-Client will interact with.--network="host"
uses the host network stack inside the container, bypassing the usual network isolation. This means the container shares the network namespace with the host machine.--platform="linux/amd64"
specifies the platform the container should emulate. In this case, it's set to linux/amd64, indicating the container is intended to run on a Linux system with an AMD64 architecture.--mount type=bind,source="$(pwd)",target=/output
mounts a directory of choice and its contents (volume) from the host machine to the container. Any changes made to the files in this directory will be reflected in both locations.For step-by-step instructions on installing and using the Song and Score clients, including downloading and uploading data, see our platform guides on CLI submissions and CLI downloads.