diff --git a/server/Dockerfile b/server/Dockerfile index 560ca42..d44c199 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,7 +4,7 @@ FROM node:8-alpine AS build RUN apk add --no-cache curl gnupg make g++ bash python -# Note: context starts in directory above (see docker-compose file) +# Note: context starts in the directory above (see docker-compose file) COPY server /var/www/server WORKDIR /var/www/server @@ -14,7 +14,7 @@ RUN npm run build FROM node:8-alpine -# Note: context starts in directory above (see docker-compose file) +# Note: context starts in the directory above (see docker-compose file) COPY server/package.json /var/www/server/ WORKDIR /var/www/server diff --git a/server/jest.config.js b/server/jest.config.js index c0f5ed7..3a63c6b 100644 --- a/server/jest.config.js +++ b/server/jest.config.js @@ -5,9 +5,9 @@ module.exports = { "useBabelrc": true, "tsConfigFile": "tsconfig.jest.json" }, - "GIT_VERSION": "test_version", - "GIT_COMMITHASH": "test_commit_hash", - "GIT_BRANCH": "test_branch" + "GIT_VERSION": "version", + "GIT_COMMITHASH": "commit_hash", + "GIT_BRANCH": "branch" }, "transform": { "\\.ts": "ts-jest" diff --git a/server/src/config.ts b/server/src/config.ts index 061c9dd..8acfd32 100644 --- a/server/src/config.ts +++ b/server/src/config.ts @@ -8,7 +8,8 @@ import * as path from 'path'; import * as fs from 'fs'; import * as os from 'os'; - +// GIT_BRANCH, GIT_COMMITHASH, GIT_VERSION variables are defined by webpack +// TypeScript doesn't know that these variables exist declare const GIT_BRANCH: string; declare const GIT_COMMITHASH: string; declare const GIT_VERSION: string;