Skip to content

chore: reduce build time by converting docker image to build with nix #9099

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

Merged
merged 37 commits into from
Aug 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3fb7c88
Add Docker image
kylecarbs Aug 15, 2023
bcc79ec
Try building the container in CI
kylecarbs Aug 15, 2023
bc1643a
Uncomment testing lines
kylecarbs Aug 15, 2023
3d58363
Trim image step
kylecarbs Aug 15, 2023
3d7539d
Hit 'em with a Docker load
kylecarbs Aug 15, 2023
faefce9
Oopsie!
kylecarbs Aug 15, 2023
35b546c
Add a tag and push!
kylecarbs Aug 15, 2023
f87b926
Fix image name 🤦
kylecarbs Aug 15, 2023
b8b476f
Fix sudo
kylecarbs Aug 15, 2023
43d8174
Fix target name
kylecarbs Aug 15, 2023
c058bcc
Build and push
kylecarbs Aug 15, 2023
2895f39
Fix login to docker hub
kylecarbs Aug 15, 2023
6496df8
Revert to Docker push
kylecarbs Aug 15, 2023
b9fb225
Fix PATH
kylecarbs Aug 17, 2023
2f35e09
Fix SHA
kylecarbs Aug 17, 2023
0e910b1
Fix ca certs
kylecarbs Aug 17, 2023
467918a
Fix ca certs
kylecarbs Aug 17, 2023
e6ec959
Fix coping files in
kylecarbs Aug 17, 2023
6890ee7
Fix docker init
kylecarbs Aug 17, 2023
d900e19
Fix Docker group and init
kylecarbs Aug 17, 2023
6b4578c
Add comments to our Nix
kylecarbs Aug 17, 2023
7cfa73f
Fix build stage
kylecarbs Aug 17, 2023
3437e07
Add some more comments
kylecarbs Aug 17, 2023
aed76a8
Remove old dogfood image files
kylecarbs Aug 17, 2023
b0f34cb
Tag and push with branch name
kylecarbs Aug 17, 2023
6c896ca
Merge branch 'main' into nixdev
kylecarbs Aug 17, 2023
a9f623c
Fix tag passing
kylecarbs Aug 17, 2023
986c1a8
Fix tag passing
kylecarbs Aug 17, 2023
600e9b2
Remove old pull triggers
kylecarbs Aug 17, 2023
c00fca7
Convert gen to use Nix
kylecarbs Aug 17, 2023
18f58c4
Add protobuf to the flake
kylecarbs Aug 17, 2023
eb95b64
Add prettier to the dev shell
kylecarbs Aug 17, 2023
24e998d
Swap to the faster Nix cache action
kylecarbs Aug 17, 2023
bb489cd
Add the correct yq
kylecarbs Aug 17, 2023
0b27d66
Fix gen
kylecarbs Aug 17, 2023
a361ca8
Add make to the flake
kylecarbs Aug 17, 2023
6c07b2a
Update extensions
kylecarbs Aug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix target name
  • Loading branch information
kylecarbs committed Aug 15, 2023
commit 43d8174025e8dfa6093fd886c8ca69ef589dffbe
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
chmod 4755 /usr/bin/sudo
'';
};
dockerImage = pkgs.dockerTools.streamLayeredImage {
devEnvImage = pkgs.dockerTools.streamLayeredImage {
name = "codercom/oss-dogfood";
tag = "testing";
fromImage = builtImage;
fromImage = intermediateDevEnvImage;

config = {
Env = [
Expand All @@ -115,7 +115,7 @@
in
{
packages = {
devEnvironmentDocker = dockerImage;
devEnvironmentDocker = devEnvImage;
# other packages you want to define for this system
};
defaultPackage = formatter; # or replace it with your desired default package.
Expand Down