mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-23 14:14:48 +01:00
Split compose/docker startup scripts for posterity
This commit is contained in:
parent
655598e807
commit
c73540bf05
3 changed files with 10 additions and 6 deletions
|
@ -12,7 +12,7 @@ USER 1000
|
||||||
|
|
||||||
COPY --chown=1000:1000 . /app
|
COPY --chown=1000:1000 . /app
|
||||||
|
|
||||||
RUN cargo build
|
RUN cargo install --path .
|
||||||
|
|
||||||
ENTRYPOINT ["/app/target/release/scope-tui"]
|
ENTRYPOINT ["/app/target/release/scope-tui"]
|
||||||
CMD ["pulse"]
|
CMD ["pulse"]
|
||||||
|
|
7
compose_start.sh
Executable file
7
compose_start.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
|
docker attach scope_tui
|
||||||
|
|
||||||
|
docker compose down
|
|
@ -1,7 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
docker compose up -d
|
docker build -t scope_tui:latest . &&
|
||||||
|
docker run --rm -it --name scope_tui -e "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native" -v "${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native" -v "$HOME/.config/pulse/cookie:/.config/pulse/cookie" scope_tui
|
||||||
docker attach scope_tui
|
|
||||||
|
|
||||||
docker compose down
|
|
||||||
|
|
Loading…
Reference in a new issue