-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 899 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Run or bootstrap a docker-container containing nix with flake-support
bootstrap-test-push: bootstrap run run-derived-buildserver ci push
run:
## Just as an example we use nix-flakes to run a hello-world-app
docker run -t -v nix:/nix/ -v root:/root/ johannesloetzsch/nix-flake nix run nixpkgs#hello
run-derived-buildserver:
## Example of using tho docker-container to build your local projects via Dockerfile
## Note: `--privileged` is required for creating containers with dockerTools
docker build -t buildserver-example .
docker run --privileged -ti -v nix:/nix/ -v ${PWD}/out:/out/ buildserver-example
ls -l out
bootstrap:
nix build .#flake-docker
docker load < result
ci:
## Note: `circle-ci local` doesn't support workflows but only single jobs (defaults to build)
nix run nixpkgs#circleci-cli local execute
push:
docker login
docker push johannesloetzsch/nix-flake:latest