-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Connect build to a new Docker container #27175
Conversation
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.
LGTM.
Nice, this should be a lot faster to build and easier to maintain.
Remove unused packages and unused arguments
I tried to run this locally. Error log
I also get this message:
I think it might all be related to the |
If we can drop custom users shenanigans for the connect image, +1 to it. |
@ravicious Thanks for checking that. I think that this image "was designed" only to work as |
@codingllama I don't think we can. We use that image on Drone. We should not run this image as root for a few reasons:
In this case, I vote for just hardcoding the |
Currently, I'm getting some x86/arm issues on MacOS
I'll take a look at this tomorrow, but looks like this is a common problem: jordansissel/fpm#1801 |
@jakule hardcoding the UID seems alright to me, as at least we have a deterministic user. It's the "binding the local user" shenanigans that I tend to dislike. (Of course, not having to bother with users at all would be the ideal.) |
Re fpm issues, I just checked and it looks like I completely forgot about it when I was writing my comment, but whenever we build Connect in Linux VMs to test stuff, we have to remember about setting |
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.
Tested the dev build on Ubuntu 20.04, no problems.
I really like the idea of using node image as a base.
Oh yeah, I forgot to give a thumbs up to this. I feel like 80% of build failures of Connect is caused by the Node.js CDN returning an error. |
After moving the Connect to a separate Docker image #27175 we're able to use the latest ubuntu LTS on our build image. We're not using this image to produce any releases (only CI runs), so updating the image will have no effect on our releases.
* Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
* Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
* Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
After moving the Connect to a separate Docker image #27175 we're able to use the latest ubuntu LTS on our build image. We're not using this image to produce any releases (only CI runs), so updating the image will have no effect on our releases.
* Update base Ubuntu image to 20.04 (#26905) * Update base Ubuntu image to 22.04 * Revert the ubuntu image to 20.04 * Update the Dockerfile comment * Add CentOS 7 note * Add Connect note * Move Connect build to a new Docker container (#27175) * Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
* Update base Ubuntu image to 20.04 (#26905) * Update base Ubuntu image to 22.04 * Revert the ubuntu image to 20.04 * Update the Dockerfile comment * Add CentOS 7 note * Add Connect note * Move Connect build to a new Docker container (#27175) * Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
* Update base Ubuntu image to 20.04 (#26905) * Update base Ubuntu image to 22.04 * Revert the ubuntu image to 20.04 * Update the Dockerfile comment * Add CentOS 7 note * Add Connect note * Move Connect build to a new Docker container (#27175) * Move Connect build to a new Docker container * Update comments * Update comments Remove unused packages and unused arguments * Always use UID=1000 for building teleterm.
This PR moves the Connect build to a new docker image. This will allow us to use the different base image for Connect and our CI, as at that point, the
buildbox
will be used only by our CI.Dev build: https://drone.platform.teleport.sh/gravitational/teleport/24668/5/4
After this PR is merged, I'll create another PR upgrading the
buildbox
to useubuntu:latest
. I want to keep them separate for a cleaner history.Contributes to #26856