forked from compdemocracy/polis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A variety of improvements all around (compdemocracy#1608)
* remove unused Dockerfile * placeholder for local dev builds * docker compose instead of docker-compose * update Docker and compose files * gitignore math/.cpcache * remove unused config vars * update versions in participation readme * update all package.json files, replacing ^ with ~; rebuild all package-lock files * update nvm references; stop using --harmony * additional comments and a small fix * keep libpq-dev in the running server container * remove unused Procfile * fully remove residual bower references; remove unused bower-derived fontawesome configuration; remove unused bower-derived flatui references. * server node_modules volume for development * Add POSTRES_PORT option to docker-compose.dev.yml * remove extraneous run command in docker-compose.dev.yml --------- Co-authored-by: Christopher Small <[email protected]>
- Loading branch information
1 parent
94c674e
commit ad23ff5
Showing
48 changed files
with
14,172 additions
and
27,697 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
TAG=dev | ||
COMPOSE_PROJECT_NAME=polis-${TAG} | ||
HTTP_PORT=80 | ||
|
||
# GIT_HASH will be set properly when running `make` (see Makefile). | ||
GIT_HASH=placeholder |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"search.exclude": { | ||
"**/*.code-search": false, | ||
"**/bower_components": false, | ||
"**/node_modules": false | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
FROM docker.io/node:14.14.0-alpine | ||
# NOTE: This Dockerfile is not actually used by the docker-compose.yml. | ||
# Instead, the file-server Dockerfile builds and serves these assets. | ||
# But this file is still useful for development or deployments that do not use | ||
# the docker compose configuration. | ||
|
||
WORKDIR /app | ||
FROM docker.io/node:18-alpine | ||
|
||
RUN apk add git --no-cache | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm install | ||
|
||
RUN npm ci | ||
|
||
COPY polis.config.template.js polis.config.js | ||
# If polis.config.js exists on host, will override template here. | ||
# If polis.config.js already exists in the local directory being copied, | ||
# it will override the template from the line above. | ||
COPY . . | ||
|
||
ARG GIT_HASH | ||
RUN npm run build:prod | ||
CMD npm run build:prod |
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
Oops, something went wrong.