Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.34 KB

tasks.org

File metadata and controls

51 lines (44 loc) · 1.34 KB

Tasks

Run top

(comint-run "top")

Run compile: docker-compose up

Require package `ob-compile`

docker-compose up

Open shell terminal

Require package `eev`

(require 'eepitch)
(eepitch '(shell "project-tasks"))
(eepitch-line "date +%s")
(eepitch-line "sleep 2")
(eepitch-line "date +%s")

docker -> psql

Require package `eev`

(require 'eepitch)
(when (not (get-buffer-process "exec pg"))
  (eepitch '(shell "exec pg"))
  (eepitch-line "docker-compose exec pg bash")
  (eepitch-line (format "PGPASSWORD=%s PGUSER=postgres psql" (getenv "PGPASSWORD"))))

docker -> pg -> pg_dump

Require package `eev`

(eepitch '(shell "*pg_dump*"))
(eepitch-line "docker exec -it pg bash")
(eepitch-line (format "PGPASSWORD=%s PGUSER=postgres pg_dump db_name > /tmp/pg_dump.sql" (getenv "PGPASSWORD"))
(eepitch-line "exit")
(find-file-literally "/docker:pg:/tmp/pg_dump.sql")