Skip to content

Commit 7cfa73f

Browse files
committed
Fix build stage
1 parent 6b4578c commit 7cfa73f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/dogfood.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2929
nix_path: nixpkgs=channel:nixos-unstable
3030

31-
- run: nix build .#devEnvironmentDocker && ./result | docker load
31+
- run: nix build .#devEnvImage && ./result | docker load
3232

3333
- name: Login to DockerHub
3434
uses: docker/login-action@v2

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@
101101
"GOPRIVATE=coder.com,cdr.dev,go.coder.com,github.com/cdr,github.com/coder"
102102
# Increase memory allocation to NodeJS
103103
"NODE_OPTIONS=--max_old_space_size=8192"
104+
"TERM=xterm-256color"
104105
];
105-
# Builds a layered image with all the tools included!
106+
# Builds our development environment image with all the tools included.
107+
# Using Nix instead of Docker is **significantly** faster. This _build_
108+
# doesn't really build anything, it just copies pre-built binaries into
109+
# a container and adds them to the $PATH.
106110
devEnvImage = pkgs.dockerTools.streamLayeredImage {
107111
name = "codercom/oss-dogfood";
108112
tag = "testing";
@@ -128,6 +132,12 @@
128132
session required pam_unix.so
129133
''
130134
)
135+
# The default Nix config!
136+
(
137+
pkgs.writeTextDir "etc/nix/nix.conf" ''
138+
experimental-features = nix-command flakes
139+
''
140+
)
131141
# This is the debian script for managing Docker with `sudo service docker ...`.
132142
(
133143
pkgs.writeTextFile {

0 commit comments

Comments
 (0)