AngularJS web application to manage IoT devices via THiNX API.
You need to BUILD YOUR OWN CONSOLE Docker image, because the build injects various static variables specific for your environment (e.g. API Keys) into HTML on build (see .circleci/config.yml for list of required build-args until this is documented).
For that reason, no pre-built public thinxcloud/console Docker Hub Image is/will be available.
You can build your own image using docker build -t yourname\console
and following environment variables will be injected to static HTML on build:
Variable name | Example | Purpose | Default |
---|---|---|---|
LANDING_HOSTNAME |
https://thinx.yourdomain.tld | Link to landing page | https://thinx.cloud |
API_HOSTNAME |
https://api.thinx.yourdomain.tld | Link to API | https://api.thinx.cloud |
API_BASEURL |
api.thinx.yourdomain.tld | Link to API without protocol | api.thinx.cloud |
WEB_HOSTNAME |
console.thinx.yourdomain.tld | Link to Console without protocol | rtm.thinx.cloud |
ENTERPRISE |
true or false | disables Google/GitHub SSO | false |
ENVIRONMENT |
production | Console build config | development |
ROLLBAR_ACCESS_TOKEN |
- | Integration | see Rollbar |
GOOGLE_ANALYTICS_ID |
- | Integration | see GAI |
CRISP_WEBSITE_ID |
- | Integration | see Crisp.io |
Security Notice: Do not push build results to public Docker Hub repository or your envinronment variables might become public. Do not store environment variables in your repo's fork.
## Testing in Docker
Example:
docker run -ti -v $(pwd):/var/work thinxcloud/console-build-env:vue cd /var/work && npm run test:unit