-
Notifications
You must be signed in to change notification settings - Fork 1
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
Move testing outside Docker, simplify Dockerfile #508
Conversation
TODO: do a once-over of our documentation and update what's now outdated |
Now that we run tests outside of the Docker container, we now only need two stages in our multistage build: - one stage to build Python dependencies - another stage to copy in the dependencies and run the application
Also, alpha sort make rules
87f8fd8
to
2dce047
Compare
2dce047
to
be58863
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah! Docker is way simpler with this change--thanks @grahamalama !
Thanks for the review @bsieber-mozilla! @bkochendorfer, care to give this a once-over before we ship this to staging since this is a pretty big change to how we build the container? |
target: "development" | ||
tags: ghcr.io/${{ github.repository }}:${{ github.sha }} | ||
|
||
python-version: "3.10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will dependabot notice and be able to update this python-version; or is that something for us to keep in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is something we'll just have to remember, unfortunately. But it would definitely be nice if we could keep these things in sync. Maybe there's a way 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Is there a reason you wanted to move the scripts into bin?
@bkochendorfer for moving scripts, I just wanted to consolidate all scripts into one place. In fact, in a future PR, I might move scripts from As for why I chose |
Addresses #462
In this PR, we move testing outside of Docker. Since the Dockerfile is now only responsible for building a production container, we also simplify the Dockerfile accordingly.