A helper command line app for supporting AccelByte Gaming Services
Extend use cases.
❗ This repository contains binary release only.
Latest builds can be downloaded from releases page.
-
Docker v23.x
-
Access to
AccelByte Gaming Services
environment. Keep theBase URL
e.g. https://test.accelbyte.io. -
Create an OAuth Client with
confidential
client type with the following permission. Keep theClient ID
andClient Secret
.ADMIN:NAMESPACE:{namespace}:EXTEND:REPOCREDENTIALS
[READ]
For extend-helper-cli <= v0.0.3 only: Create a user if you don't have any with the following permission. Keep the Username and Password.
ADMIN:NAMESPACE:{namespace}:EXTEND:REPOCREDENTIALS
[READ]
Set the required environment variables by this command line app.
# Base URL of AccelByte Gaming Services e.g. https://demo.accelbyte.io
export AB_BASE_URL='https://xxxxxxxxxx'
# Use Client ID and Client Secret from the Prerequisites section
export AB_CLIENT_ID='xxxxxxxxxx'
export AB_CLIENT_SECRET='xxxxxxxxxx'
# For extend-helper-cli <= v0.0.3 only: use Username and Password from the Prerequisites section
export AB_USERNAME='xxxxxxxxxx'
export AB_PASSWORD='xxxxxxxxxx'
OR
Save the required variables in an .env
file in the directory where this command line app will be executed.
AB_BASE_URL='https://xxxxxxxxxx'
AB_CLIENT_ID='xxxxxxxxxx'
AB_CLIENT_SECRET='xxxxxxxxxx'
Use dockerlogin
command to get the required credentials for pushing Extend App
container images to Extend App
container registry. The credentials can be used only
for a specific game namespace and Extend App
. For different game namespace and
Extend App
, you will need to use this command again.
extend-helper-cli dockerlogin --namespace <my-game-namespace> --app <my-extend-app> --login
After dockerlogin
command successfully, you can build your Extend App
,
tag the image according to the repository URL, and push it. For example:
# Build new image
docker build -t xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/accelbyte/justice/development/extend/<my-game-namespace>/<my-extend-app>:v1.0.0 .
# Push the image
docker push xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/accelbyte/justice/development/extend/<my-game-namespace>/<my-extend-app>:v1.0.0
This issue has something to do with the token size being larger than most credential managers can handle. Likely, you will encounter this in Windows OS.
Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The stub received bad data.`
Possible workaround:
# Remove all
C:\Program Files\Docker\Docker\resources\bin\docker-credential-*.exe
More discussions here.