forked from sodadata/soda-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker x86 workaround for running soda-sql on arm based machines (sod…
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.7 | ||
|
||
RUN apt-get update && apt-get -y install gcc libsasl2-dev python-dev unixodbc-dev | ||
|
||
RUN mkdir /app | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --upgrade pip | ||
|
||
COPY . . | ||
|
||
RUN pip install "$(cat dev-requirements.in | grep pip-tools)" && \ | ||
pip install -r dev-requirements.txt && \ | ||
pip install -r requirements.txt | ||
|
||
ENTRYPOINT [ "soda" ] | ||
CMD [ "scan" ] |
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,9 @@ | ||
# docker-compose.yml | ||
version: "3.8" | ||
services: | ||
soda: | ||
build: | ||
context: . | ||
platform: "linux/amd64" | ||
volumes: | ||
- .:/app |
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 @@ | ||
#!/usr/bin/env bash | ||
docker compose -f docker-compose-arm.yml -p soda-sql build soda |
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 @@ | ||
#!/usr/bin/env bash | ||
docker compose -f docker-compose-arm.yml -p soda-sql run soda scan "$@" |