1
0
Fork 0
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:
CodexHere 2024-03-19 22:27:27 -05:00
parent 655598e807
commit c73540bf05
3 changed files with 10 additions and 6 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
#!/bin/sh
docker compose up -d
docker attach scope_tui
docker compose down

View file

@ -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