-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add String siez liimt to SQLAlchemy models
Fixed a bug where MySQL/MariaDB would not write to interactions table since VARCHAR requires a fixed length size
- Loading branch information
Showing
8 changed files
with
118 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,71 @@ | ||
[output] | ||
# ------------------ experimental | ||
# Experimental settings for output. Not yet working. | ||
#[output] | ||
# otherwise recording via script session will be enforced | ||
enforce_script = false | ||
#enforce_script = false | ||
# file with output(s) of regular commands (e.g. ls, echo, etc.) | ||
file = "/tmp/command-line-assistant/output.txt" | ||
#file = "/tmp/command-line-assistant/output.txt" | ||
# Keep non-empty if your file contains only output of commands (not prompt itself) | ||
prompt_separator = "$" | ||
#prompt_separator = "$" | ||
# ------------------ experimental | ||
|
||
# History management configuration | ||
[history] | ||
# If the history for all conversation should be enabled or not. By default, | ||
# this is enabled and will store in a database defined under | ||
# [history.database]. The conversation is stored per-user. | ||
enabled = true | ||
|
||
# History Database settings. By default, sqlite is used. | ||
[history.database] | ||
# Available types for databases are: sqlite, postgresql and mysql. Mariadb can | ||
# be used as well with "mysql" type. | ||
type = "sqlite" | ||
# Connection string refers to the path where the sqlite database will be | ||
# placed. Only available with sqlite type. | ||
connection_string = "/var/lib/command-line-assistant/history.db" | ||
|
||
# In order to use postgresql, uncomment the following settings: | ||
# [history.database] | ||
# type = "postgresql" | ||
# host = "localhost" | ||
# port = "5432" | ||
# database = "history" | ||
# user = "your-user" | ||
# password = "your-password" | ||
|
||
# Or, to use mysql, uncomment the following: | ||
# [history.database] | ||
# type = "mysql" | ||
# host = "localhost" | ||
# port = "3306" | ||
# database = "history" | ||
# user = "your-user" | ||
# password = "your-password" | ||
|
||
# Backend settings for communicating with the external API. | ||
[backend] | ||
# The endpoint points to an API server. | ||
endpoint = "http://localhost:8080" | ||
|
||
# Configure authentication settings for backend | ||
[backend.auth] | ||
# cert_file = "/etc/pki/consumer/cert.pem" | ||
# key_file = "/etc/pki/consumer/key.pem" | ||
# verify_ssl = true | ||
|
||
# The path to the certificate file generated by RHSM. | ||
cert_file = "/etc/pki/consumer/cert.pem" | ||
# The path to the key file generated by RHSM. | ||
key_file = "/etc/pki/consumer/key.pem" | ||
# If SSL verification should be set. Don't disabled tihs for production server. | ||
verify_ssl = true | ||
|
||
# Logging configuration settings | ||
[logging] | ||
level = "DEBUG" | ||
responses = true # Global setting - don't log responses by default | ||
# The default logging level for all messages logged by CLAD. | ||
level = "INFO" | ||
# Global setting to enable logging responses in an audit file and journald | ||
responses = true | ||
# Global setting to enable logging question in an audit file and journald | ||
question = true # Global setting - don't log questions by default | ||
|
||
# User-specific settings | ||
# User-specific settings that can override the global settings based on user name. | ||
# Note: The user must exist in order for this to work. | ||
# users.admin = { responses = true, question = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
version: "3" | ||
|
||
services: | ||
mock-server: | ||
image: mockoon/cli:latest | ||
command: ["--data", "data", "--port", "3000"] | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -f http://localhost:3000/your-healthcheck-route || exit 1"] | ||
interval: 30s | ||
timeout: 5s | ||
retries: 2 | ||
start_period: 10s | ||
postgres: | ||
image: postgres | ||
shm_size: 128mb | ||
environment: | ||
POSTGRES_PASSWORD: cla | ||
POSTGRES_DB: history | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- ./mocks/mockoon/routes.json:/data:Z | ||
networks: | ||
- demo | ||
- 5432:5432 | ||
|
||
networks: | ||
demo: | ||
driver: bridge | ||
mariadb: | ||
image: mariadb | ||
environment: | ||
MARIADB_ROOT_PASSWORD: cla | ||
MARIADB_DATABASE: history | ||
ports: | ||
- 3306:3306 | ||
expose: | ||
- 3306 | ||
|
||
mysql: | ||
image: mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: cla | ||
MYSQL_DATABASE: history | ||
ports: | ||
- 3306:3306 | ||
expose: | ||
- 3306 | ||
|
||
# Inspect DB | ||
adminer: | ||
image: adminer | ||
restart: always | ||
ports: | ||
- 8080:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters