mirror of
https://github.com/dbt-labs/dbt-core
synced 2025-12-17 19:31:34 +00:00
* initial hatch implmentation
* cleanup docs
* replacing makefile
* cleanup hatch commands to match adapters
reorganize more to match adapters setup
script comment
dont pip install
fix test commands
* changelog
improve changelog
* CI fix
* fix for env
* use a standard version file
* remove odd license logic
* fix bumpversion
* remove sha input
* more cleanup
* fix legacy build path
* define version for pyproject.toml
* use hatch hook for license
* remove tox
* ensure tests are split
* remove temp file for testing
* explicitly match old verion in pyproject.toml
* fix up testing
* get rid of bumpversion
* put dev_dependencies.txtin hatch
* setup.py is now dead
* set python version for local dev
* local dev fixes
* temp script to compare wheels
* parity with existing wheel builds
* Revert "temp script to compare wheels"
This reverts commit c31417a092.
* fix docker test file
73 lines
2.0 KiB
Docker
73 lines
2.0 KiB
Docker
##
|
|
# This dockerfile is used for local development and adapter testing only.
|
|
# See `/docker` for a generic and production-ready docker file
|
|
##
|
|
|
|
FROM ubuntu:22.04
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
software-properties-common gpg-agent \
|
|
&& add-apt-repository ppa:git-core/ppa -y \
|
|
&& apt-get dist-upgrade -y \
|
|
&& apt-get install -y --no-install-recommends \
|
|
netcat \
|
|
postgresql \
|
|
curl \
|
|
git \
|
|
ssh \
|
|
software-properties-common \
|
|
make \
|
|
build-essential \
|
|
ca-certificates \
|
|
libpq-dev \
|
|
libsasl2-dev \
|
|
libsasl2-2 \
|
|
libsasl2-modules-gssapi-mit \
|
|
libyaml-dev \
|
|
unixodbc-dev \
|
|
&& add-apt-repository ppa:deadsnakes/ppa \
|
|
&& apt-get install -y \
|
|
python-is-python3 \
|
|
python-dev-is-python3 \
|
|
python3-pip \
|
|
python3.10 \
|
|
python3.10-dev \
|
|
python3.10-venv \
|
|
python3.11 \
|
|
python3.11-dev \
|
|
python3.11-venv \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
ARG DOCKERIZE_VERSION=v0.6.1
|
|
RUN curl -LO https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
RUN pip3 install -U hatch wheel pre-commit
|
|
|
|
# These args are passed in via docker-compose, which reads then from the .env file.
|
|
# On Linux, run `make .env` to create the .env file for the current user.
|
|
# On MacOS and Windows, these can stay unset.
|
|
ARG USER_ID
|
|
ARG GROUP_ID
|
|
|
|
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
|
|
groupadd -g ${GROUP_ID} dbt_test_user && \
|
|
useradd -m -l -u ${USER_ID} -g ${GROUP_ID} dbt_test_user; \
|
|
else \
|
|
useradd -mU -l dbt_test_user; \
|
|
fi
|
|
RUN mkdir /usr/app && chown dbt_test_user /usr/app
|
|
|
|
WORKDIR /usr/app
|
|
VOLUME /usr/app
|
|
|
|
USER dbt_test_user
|
|
|
|
ENV PYTHONIOENCODING=utf-8
|
|
ENV LANG C.UTF-8
|