-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Jeffery
committed
Jun 26, 2023
1 parent
38c9b34
commit ae788a2
Showing
9 changed files
with
366 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Building | ||
|
||
## Datastore binaries | ||
|
||
We assume that you have a working `nix` install, with the `nix-command` and `flakes` features enabled. | ||
This can be enabled by creating a file at `~/.config/nix/nix.conf` with the content `experimental-features = nix-command flakes` or adding the argument `--experimental-features "nix-command flakes"` to each `nix` command shown here. | ||
|
||
To build _mergeable etcd_ and _dismerge_, run the following from the root: | ||
```sh | ||
nix build .#mergeable-etcd | ||
nix build .#dismerge | ||
``` | ||
Each command will produce a `result` symbolic link to the build result, you can have a look around and run things directly from there if desired (though not recommended). | ||
Builds are cached so running the build command again should be cheap and will reinstate the `result` link for that build. | ||
|
||
To build the client for _dismerge_ run: | ||
```sh | ||
nix build .#dismerge-client | ||
``` | ||
|
||
## Docker images | ||
|
||
This assumes that you have a working docker install that the current user can use. | ||
|
||
To build and load the images for this repository (_mergeable etcd_, _dismerge_, _etcd_, _bencher_) run the following: | ||
```sh | ||
make docker-load | ||
``` | ||
This will build each docker image in turn and load them into docker. | ||
They will have names of the form `jeffas/<target>` where target is one of `mergeable-etcd`, `dismerge`, `etcd`, `bencher`. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.