mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/opsec-blogposts.git
synced 2025-07-02 06:36:40 +00:00
showcase the build setps
This commit is contained in:
parent
176ccc7526
commit
0075138342
1 changed files with 35 additions and 2 deletions
|
@ -303,7 +303,40 @@ You will then be able to run simplex-alerter:
|
|||
|
||||
#### With Docker
|
||||
|
||||
To build using docker please use the instructions in the repository README.md
|
||||
To build using docker please use the instructions in the repository README.md. As of this writing here is the execution flow. As time passes those instruction might deviate from what's in the repository. In this case please follow the README
|
||||
|
||||
[user@devnode:~/simplex-alerter]$ docker build . -t builder
|
||||
[+] Building 1.0s (6/6) FINISHED docker:default
|
||||
=> [internal] load build definition from Dockerfile 0.0s
|
||||
=> => transferring dockerfile: 196B 0.0s
|
||||
=> [internal] load metadata for docker.io/nixos/nix:latest 0.9s
|
||||
=> [internal] load .dockerignore 0.0s
|
||||
=> => transferring context: 2B 0.0s
|
||||
=> [1/2] FROM docker.io/nixos/nix:latest@sha256:016f07dddeb5feabeb75c360edb840ff4df3b89c7e0ca7ff1faea6240ce8375a 0.0s
|
||||
=> CACHED [2/2] WORKDIR /src 0.0s
|
||||
=> exporting to image 0.0s
|
||||
=> => exporting layers 0.0s
|
||||
=> => writing image sha256:d4561e76df38a12c18d457cddc769f4a1b93b8f79cfec139eb721b538d4abc52 0.0s
|
||||
=> => naming to docker.io/library/builder 0.0s
|
||||
|
||||
1 warning found (use docker --debug to expand):
|
||||
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 7)
|
||||
|
||||
|
||||
[user@devnode:~/simplex-alerter]$ docker run --rm -v $(pwd):/src builder
|
||||
unpacking 'github:snowfallorg/lib/02d941739f98a09e81f3d2d9b3ab08918958beac?narHash=sha256-4i9nAJEZFv7vZMmrE0YG55I3Ggrtfo5/T07JEpEZ/RM%3D' into the Git cache...
|
||||
copying path '/nix/store/7z0c39jdpwfp86vbibi8q2l0pa22y77s-source' from 'https://cache.nixos.org'...
|
||||
unpacking 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8?narHash=sha256-Z%2Bs0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh%2BE%3D' into the Git cache..
|
||||
...
|
||||
...
|
||||
building '/nix/store/ac1585iniq202nzs7py74hginx6m4a0c-docker-layer-simplex-alerter.drv'...
|
||||
building '/nix/store/yyn5inp2im8gjhm4k353cwpx7hjs6rcy-runtime-deps.drv'...
|
||||
building '/nix/store/5dfra7hdrr9bv0ccwwkcfp7p27ismg1p-docker-image-simplex-alerter.tar.gz.drv'...
|
||||
|
||||
[user@devnode:~/simplex-alerter]$ docker load < simplex-alerter.tar.gz
|
||||
72e799e76141: Loading layer [==================================================>] 316.8MB/316.8MB
|
||||
The image simplex-alerter:latest already exists, renaming the old one with ID sha256:aa364ddeb24615707a45211148a7669ef082d9cb0bb9e1327ea3376ab845503d to empty string
|
||||
Loaded image: simplex-alerter:latest
|
||||
|
||||
|
||||
Do take note of the following:
|
||||
|
@ -496,7 +529,7 @@ To turn the simplex-chat and the alerter into systemd services, you only need to
|
|||
|
||||
```text
|
||||
vim /etc/systemd/system/alerter.service
|
||||
cat /etc/systemd/system/xxx
|
||||
cat /etc/systemd/system/alerter.service
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue