Skip to content

Commit cb68fd0

Browse files
authored
Merge pull request #14 from scostello/refactor/ddd-structure
feat: 🎸 ddd ftw!
2 parents b01dbcd + d770caf commit cb68fd0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+16102
-8732
lines changed

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/sean.costello/nodejs-rdkafka:12.3.1-1.0.1@sha256:a93b5e065499dd2bdc409fe24747046e1040477cc5c917dc973fb224a5ef15db
1+
FROM quay.io/sean.costello/nodejs-rdkafka:12.14.1-1.3.0
22

33
ENV APPS_DIR=/apps
44
ENV APP_NAME=pfa-api
@@ -7,13 +7,12 @@ ENV BUILD_LIBRDKAFKA=0
77

88
WORKDIR ${APP_PATH}
99

10-
COPY package*.json yarn.lock tsconfig.json ./
10+
COPY package*.json tsconfig.json ./
1111
COPY src/ src/
1212

13-
RUN \
14-
yarn install &&\
15-
yarn run build &&\
16-
apk del build-deps
13+
RUN npm ci \
14+
&& npm run build \
15+
&& apk del build-deps
1716

1817
COPY docker-entrypoint.sh /usr/local/bin
1918

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
build:
66
context: .
77
dockerfile: Dockerfile
8-
command: ["start"]
8+
command: ["watch"]
99
environment:
1010
NODE_ENV: "local"
1111
PG_HOST: postgres
@@ -21,11 +21,12 @@ services:
2121
- "4000:4000"
2222

2323
postgres:
24-
image: quay.io/sean.costello/postgis:2.5.2-debian
24+
image: quay.io/sean.costello/postgis:3.0.0-debian
2525
environment:
2626
POSTGRESQL_USERNAME: postgres
2727
POSTGRESQL_PASSWORD: mysecretpassword
2828
POSTGRESQL_DATABASE: pro_football_analytics
29+
BITNAMI_DEBUG: "true"
2930
volumes:
3031
- ./initdb.d:/docker-entrypoint-initdb.d
3132
- pg-data:/bitnami

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
script="${1:-start}"
66

7-
exec yarn run "${script}"
7+
exec npm run "${script}"

0 commit comments

Comments
 (0)