Commit graph

18 commits

Author SHA1 Message Date
ec84f2dfc7 Implement health test for orders endpoint 2022-12-24 13:33:14 +01:00
aecdedc0e0 Fix sending wrong status code after delete 2022-12-22 17:42:14 +01:00
9f5d226309 Fix returning wrong status if container is not found on delete
Kinda hacky to check if the error message contains a hint for the case.
2022-12-22 17:31:04 +01:00
85fe52d851 Fix stop() not being a function
We need to obtain a Container object to use the function.
2022-12-22 17:30:23 +01:00
3fe53c7bc2 Fix checking for wrong query param on order create 2022-12-22 17:27:12 +01:00
9413bf7575 Fix express route building
Misinterpreted the documentation. It is just a way to group methods
with the same path...
2022-12-22 17:07:20 +01:00
d30942078c Remove param to enable defining a dockerClient inside the scope 2022-12-22 17:04:57 +01:00
9611504e17 Add missing fs import 2022-12-22 17:04:21 +01:00
e82ba84ee1 Fix new-line ending in js files 2022-12-22 13:16:24 +01:00
8808f8e65f Remove js file reserved for the interaction with Caddy
We want to use the tls-on-demand feature with labels for the routing.
The plan is to use the container name as hostname for the reverse-proxy.
2022-12-22 13:13:29 +01:00
1ff0b5b7f4 Fix not waiting for the container to start after creating it 2022-12-22 13:12:22 +01:00
081ecd29cf Improve js doc
Some functions needed some discription and the delete method of the
DockerClient had no doc.
2022-12-22 13:09:31 +01:00
b3e5612bf5 Move init docker client initialization to the init function
Including checking if docker is running on the machine.
2022-12-22 13:05:53 +01:00
e5761dc3a2 Add endpoint to delete a deployment 2022-12-22 13:02:01 +01:00
39dfe07d86 Add product key label when searching for containers 2022-12-22 13:01:30 +01:00
3fb1a26e9f Change API call to create a new deployment
Using the router to easier group calls and us the order id as part of
the path. The plan is to use the order id as id for an deployment.
2022-12-22 12:26:48 +01:00
05eb696f95 Remove console logging when starting a new deployment 2022-12-22 12:26:08 +01:00
97f50e6073 Init 2022-12-15 18:22:02 +01:00