Skip to content

Commit 5e3eb51

Browse files
committed
added flag to Makefile for new percona db image (and some whitespace fixes)
1 parent 0d4188b commit 5e3eb51

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dev/local/Makefile

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
# Creates all prereq images (delphi_database, delphi_python) only if they don't
1111
# exist. If you need to rebuild a prereq, you're probably doing something
1212
# complicated, and can figure out the rebuild command on your own.
13-
#
14-
#
13+
#
14+
#
1515
# Commands:
16-
#
16+
#
1717
# web: Stops currently-running delphi_web_epidata instances, if any.
1818
# Rebuilds delphi_web_epidata image.
1919
# Runs image in the background and pipes stdout to a log file.
20-
#
20+
#
2121
# db: Stops currently-running delphi_database_epidata instances, if any.
2222
# Rebuilds delphi_database_epidata image.
2323
# Runs image in the background and pipes stdout to a log file.
2424
# Blocks until database is ready to receive connections.
25-
#
25+
#
2626
# python: Rebuilds delphi_web_python image. You shouldn't need to do this
2727
# often; only if you are installing a new environment, or have
2828
# made changes to delphi-epidata/dev/docker/python/Dockerfile.
@@ -35,7 +35,7 @@
3535
#
3636
# clean: Cleans up dangling Docker images.
3737
#
38-
#
38+
#
3939
# Optional arguments:
4040
# pdb=1 Drops you into debug mode upon test failure, if running tests.
4141
# test= Only runs tests in the directories provided here, e.g.
@@ -105,6 +105,7 @@ db:
105105
@# Run the database
106106
@docker run --rm -p 127.0.0.1:13306:3306 \
107107
--network delphi-net --name delphi_database_epidata \
108+
--cap-add=sys_nice \
108109
delphi_database_epidata >$(LOG_DB) 2>&1 &
109110

110111
@# Block until DB is ready
@@ -127,7 +128,7 @@ py:
127128
all: web db py
128129

129130
.PHONY=test
130-
test:
131+
test:
131132
@docker run -i --rm --network delphi-net \
132133
--mount type=bind,source=$(CWD)repos/delphi/delphi-epidata,target=/usr/src/app/repos/delphi/delphi-epidata,readonly \
133134
--mount type=bind,source=$(CWD)repos/delphi/delphi-epidata/src,target=/usr/src/app/delphi/epidata,readonly \

0 commit comments

Comments
 (0)