File tree Expand file tree Collapse file tree 7 files changed +324
-46
lines changed Expand file tree Collapse file tree 7 files changed +324
-46
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,39 @@ services:
4
4
secrets :
5
5
- agent-wallet
6
6
- secrets
7
+ - source : docker
8
+ target : /run/secrets/docker/config.json
7
9
environment :
8
10
- ANTI_MPFS_HOST=https://mpfs.plutimus.com
9
11
- ANTI_WALLET_FILE=/run/secrets/agent-wallet
10
12
- ANTI_TOKEN_ID=21c523c3b4565f1fc1ad7e54e82ca976f60997d8e7e9946826813fabf341069b
11
13
- ANTI_SECRETS_FILE=/run/secrets/secrets
12
14
- ANTI_WAIT=240
15
+ - DOCKER_CONFIG=/run/secrets/docker
13
16
restart :
14
17
always
18
+ privileged : true
15
19
volumes :
16
20
- tmp:/tmp
21
+ # Mount CA certificates, curl seems not to find them when the pkgs.cacert is included in the image
22
+ - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
23
+ - /var/run/docker.sock:/var/run/docker.sock
17
24
secrets :
18
25
agent-wallet :
19
26
file : /secrets/anti-agent/agent.json # Path to a file containing the wallet
20
27
secrets :
21
28
file : /secrets/anti-agent/secrets.yaml # Path to a file containing the secrets
29
+ docker :
30
+ file : /secrets/anti-agent/docker/config.json # Path to a file containing Docker config (for private registries)
22
31
23
32
volumes :
24
33
tmp :
25
34
26
35
# ## Keys of the secrets.yaml file:
27
- # agentEmail:
28
- # agentEmailPassword:
29
- # githubPAT:
36
+ # agentEmail: # Email address where url links are received
37
+ # agentEmailPassword: # App password for the email account
38
+ # githubPAT: # GitHub Personal Access Token
39
+ # trustedRequesters:
40
+ # - requester1
41
+ # - requester2
42
+ # antithesisPassword: # Password for Antithesis registry and Docker image
Original file line number Diff line number Diff line change @@ -130,26 +130,33 @@ stop-mpfs:
130
130
#!/usr/bin/env bash
131
131
docker compose -p " anti-testing" -f test-E2E/ fixtures/ docker-compose.yml down
132
132
133
- start -anti-agent bg = " false" :
133
+ build -anti-agent:
134
134
#!/usr/bin/env bash
135
135
nix build .#anti-agent-docker-image
136
136
docker load < result
137
137
version=$(nix eval --raw .#version)
138
138
docker image tag cardano-foundation/ anti-agent:" $version" cardano-foundation/ anti-agent:latest
139
- # shellcheck disable=SC2050
139
+
140
+ start-anti-agent bg = " false":
141
+ #!/usr/bin/env bash
140
142
if [[ ' {{ bg }} ' == " true" ]]; then
141
143
docker compose -f CD/ anti-agent/ docker-compose.yaml up -d
142
144
else
143
145
docker compose -f CD/ anti-agent/ docker-compose.yaml up
144
146
fi
145
147
148
+ build-and-start-anti-agent bg = " false":
149
+ #!/usr/bin/env bash
150
+ just build-anti-agent
151
+ just start-anti-agent " {{ bg }} "
152
+
146
153
logs-anti-agent :
147
154
#!/usr/bin/env bash
148
- docker compose -f CD/ anti-agent/ docker-compose.yaml logs -f
155
+ docker compose -f CD/ anti-agent/ docker-compose.yaml logs -ft
149
156
150
157
start-anti-oracle bg = " false":
151
158
#!/usr/bin/env bash
152
- nix build .#anti-oracle-docker-image
159
+ nix build .#anti-oracle-docker-image
153
160
docker load < result
154
161
version=$(nix eval --raw .#version)
155
162
docker image tag cardano-foundation/ anti-oracle:" $version" cardano-foundation/ anti-oracle:latest
@@ -162,4 +169,4 @@ start-anti-oracle bg="false":
162
169
163
170
logs-anti-oracle :
164
171
#!/usr/bin/env bash
165
- docker compose -f CD/ anti-oracle/ docker-compose.yaml logs -f
172
+ docker compose -f CD/ anti-oracle/ docker-compose.yaml logs -ft
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ in pkgs.dockerTools.buildImage {
16
16
unpacked = pkgs . runCommand "unpack" {
17
17
nativeBuildInputs = [ pkgs . gnutar pkgs . gzip ] ;
18
18
} unpack ;
19
- in [ unpacked pkgs . cacert ] ;
19
+ in [ unpacked pkgs . docker pkgs . curl pkgs . coreutils pkgs . bash ] ;
20
20
} ;
21
21
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ module Cli
2
2
( cmd
3
3
, Command (.. )
4
4
, WithValidation (.. )
5
+ , TokenInfoFailure (.. )
5
6
) where
6
7
7
8
import Control.Monad.IO.Class (MonadIO (.. ))
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ module User.Agent.Options
7
7
, agentEmailPasswordOption
8
8
, daysOption
9
9
, testRunIdOption
10
+ , registryOption
11
+ , antithesisAuthOption
10
12
) where
11
13
12
14
import Core.Options
You can’t perform that action at this time.
0 commit comments