Compare commits
2 Commits
821ebc8dd8
...
f100665946
Author | SHA1 | Date |
---|---|---|
Denys | f100665946 | |
Denys | a8ecce8930 |
|
@ -7,10 +7,10 @@
|
|||
"protocol": "http",
|
||||
"domain": "qstack.pl",
|
||||
"port": "3000",
|
||||
"token_name": "r",
|
||||
"token": "41d7b3f929d00db8887773e7e7f4c79630db346a",
|
||||
"token_name": "t",
|
||||
"token": "a12b9583297c6bce982d9894a48714c7c2b9f73d",
|
||||
"group": "1i-2023",
|
||||
"project": "homework"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
4
igit.py
4
igit.py
|
@ -13,8 +13,8 @@ DEFAULT_CONFIG = {
|
|||
"protocol": "http",
|
||||
"domain": "qstack.pl",
|
||||
"port": "3000",
|
||||
"token_name": "r",
|
||||
"token": "41d7b3f929d00db8887773e7e7f4c79630db346a",
|
||||
"token_name": "t",
|
||||
"token": "a12b9583297c6bce982d9894a48714c7c2b9f73d",
|
||||
"group": "1i-2023",
|
||||
"project": "homework"
|
||||
}]
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Tworzenie nowej sesji tmux o nazwie 'my_session' i wykonywanie poleceń w niej
|
||||
tmux new-session -d -s dockerr
|
||||
|
||||
# Wykonywanie poleceń w pierwszym oknie sesji
|
||||
tmux send-keys -t dockerr "cd _srvc/devops/cluster/user" C-m
|
||||
tmux send-keys -t dockerr "docker-compose up" C-m
|
||||
sleep 5 # Oczekiwanie na uruchomienie kontenerów
|
||||
|
||||
# Tworzenie nowego okna w tej samej sesji i wejście do kontenera z uruchomieniem tmux
|
||||
tmux new-window -t dockerr
|
||||
tmux send-keys -t dockerr:1 "docker exec -it user_py1_1 bash -c 'tmux new-session -d -s my_container_session && tmux split-window -h && tmux split-window -v && tmux select-pane -t 0 && tmux split-window -v && tmux select-pane -t 0 && tmux send-keys -t 0 \"cd work/cpp && vim\" C-m && tmux send-keys -t 1 \"cd work/cpp/cpp && make clean && make\" C-m && tmux send-keys -t 2 \"cd riscv/VexRiscv/src/test/cpp/murax && make run\" C-m && tmux send-keys -t 3 \"cd riscv/openocd_riscv && . ./__\" C-m && tmux attach-session -d -t my_container_session'" C-m
|
||||
|
||||
# Przełączanie na nowe okno i wejście w interaktywny tryb tmux
|
||||
tmux select-window -t dockerr:1
|
||||
tmux attach-session -t dockerr
|
Loading…
Reference in New Issue