From c73540bf050eda159b405ef66858e582ff553266 Mon Sep 17 00:00:00 2001 From: CodexHere Date: Tue, 19 Mar 2024 22:27:27 -0500 Subject: [PATCH] Split compose/docker startup scripts for posterity --- Dockerfile | 2 +- compose_start.sh | 7 +++++++ docker_start.sh | 7 ++----- 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100755 compose_start.sh diff --git a/Dockerfile b/Dockerfile index b67b83f..e404082 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ USER 1000 COPY --chown=1000:1000 . /app -RUN cargo build +RUN cargo install --path . ENTRYPOINT ["/app/target/release/scope-tui"] CMD ["pulse"] diff --git a/compose_start.sh b/compose_start.sh new file mode 100755 index 0000000..a90e345 --- /dev/null +++ b/compose_start.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +docker compose up -d + +docker attach scope_tui + +docker compose down diff --git a/docker_start.sh b/docker_start.sh index a90e345..bcc72c0 100755 --- a/docker_start.sh +++ b/docker_start.sh @@ -1,7 +1,4 @@ #!/bin/sh -docker compose up -d - -docker attach scope_tui - -docker compose down +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