Commit Graph

13 Commits (1bdb03807add001b825bcebd83b4b8bc0e85bbe1)

Author SHA1 Message Date
Oliver Eyton-Williams 9c078ab5d2
fix: update npm calls to handle workspaces (#44370)
* fix: use workspaces for crowdin npm ci

* fix: update server.Dockerfile to use workspaces

* fix: update client.Dockerfile to use workspaces
2021-12-03 20:06:08 +05:30
renovate[bot] 13b880c97b
chore(deps): update node.js to v14.18.2 (#44355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-02 17:41:54 +05:30
renovate[bot] 44f4b30890
chore(deps): update node.js to v14.18.1 (#43834)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 06:39:25 +02:00
jhonDoe15 59241b59ef
fix(tools): speedup npm installation in dockerfile (#43809)
* speedup npm dependency installation in Dockerfile

save time while installing npm dependencies with no npm progress bar

* add npm ci change to builder stage too
2021-10-12 12:11:23 -07:00
renovate[bot] 207a4888c0
chore(deps): update node.js to v14.18.0 (#43603)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 20:01:22 -07:00
renovate[bot] ace3a2dffb
chore(deps): update node.js to v14.17.6 (#43352)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-01 15:45:04 +00:00
renovate[bot] 39b15870fb
chore(deps): update node.js to v14.17.5 (#43193)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-13 10:15:34 +02:00
Renovate Bot c7b27a53e7 chore(deps): update node.js to v14.17.4 2021-08-02 10:54:04 +00:00
renovate[bot] 4c4a261b60
chore(deps): update node.js to v14.17.3 (#42793)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-08 14:50:05 +05:30
renovate[bot] f70696ced8
chore(deps): update node.js to v14.17.2 (#42778)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 11:49:15 +05:30
renovate[bot] 129ea4fe16
chore(deps): update node.js to v14.17.1 (#42514)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-16 12:58:08 +05:30
renovate[bot] 8edd0e0be6
chore(deps): update node.js to v14.17.0 (#42121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-13 16:07:21 +05:30
Oliver Eyton-Williams 5d46e2830a
feat: add Docker build (#41187)
* feat(docker): build and use client and api images

* feat: always use .env

dotenv fails without throwing if the .env file is missing and never
overwrites variables if they already exist. As such, we can use it in
build pipelines.

* fix: remove quotes from env vars

dotenv normalises quoted and unquoted strings (X=x, X='x' and
X="x") all become the same .env object {X: 'x'}. However, Docker's
env_file does not (the three cases are distinct).  As a result, we
should use unquoted strings for consistency.

* fix: provide custom warning when .env is missing

* feat(docker): include client-config

* fix(docker): remove build packages from api image

* fix(docker): run script from correct dir

* fix(docker): correct permissions and dests

* fix(docker): consolidate run steps

This is standard practice, but did not have a noticable affect on the
image size

* fix(docker): clean the npm cache

Prior to this step the image was 1.11GB uncompressed and we got a modest
saving, 1.09GB after.

* refactor(docker): regexless COPY directives

* feat(docker): use alpine

This shrinks the image down to 259MB

* fix(docker): update build scripts

* fix: correct the server Dockerfile RUNs

* DEBUG: expose mysql port for seeding

* chore: update client Dockerfile's node versions

* fix: remove executable permissions from index.js

It's not a cli, so I don't think it needs to be executable.

* chore: update node and remove stale comments

* feat: use ENTRYPOINT + CMD to allow runtime config

* fix: add CURRICULUM_LOCALE arg

* feat: allow client port configuration

* feat: allow api port to be configured

* refactor: use unique variable names for ports

* fix: add default CLIENT_PORT

* refactor: clean up
2021-04-20 19:29:31 +05:30