Switch to using Docker

This commit refactors all code in this project to make use of docker.
This has not yet been documented properly.
This commit is contained in:
Tom Wiesing 2020-06-26 12:54:47 +02:00
parent 9ece280e72
commit 76ef5d8e68
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
43 changed files with 943 additions and 545 deletions

View file

@ -0,0 +1,28 @@
-- create the database if it doesn't exist yet
CREATE DATABASE IF NOT EXISTS `${DATABASE}`;
-- use the database we just created
USE `${DATABASE}`;
-- create the bookkeeping table
CREATE TABLE IF NOT EXISTS `${TABLE}`(
-- automatically created fields
pk INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
created DATETIME DEFAULT CURRENT_TIMESTAMP,
-- slug of the website
slug TEXT NOT NULL UNIQUE,
-- local file path
filesystem_base TEXT NOT NULL,
-- sql access credentials
sql_database TEXT NOT NULL,
sql_user TEXT NOT NULL,
sql_password TEXT NOT NULL,
-- graphdb credentials
graphdb_repository TEXT NOT NULL,
graphdb_user TEXT NOT NULL,
graphdb_password TEXT NOT NULL
);