-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Docker *-dev tag's are not targetting the dev stage of Dockerfile #27111
Comments
I think the fix is super simple: use this variable. Not sure how to test this fix I created, if anyone can point me in the right direction? I tested the |
Just for reference, a related slack discussion: https://apache-superset.slack.com/archives/C015WAZL0KH/p1707628146437669 There's a unit test for this in |
Thanks, I fixed that one just now. |
I just created a PR, when a maintainer approves the workflow for building the dev image ( |
Thanks for the PR @lodu , merged! |
and let me regenerate the |
Not sure if we should close this now since the PR merged, or close it when the builds are complete, but feel free to close when it's appropriate, and thanks for the help here @mistercrunch ! |
Should be all set, closing! |
Bug description
the Dockerfile contains a dev stage but this is not the stage that is targeted when building and releasing the *-dev tags (e.g.: master-dev on Docker Hub.
When looking on the image layers from the Superset Docker image with tag
master-dev
: Layer 29 corresponds to Dockerfile L103 and Layer 30 corresponds to L141 . Anything between those is not present in the *-dev containers (which is the entire dev stage). For example: package libx11-xcb1 does not exist (docker run apache/superset:3.1.0-dev apk -e info libx11-xcb1
)How to reproduce the bug
We first noticed this bug due to geckodriver not working on the *-dev images, so I am using that as an example.
docker run apache/superset:3.1.0-dev which geckodriver
this does not return a value, but as per docs it should.
Now what we expect:
dev
stage as the target stage:docker build -t superset-dev:latest --target dev .
(you can remove a lot of the frontend stuff to increase building speed fyi).docker run superset-dev:latest which geckodriver
, this returns/usr/local/bin/geckodriver
(as expected).Screenshots/recordings
Result:
![image](https://private-user-images.githubusercontent.com/48859312/304754635-2328dedf-ebc5-4a2d-84e3-32044977ad5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDk4MDUsIm5iZiI6MTczOTA0OTUwNSwicGF0aCI6Ii80ODg1OTMxMi8zMDQ3NTQ2MzUtMjMyOGRlZGYtZWJjNS00YTJkLTg0ZTMtMzIwNDQ5NzdhZDVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIxMTgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4NTg4NjBmNzgxYTFjNDIwZWE3NTc5YWVjMjc4ZjAwMWIzODBkMjA2ZTBlNzFmOTczZWMyYzAwOGNmY2I4NzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KZDL688VxVdN7xSd6TMs2360Nm4JVeldGjdc4WWN4GY)
Other packages that should be installed on target dev stage.
![image](https://private-user-images.githubusercontent.com/48859312/304754829-23bc6ce8-3961-40c9-ab9d-aa59f3cdc878.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDk4MDUsIm5iZiI6MTczOTA0OTUwNSwicGF0aCI6Ii80ODg1OTMxMi8zMDQ3NTQ4MjktMjNiYzZjZTgtMzk2MS00MGM5LWFiOWQtYWE1OWYzY2RjODc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIxMTgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkYzk2ZjhjZTA4MGUzZTFhYmIwNjIwM2JhMTZkNTNmZjVjMWE5YTIxM2Q0NWM3ZTU1M2EwNzUyODE2NDkzODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VqmRMwyu2oDOiziwcletm9vJWikWQ19ljjgC_2xko40)
Expected results:
![image](https://private-user-images.githubusercontent.com/48859312/304755161-d81d1114-7832-4cef-8765-99ed2870500f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDk4MDUsIm5iZiI6MTczOTA0OTUwNSwicGF0aCI6Ii80ODg1OTMxMi8zMDQ3NTUxNjEtZDgxZDExMTQtNzgzMi00Y2VmLTg3NjUtOTllZDI4NzA1MDBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIxMTgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjOGMyZGNhM2JhNmM4NjA2ZjQ1ZTJhNWZlMzgwNDc1NmRiZTNkMTM0ZjM3NWU0NDE3NmNlOWRkZDdkZDljNzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._dVQOUmoJeF3xX0b7DMQjmyqSFGvX-fg2KwlrmN-WjQ)
![image](https://private-user-images.githubusercontent.com/48859312/304757322-d6cf52a3-e880-4589-b776-2986fd6fcfce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDk4MDUsIm5iZiI6MTczOTA0OTUwNSwicGF0aCI6Ii80ODg1OTMxMi8zMDQ3NTczMjItZDZjZjUyYTMtZTg4MC00NTg5LWI3NzYtMjk4NmZkNmZjZmNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIxMTgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjNDE5ZjcwMmM0OGZlNmIxMjEyNjE3YTQ0YmUzN2Q0MTNkMWVlMjIzMGE4NTVlNzJmZmFlZTg0NDYyOWJmNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YZb2x5Gx0JiYLN1JztqvADpSBb6hNCs6Z2Fk8mVj2_U)
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Not applicable
Additional context
Slack discussion. Earlier messages in thread are not that relevant.
Checklist
The text was updated successfully, but these errors were encountered: