Server that will track device activations
969
Server that receives activations and pings submitted by Endless OS clients running eos-phone-home and queues them for consumption by azafea.
JSON only
Schema:
{
'type': 'object',
'properties': {
'image': { 'type': 'string' },
'vendor': { 'type': 'string' },
'product': { 'type': 'string' },
'serial': { 'type': 'string' },
'release': { 'type': 'string' },
'live': { 'type': 'boolean' },
'dualboot':{ 'type': 'boolean' },
'mac_hash':{ 'type': 'integer',
'minimum': 0,
'maximum': 2 ** 32 - 1 }
},
'required': ['image',
'vendor',
'product',
'release']
}
NODE_ENV=test npm installnpm startnpm testYou can use Docker to run and test the project.
To test your changes in a reproducible environment, you can do the following:
Install and run Redis:
$ docker pull redis:latest
$ docker run --network=host redis:latest
Build the test image:
$ docker build --tag=eos-activation-server .
Start the server:
$ docker run --network=host --rm --name=eos-activation-server eos-activation-server
Run the tests (in a different window):
$ docker exec --tty --interactive eos-activation-server npm test
Content type
Image
Digest
sha256:d31f0b522…
Size
183.8 MB
Last updated
almost 2 years ago
docker pull endlessm/eos-activation-server