-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-2412] [Bug] The current Dockerfile.test is not built #7352
Comments
Thanks for reporting this @eshkinkot ! I can confirm that neither of these worked for me either with docker-compose run --rm test tox -e py
# this is equivalent to above
make unit USE_DOCKER=true Since Ubuntu 23.04 (Lunar Lobster) is still in beta for another week and Ubuntu 22.04.2 LTS (Jammy Jellyfish) is a long-term supported release, I wonder if it makes most sense to solve this by reverting #6865 and keeping I didn't try out |
No :-) But it can be fixed: diff --git a/Dockerfile.test b/Dockerfile.test
index 46effbf3c..fde36d9f4 100644
--- a/Dockerfile.test
+++ b/Dockerfile.test
@@ -3,13 +3,13 @@
# See `/docker` for a generic and production-ready docker file
##
-FROM ubuntu:23.04
+FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
- software-properties-common \
+ 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 \
@@ -30,13 +30,9 @@ RUN apt-get update \
unixodbc-dev \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get install -y \
- python \
- python-dev \
- python3-pip \
- python3.6 \
- python3.6-dev \
+ python-is-python3 \
+ python-dev-is-python3 \
python3-pip \
- python3.6-venv \
python3.7 \
python3.7-dev \
python3.7-venv \ with this patch it builds correctly and
works as expected. |
Excellent @eshkinkot ! Thanks for opening up that PR 🏅 |
Is this a new bug in dbt-core?
Current Behavior
This change #6865 does not work and the modified Dockerfile.test is no longer built.
Expected Behavior
docker-compose run --rm test bash -l
build and run successfullySteps To Reproduce
docker-compose run --rm test bash -l
Relevant log output
add-apt-repository (realy it is gpg) does not work without gpg-agent in first run:
apt install netcat
does not install netcat because Ubuntu 23.04 changes defaults:Installing python from ppa:deadsnakes/ppa does not work because deadsnakes does not support Ubuntu 23.04:
From https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa:
I can fix gpg and netcat install, but I dont know what I must do with deadsnakes.
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: