Compare commits

..

8 commits

Author SHA1 Message Date
c5f5edda43 fix: Changes healthcheck to MariaDB compatible syntax
All checks were successful
Build Hello World Image / build (push) Successful in 25s
Build Hello World Image / build (pull_request) Successful in 22s
2025-10-12 00:01:28 +02:00
e411bf8b76 fix: Resolves issue with working directory
Some checks failed
Build Hello World Image / build (push) Failing after 1m8s
Build Hello World Image / build (pull_request) Failing after 12s
2025-10-11 23:53:55 +02:00
91384ff495 fix: CI uses Containerfile and directly tags package
Some checks failed
Build Hello World Image / build (push) Failing after 1m9s
Build Hello World Image / build (pull_request) Failing after 10s
2025-10-11 23:51:54 +02:00
b99799159e feat: Adds compose file
Some checks failed
Build Hello World Image / build (push) Failing after 7s
Build Hello World Image / build (pull_request) Failing after 9s
2025-10-11 21:48:38 +02:00
285de74afa refactor: Replaces PASSWD with PASSWORD 2025-10-11 21:48:07 +02:00
54c3528a76 chore: Removes unused example files 2025-10-11 21:47:48 +02:00
8555a6d241 feat: Adds CI/CD steps to build and push web container 2025-10-11 21:47:23 +02:00
4c7eeef1bf docs: Replaces on-premise instructions with container instructions 2025-10-11 21:46:54 +02:00
3 changed files with 0 additions and 17 deletions

View file

@ -2,4 +2,3 @@ FROM docker.io/library/php:cli
RUN docker-php-ext-install mysqli bcmath
COPY ./utils/* /opt/
COPY ./data_init/*.sql /opt/init/init.sql

View file

@ -1,2 +0,0 @@
podman run --network tor -it --env MYSQL_USER=root --env MYSQL_PASSWD=my-secret-pw --env MYSQL_DATABASE=exmple-database --env MARIADB_ROOT_PASSWORD=my-secret-pw -e MYSQL_HOST=some-mariadb -e MYSQL_DB=sunders -e CAMERA_USER=cam -e CAMERA_USER_PASSWD=asdf1234 -e CAMERA_SELECT_USER=cam -e CAMERA_SELECT_USER_PASSWD=asdf1234 localhost/sunders-utils:latest php /opt/create_db.php
podman run --network tor -it --env MYSQL_USER=root --env MYSQL_PASSWD=my-secret-pw --env MYSQL_DATABASE=exmple-database --env MARIADB_ROOT_PASSWORD=my-secret-pw -e MYSQL_HOST=some-mariadb -e MYSQL_DB=sunders -e CAMERA_USER=cam -e CAMERA_USER_PASSWD=asdf1234 -e CAMERA_SELECT_USER=cam -e CAMERA_SELECT_USER_PASSWD=asdf1234 localhost/sunders-data_init:latest

View file

@ -72,19 +72,5 @@ $conn->query("INSERT INTO sync_state (k, v) VALUES ('sequenceNumber', '0');");
echo "Database, users, and tables created successfully.\n";
$result = $conn -> query("SELECT * FROM position limit 10");
$table_count = $result -> num_rows;
printf("Result set has %d rows.\n", $table_count);
if ($table_count == 0){
$location = "/opt/init/init.sql";
$commands = file_get_contents($location);
$conn->multi_query($commands);
echo "Inserted data.\n";
}
$conn->close();
?>