-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Martlark/2.1.1
2.1.1 fix json with sqlite - add some testing begininings for Dockerfile
- Loading branch information
Showing
10 changed files
with
73 additions
and
14 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# include file | ||
include VERSION | ||
|
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 @@ | ||
2.1.1 |
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
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,23 @@ | ||
FROM python:3.10 | ||
# runs from this dir | ||
WORKDIR /app | ||
# upgrade pip | ||
RUN pip install -U pip | ||
|
||
# mssql driver install | ||
COPY ./test/install-mssql-17-driver.sh /tmp | ||
RUN bash /tmp/install-mssql-17-driver.sh | ||
|
||
# engines | ||
COPY ./test/engine_requirements.txt /tmp | ||
RUN pip install -r /tmp/engine_requirements.txt | ||
|
||
# copy over our app code | ||
COPY . /app | ||
|
||
RUN mkdir -p /persist | ||
RUN apt-get update | ||
|
||
# start server | ||
|
||
ENTRYPOINT [ "bash", "resources/entrypoint.sh" ] |
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,11 @@ | ||
# engines for connecting | ||
# postgres | ||
psycopg2==2.9.2 | ||
# mssql | ||
pyodbc | ||
# mysql | ||
PyMySQL | ||
cryptography | ||
# dynamo db | ||
boto3 | ||
|
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 @@ | ||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | ||
|
||
#Download appropriate package for the OS version | ||
#Choose only ONE of the following, corresponding to your OS version | ||
|
||
#Debian 10 | ||
curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list | ||
|
||
|
||
apt-get update | ||
ACCEPT_EULA=Y apt-get install -y msodbcsql17 | ||
# optional: for bcp and sqlcmd | ||
ACCEPT_EULA=Y apt-get install -y mssql-tools | ||
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc | ||
source ~/.bashrc | ||
# optional: for unixODBC development headers | ||
#apt-get install -y unixodbc-dev | ||
# optional: kerberos library for debian-slim distributions | ||
#apt-get install -y libgssapi-krb5-2 |