Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Xplatform #1662

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
data
dist
database
18 changes: 7 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
# Define the full path to this file
THIS_FILE := $(lastword $(MAKEFILE_LIST))

# Set docker-compose file selector for windows
ifneq (,$(findstring WINDOWS,$(PATH)))
DC_CONFIG=$(ROOT_DIR)/docker-compose-windows.yml
else
DC_CONFIG=$(ROOT_DIR)/docker-compose.yml
endif

# Find or create a home for sensitive environment variables
# Check my secret place
CREDS=$(HOME)/.bash/.credentials
Expand Down Expand Up @@ -95,7 +88,7 @@ time-sync:
docker run --rm --privileged alpine hwclock -s

up:
$(SUDO) docker-compose --file=$(DC_CONFIG) up
$(SUDO) docker-compose up -d

start:
docker-compose start
Expand All @@ -108,13 +101,16 @@ state:

rebuild:
$(SUDO) docker-compose stop
$(SUDO) docker-compose pull
$(SUDO) docker-compose rm --force server
$(SUDO) docker-compose rm --force mongodb
-$(SUDO) docker-compose rm --force adminmongo
-$(SUDO) docker rmi zenbot_server
-$(SUDO) docker rmi mongo
-$(SUDO) docker rmi adminmongo
$(SUDO) docker volume prune --force
$(SUDO) docker-compose pull
$(SUDO) docker-compose build --no-cache
$(SUDO) docker-compose --file=$(DC_CONFIG) up -d --force-recreate

$(SUDO) docker-compose up -d --force-recreate

shell:
docker-compose exec server /bin/sh
Expand Down
21 changes: 0 additions & 21 deletions docker-compose-windows.yml

This file was deleted.

4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ services:
tty: true
ports:
- "17365:17365"
expose:
- 17365
depends_on:
- mongodb
environment:
- MONGODB_PORT_27017_TCP_ADDR=mongodb
mongodb:
image: mongo:latest
volumes:
- ./database:/data/db
- /data/db
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null
expose:
- 27017
Expand Down