Skip to content

Commit 5b2ef89

Browse files
authored
Merge pull request #568 from HSLdevcom/development
Development
2 parents 4b76b7d + 759c105 commit 5b2ef89

13 files changed

Lines changed: 11170 additions & 15507 deletions

File tree

.eslintrc

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"parserOptions": {
4-
"sourceType": "module"
4+
"sourceType": "module",
5+
"requireConfigFile": false,
6+
"babelOptions": {
7+
"presets": ["@babel/preset-react", "@babel/preset-env"]
8+
}
59
},
610
"extends": ["airbnb", "plugin:prettier/recommended"],
711
"rules": {
@@ -16,6 +20,7 @@
1620
"guard-for-in": 0,
1721
"no-underscore-dangle": 0,
1822
"func-names": 0,
23+
"class-methods-use-this": 0,
1924
"import/named": [1],
2025
"import/order": 0,
2126
"import/prefer-default-export": 0,
@@ -34,8 +39,16 @@
3439
"react/jsx-max-props-per-line": 0,
3540
"react/jsx-one-expression-per-line": 0,
3641
"react/jsx-props-no-multi-spaces": 0,
42+
"react/jsx-props-no-spreading": 0,
3743
"react/jsx-tag-spacing": 0,
3844
"react/jsx-wrap-multilines": 0,
45+
"react/jsx-no-useless-fragment": 0,
46+
"react/no-unstable-nested-components": 0,
47+
"react/no-unused-class-component-methods": 0,
48+
"react/static-property-placement": 0,
49+
"react/state-in-constructor": 0,
50+
"react/function-component-definition": 0,
51+
"react/jsx-fragments": 0,
3952
"jsx-a11y/img-has-alt": [0],
4053
"jsx-a11y/alt-text": 0
4154
},

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim AS production
1+
FROM node:20-bullseye-slim AS production
22

33
RUN apt-get -y update \
44
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq wget curl gnupg fontconfig fonts-liberation ca-certificates --no-install-recommends \
@@ -10,7 +10,8 @@ RUN apt-get -y update \
1010
&& cp ./azcopy /usr/bin/ \
1111
&& rm -rf /var/lib/apt/lists/*
1212

13-
ENV NODE_OPTIONS=--openssl-legacy-provider
13+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
14+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
1415

1516
ENV WORK=/opt/publisher
1617

Dockerfile.arm64

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM node:20-bullseye-slim AS production
2+
3+
RUN apt-get -y update \
4+
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \
5+
chromium fontconfig fonts-liberation ca-certificates wget curl \
6+
--no-install-recommends \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
# Install azcopy - auto-detect architecture
10+
RUN ARCH=$(dpkg --print-architecture) && \
11+
AZCOPY_URL="https://github.com/Azure/azure-storage-azcopy/releases/download/v10.24.0/azcopy_linux_arm64_10.24.0.tar.gz" && \
12+
wget -O /tmp/azcopy.tar.gz "$AZCOPY_URL" && \
13+
tar -xzf /tmp/azcopy.tar.gz -C /tmp && \
14+
find /tmp -name "azcopy" -type f -exec mv {} /usr/local/bin/azcopy \; && \
15+
chmod +x /usr/local/bin/azcopy && \
16+
rm -rf /tmp/azcopy*
17+
18+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
19+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
20+
21+
ENV WORK=/opt/publisher
22+
23+
RUN mkdir -p ${WORK}
24+
WORKDIR ${WORK}
25+
26+
COPY package.json package-lock.json .npmrc ${WORK}/
27+
RUN npm ci && npm cache clean --force
28+
29+
COPY . ${WORK}
30+
31+
RUN npm run build
32+
33+
CMD ["sh", "-c", "node scripts/generateConfig.js && npm run ${SERVICE}"]
34+

compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,14 @@ services:
6464
volumes:
6565
- ./output:/opt/publisher/output
6666
- ./fonts:/fonts
67+
extra_hosts:
68+
- "host.docker.internal:host-gateway"
6769
depends_on:
6870
publisher-postgres:
6971
condition: service_started
7072
redis:
7173
condition: service_started
7274

75+
7376
volumes:
7477
dev_postgres:

0 commit comments

Comments
 (0)