Skip to content

choxi/docker-term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO

  • add accounts
  • track usage
  • [] handle "exit"
  • [] implement frontend

Dev

Server

$ docker run --rm --name pg -e POSTGRES_USER=choxi -e POSTGRES_PASSWORD=password -p 5432:5432 postgres
$ docker exec -it pg psql -U choxi
> CREATE DATABASE dre_development;
CREATE DATABASE
> exit
$ exit
$ sql-migrate up
4 migrations applied
$ go run main.go

Migrations

$ sql-migrate up

Useful Docker Commands

Kill all containers

$ docker kill $(docker ps -q)

Delete all stopped containers

$ docker rm $(docker ps -a -q)

Delete all images

$ docker rmi $(docker images -q)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published