Skip to main content
Glama
docker-entrypoint.sh799 B
#!/bin/sh # shellcheck disable=SC3043 set -eu main() { write_docker_credentials exec /usr/local/bin/.veritech "$@" } write_docker_credentials() { ensure_env_var DOCKER_AUTHENTICATION "${DOCKER_AUTHENTICATION:-}" local auth_key="https://index.docker.io/v1/" mkdir -p "$HOME/.docker" chmod 0700 "$HOME/.docker" cat <<-EOF >"$HOME/.docker/config.json" {"auths":{"$auth_key":{"auth":"${DOCKER_AUTHENTICATION:-}"}}} EOF chmod 0600 "$HOME/.docker/config.json" # Remove environment variables from veritech's environment unset DOCKER_AUTHENTICATION } ensure_env_var() { local name="$1" local value="$2" if [ -z "$value" ]; then echo "xxx" >&2 echo "xxx Missing required environment variable: '$name', aborting" >&2 echo "xxx" >&2 exit 1 fi } main "$@"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server