-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: load whoishiring data into the database
- Loading branch information
1 parent
c5585d4
commit 558babb
Showing
22 changed files
with
1,296 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
__tests__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This stage installs our modules | ||
FROM mhart/alpine-node:12 | ||
|
||
ENV container=docker NODE_ENV=production | ||
WORKDIR /app | ||
|
||
COPY package.json package-lock.json ./ | ||
RUN npm ci --prod | ||
|
||
# Then we copy over the modules from above onto a `slim` image | ||
FROM mhart/alpine-node:slim-12 | ||
|
||
COPY wait-for-it.sh . | ||
RUN chmod +x ./wait-for-it.sh | ||
|
||
# If possible, run your container using `docker run --init` | ||
# Otherwise, you can use `tini`: | ||
RUN apk add --no-cache tini bash \ | ||
&& addgroup -g 1000 node \ | ||
&& adduser -u 1000 -G node -s /bin/sh -D node | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
USER node | ||
|
||
COPY --from=0 /app . | ||
COPY ./src ./src/ | ||
|
||
CMD ./wait-for-it.sh $PGHOST:$PGPORT -- node ./src/index.js |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "@whoishiring.work/populate-hn-data", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "Populates whoishiring data from hacker news into the database", | ||
"license": "MIT", | ||
"repository": "https://github.com/jerroydmoore/whoishiring.work.git", | ||
"type": "commonjs", | ||
"engines": { | ||
"node": ">=12.13.0" | ||
}, | ||
"scripts": { | ||
"start": "node src/index.js" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.1.1", | ||
"node-fetch": "^2.6.0", | ||
"pg": "^7.16.1", | ||
"pg-hstore": "^2.3.3", | ||
"sequelize": "^5.21.3" | ||
}, | ||
"devDependencies": {} | ||
} |
Oops, something went wrong.