mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 02:36:24 -07:00
Add docker building to Makefile
This commit is contained in:
parent
5734ebf4de
commit
e3acd4a6d0
2 changed files with 11 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -72,6 +72,15 @@ dependencies:
|
|||
github.com/tdewolff/minify \
|
||||
github.com/mojocn/base64Captcha
|
||||
|
||||
docker:
|
||||
docker-compose -f docker/docker-compose-mariadb.yaml up --build
|
||||
|
||||
docker-hostdb:
|
||||
docker-compose -f docker/docker-compose.yml.default up --build
|
||||
|
||||
docker-macos:
|
||||
docker-compose -f docker/docker-compose-syncForMac.yaml up --build
|
||||
|
||||
install:
|
||||
mkdir -p \
|
||||
${PREFIX}/share/gochan \
|
||||
|
@ -151,4 +160,4 @@ sass-minified:
|
|||
test:
|
||||
go test -v ./src
|
||||
|
||||
.PHONY: subpackages ${INTERNALS} sass
|
||||
.PHONY: subpackages docker docker-hostdb docker-macos ${INTERNALS} sass
|
||||
|
|
|
@ -6,7 +6,7 @@ If you want docker to manage the databse, use `docker-compose-[database].yml`.
|
|||
|
||||
If you are using MacOS and need better file sync between the host and the container, use `docker-compose-syncForMac.yml`.
|
||||
|
||||
To use, run `docker-compose -f [docker-compose.yml file you chose] up --build`. To stop, simply use control+c to send a stop signal. This stops the docker containers but it does not delete them. They are merely frozen.
|
||||
To use from the root gochan directory, run `make docker`, or `make docker-macos` if you are using MacOS. This will use the MariaDB docker-compose file. If you want to specify which docker-compose file to use, run `docker-compose -f [docker-compose.yml file you chose] up --build` from this directory. To stop, simply use control+c to send a stop signal. This stops the docker containers but it does not delete them. They are merely frozen.
|
||||
|
||||
To delete the containers run `docker-compose -f [file you chose] down`. If you have a container that has a database (for example, if you chose `docker-compose-mariadb.yml`), this command will delete the database too.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue