-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# This file is installed by FreeTDS if no file by the same | ||
# name is found in the installation directory. | ||
# | ||
# For information about the layout of this file and its settings, | ||
# see the freetds.conf manpage "man freetds.conf". | ||
|
||
# Global settings are overridden by those in a database | ||
# server specific section | ||
[global] | ||
# TDS protocol version | ||
tds version = auto | ||
|
||
# Whether to write a TDSDUMP file for diagnostic purposes | ||
# (setting this to /tmp is insecure on a multi-user system) | ||
; dump file = /tmp/freetds.log | ||
; debug flags = 0xffff | ||
|
||
# Command and connection timeouts | ||
; timeout = 10 | ||
; connect timeout = 10 | ||
|
||
# To reduce data sent from server for BLOBs (like TEXT or | ||
# IMAGE) try setting 'text size' to a reasonable limit | ||
; text size = 64512 | ||
|
||
# If you experience TLS handshake errors and are using openssl, | ||
# try adjusting the cipher list (don't surround in double or single quotes) | ||
# openssl ciphers = HIGH:!SSLv2:!aNULL:-DH | ||
|
||
# A typical Sybase server | ||
# [egServer50] | ||
# host = symachine.domain.com | ||
# port = 5000 | ||
# tds version = 5.0 | ||
|
||
# A typical Microsoft server | ||
[bbf] | ||
host = localhost | ||
port = 1433 | ||
tds version = 7.3 |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Image for spining the tdspool | ||
|
||
FROM ubuntu:focal as base | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
RUN apt update && apt install -y freetds-bin | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -Eeo pipefail | ||
|
||
|
||
# check to see if this file is being run or sourced from another script | ||
_is_sourced() { | ||
# https://unix.stackexchange.com/a/215279 | ||
[ "${#FUNCNAME[@]}" -ge 2 ] \ | ||
&& [ "${FUNCNAME[0]}" = '_is_sourced' ] \ | ||
&& [ "${FUNCNAME[1]}" = 'source' ] | ||
} | ||
|
||
_main(){ | ||
tdspool | ||
} | ||
|
||
if ! _is_sourced; then | ||
_main "$@" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[global] | ||
min pool conn = 5 | ||
max pool conn = 10 | ||
max member age = 120 | ||
|
||
|
||
[clientpool] | ||
server user = bbf | ||
server password = password | ||
server = bbf | ||
user = bbf | ||
database = bbf | ||
password = password | ||
max pool conn = 7 | ||
port = 5000 |
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