Commit graph

308 commits

Author SHA1 Message Date
Collin Duncan
37bd1fea52
Changing build context of docker to match docker dir 2023-05-26 16:50:50 -05:00
Collin Duncan
e50356fbac
Removing checkout and specifying correct location of dockerfile 2023-05-26 16:49:36 -05:00
Collin Duncan
550637f483
Adding checkout step again because Dockerfile was not found 2023-05-26 16:47:28 -05:00
Collin Duncan
8ad2eb5000
Fixing docker image tag 2023-05-26 16:46:06 -05:00
Collin Duncan
e1eeb8d75d
Fixing username and password for GHCR 2023-05-26 16:44:33 -05:00
Collin Duncan
3546dc6f89
Changing pipeline to setup docker buildx correctly 2023-05-26 16:43:32 -05:00
Collin Duncan
6866bc9ca7
Attempting to speed up pipeline by using docker action 2023-05-26 16:40:01 -05:00
Collin Duncan
1e2933e780
Adding some changes to dockerfile to use env vars for ports and redis config 2023-05-26 16:34:50 -05:00
Collin Duncan
1def4de40c
Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
Collin Duncan
eb9991895a
Properly setting session when logging in or out 2023-05-23 15:09:18 -05:00
Collin Duncan
fa99ad7941
Changing how sessions are started and handled to fix issues with multiple reservation requests 2023-05-23 15:09:18 -05:00
Collin Duncan
26953c6c13
Reoptimization of docker (perhaps) 2023-05-23 15:09:18 -05:00
Collin Duncan
364f1db9d0
Changing runner test to use headless version of puppeteer 2023-05-23 15:09:18 -05:00
Collin Duncan
300ebe9e98
Updating reservation to round day diff down to allow for reservations up to 7.99 days (e.g. performing a reservation at 21.00 at 07.00 the week before) 2023-05-23 15:09:17 -05:00
Collin Duncan
7e3457cce3
Removing some default args I had recently changed due to an error when launching chromium 2023-05-23 15:09:17 -05:00
Collin Duncan
0879ec7333
Reverting optimizations to Dockerfile 2023-05-23 15:09:17 -05:00
Collin Duncan
a8927c655a
Dockerfile was incorrect, trying to fix this and expose a testing method on server as I am having issues with M1 processor with puppeteer as well 2023-05-23 15:09:17 -05:00
Collin Duncan
c0a8e61187
Updating dockerfile to ensure that chromium is part of app image 2023-05-23 15:09:17 -05:00
Collin Duncan
2eafe06d32
Readme updates for anyone who will read it (future me) 2023-05-23 15:09:17 -05:00
Collin Duncan
07d008aa3a
More docker optimizations! (hopefully) 2023-05-23 15:09:17 -05:00
Collin Duncan
0f0acd064e
Making the DB debug log a bit more concise 2023-05-23 15:09:17 -05:00
Collin Duncan
d1580028cf
Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving 2023-05-23 15:09:17 -05:00
Collin Duncan
377f8a06be
Updating docker-compose to use same volume approach as server 2023-05-23 15:09:17 -05:00
Collin Duncan
257595c565
Changing reservation to return results in ascending order 2023-05-23 15:09:16 -05:00
Collin Duncan
f84928a35b
Fixing mismatching database paths 2023-05-23 15:09:16 -05:00
Collin Duncan
3bef2a8819
Updating path to sqlite db file 2023-05-23 15:09:16 -05:00
Collin Duncan
6257ce0d38
Updating log to show formatted date 2023-05-23 15:09:16 -05:00
Collin Duncan
462a163082
Changing fetchByDate query to use the date of the reservation 2023-05-23 15:09:16 -05:00
Collin Duncan
76b887faba
Fixing fetchByDate query 2023-05-23 15:09:16 -05:00
Collin Duncan
548a393452
Optimizing dockerfile 2023-05-23 15:09:16 -05:00
Collin Duncan
caf6370727
Converting date function from MySQL to SQLite syntax 2023-05-23 15:09:16 -05:00
Collin Duncan
763d8b3833
Removing logger from dayjs wrapper 2023-05-23 15:09:16 -05:00
Collin Duncan
fb817610e6
Adding log to custom dayjs wrapper 2023-05-23 15:09:16 -05:00
Collin Duncan
5edf0eac68
Adding database debug log for database queries 2023-05-23 15:09:15 -05:00
Collin Duncan
1d5c75b252
Fixing issue with scheduler sending single reservation 2023-05-23 15:09:15 -05:00
Collin Duncan
3ae0e0b782
Logging out date query parameter 2023-05-23 15:09:15 -05:00
Collin Duncan
3219256961
Adding some additional logic to support multiple reservations during one runner request and allowing fetching reservations by date. Also changed cron to only run once at 7.00 and fetch all available reservations at that date 2023-05-23 15:09:15 -05:00
Collin Duncan
878006271f
Prettier fixes 2023-05-23 15:09:15 -05:00
Collin Duncan
69f7f50f5f
Fixing issue with router expecting a trailing slash for GET /cron 2023-05-23 15:09:15 -05:00
Collin Duncan
4e23288cbd
Adding status check for cron job 2023-05-23 15:09:15 -05:00
Collin Duncan
921aa9c65c
Adding some routers to http server that handle more requests to /reservations and /cron 2023-05-23 15:09:15 -05:00
Collin Duncan
6dfa37272e
Updating errors and logging in a lot of places. Changing some static methods of Reservation to instance methods 2023-05-23 15:09:15 -05:00
Collin Duncan
983c785029
Changing $ to ? for SQL prepared statement 2023-05-23 15:09:15 -05:00
Collin Duncan
b2ccbc2f7d
Deleting reservation after successful run 2023-05-23 15:09:15 -05:00
Collin Duncan
4d56881d12
Removing unique constraint from username column 2023-05-23 15:09:14 -05:00
Collin Duncan
9ef3009cc2
Changing logger to show url and method of route 2023-05-23 15:09:14 -05:00
Collin Duncan
ef013d4744
Adding label for GHCR image 2023-05-23 15:09:14 -05:00
Collin Duncan
eb90dcac93
Slowing down cron for now to run every ten minutes 2023-05-23 15:09:14 -05:00
Collin Duncan
18a643034a
Adding some more error logging and handling as well as a circuit breaker to stop cron from continuously fucking up 2023-05-23 15:09:14 -05:00
Collin Duncan
c027079303
Changing dockerfile to give permissions of workdir to node user sooner 2023-05-23 15:09:14 -05:00