Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
metadeploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nebula
metadeploy
Commits
ad80b08b
Commit
ad80b08b
authored
Oct 24, 2023
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
3efc986d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
3 deletions
+40
-3
.gitignore
.gitignore
+3
-1
cryptor.sh
cryptor.sh
+34
-0
init.sh
init.sh
+2
-1
start.sh
start.sh
+1
-1
No files found.
.gitignore
View file @
ad80b08b
docker-compose_ring.yml
\ No newline at end of file
docker-compose_ring.yml
docker-compose_cryptor.yml
docker-compose-cadvisor.yml
\ No newline at end of file
cryptor.sh
0 → 100755
View file @
ad80b08b
#!/bin/bash
set
-e
N
=
${
1
:-
1
}
composefile
=
"docker-compose_cryptor.yml"
echo
'version: "3.9"'
>
$composefile
echo
''
>>
$composefile
echo
'services:'
>>
$composefile
for
i
in
$(
seq
1
$N
)
do
echo
' cryptor$i:'
>>
$composefile
echo
' image: 192.168.1.220:5000/cryptor:v0.0.1 '
>>
$composefile
echo
' container_name: cryptor$i'
>>
$composefile
echo
' deploy:'
>>
$composefile
echo
' restart_policy:'
>>
$composefile
echo
' condition: on-failure'
>>
$composefile
echo
' delay: 15s'
>>
$composefile
echo
' max_attempts: 100'
>>
$composefile
echo
' window: 120s'
>>
$composefile
echo
' volumes:'
>>
$composefile
echo
' - ./cryptor/config.toml:/root/config.toml'
>>
$composefile
echo
' networks:'
>>
$composefile
echo
' - meta'
>>
$composefile
done
init.sh
View file @
ad80b08b
...
...
@@ -5,4 +5,5 @@ set -e
N
=
${
1
:-
2
}
./ring.sh
$N
./cadvisor.sh
$N
\ No newline at end of file
./cadvisor.sh
$N
./cryptor.sh
$N
\ No newline at end of file
start.sh
View file @
ad80b08b
...
...
@@ -2,4 +2,4 @@
set
-e
docker compose
-f
docker-compose-prometheus.yml
-f
docker-compose_ring.yml
-f
docker-compose-cadvisor.yml up
-d
\ No newline at end of file
docker compose
-f
docker-compose-prometheus.yml
-f
docker-compose_ring.yml
-f
docker-compose-cadvisor.yml
-f
docker-compose_cryptor.yml up
-d
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment