Skip to content

Commit

Permalink
Merge more unrelated files from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed May 2, 2024
1 parent b0871be commit 8739ab2
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 31 deletions.
2 changes: 1 addition & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
dist
Dockerfile*
nvd-dump
coverage
coverage
42 changes: 22 additions & 20 deletions backend/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
---
{
"env": { "es6": true, "node": true },
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["dist/**"],
"extends":
[
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
],
"plugins": ["prettier", "@typescript-eslint"],
"parserOptions": { "ecmaVersion": 2018, "sourceType": "module" },
"rules":
{
"prettier/prettier": "error",
"react/prop-types": 0,
"react/display-name": 0,
},
"settings": { "react": { "version": "detect" } },
"globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" },
}
env:
es6: true
node: true
parser: '@typescript-eslint/parser'
ignorePatterns: [dist/**]
extends:
- plugin:prettier/recommended
- plugin:@typescript-eslint/eslint-recommended
plugins: [prettier, '@typescript-eslint']
parserOptions:
ecmaVersion: '2018'
sourceType: module
rules:
prettier/prettier: error
react/prop-types: 0
react/display-name: 0
settings:
react:
version: detect
globals:
Atomics: readonly
SharedArrayBuffer: readonly
2 changes: 1 addition & 1 deletion backend/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
engine-strict=true
engine-strict=true
4 changes: 2 additions & 2 deletions backend/.snyk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version: v1.22.1

# ignores vulnerabilities until expiry date; change duration by modifying expiry date

ignore:
ignore:
# ignore scrapy 2.x.x for 6 months.
SNYK-PYTHON-SCRAPY-40690:
SNYK-PYTHON-SCRAPY-40690:
- '*':
reason: No fix available up to version 2.11.0
expires: 2024-06-01T00:00:00.000Z
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18-alpine3.17
USER root

RUN apk update && apk upgrade
RUN apk update && apk upgrade && apk add g++ make py3-pip

WORKDIR /app
COPY ./package* ./
Expand Down
6 changes: 3 additions & 3 deletions backend/Dockerfile.pe
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ RUN git clone -b AL-staging-SQS https://github.com/cisagov/pe-reports.git && \

RUN python -m spacy download en_core_web_lg

# Create database.ini
RUN echo "[database]" > database.ini \
&& echo "user=$(cat db_user.txt)" >> database.ini \
# Create database.ini
RUN echo "[database]" > database.ini \
&& echo "user=$(cat db_user.txt)" >> database.ini \
&& echo "password=$(cat db_password.txt)" >> database.ini

COPY worker worker
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ WORKDIR /app

RUN apk add --no-cache curl unzip musl-dev

RUN curl -4LO http://github.com/Findomain/Findomain/releases/latest/download/findomain-linux.zip
RUN curl -4LO http://github.com/Findomain/Findomain/releases/latest/download/findomain-linux.zip
RUN unzip findomain-linux.zip && chmod +x findomain && cp findomain /usr/bin/findomain

RUN go mod init crossfeed-worker
Expand Down
4 changes: 2 additions & 2 deletions backend/db-init/create-test-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -u

psql -v ON_ERROR_STOP=1 --username "$DB_USERNAME" <<-EOSQL
psql -v ON_ERROR_STOP=1 --username "$DB_USERNAME" <<- EOSQL
CREATE DATABASE crossfeed_test;
GRANT ALL PRIVILEGES ON DATABASE crossfeed_test TO $DB_USERNAME;
EOSQL
EOSQL

0 comments on commit 8739ab2

Please sign in to comment.