You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2019/10/16 20:35:02 UTC

[jira] [Commented] (AIRAVATA-3230) Ansible: build Django JS code in Docker locally

    [ https://issues.apache.org/jira/browse/AIRAVATA-3230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953180#comment-16953180 ] 

Marcus Christie commented on AIRAVATA-3230:
-------------------------------------------

Preliminary work has already been completed:
- https://github.com/apache/airavata-django-portal/commit/a9caeefeeca051f271f92fd3a90a8cc87b7c8c98
- https://github.com/apache/airavata-django-portal/commit/8065673c37be23d6f2ac2a3919a6d300061bca26

- https://github.com/apache/airavata/commit/cf29ed27b1951c61042a29ab767a445a9b605ee6
- https://github.com/apache/airavata/commit/502acac7dd0ddeb2a7e1e47840d25271322b66b0
- https://github.com/apache/airavata/commit/95664d279aa4dd4f4b4a0e5019172c6042a04dd1
- https://github.com/apache/airavata/commit/6401c810f13175ab925b4b5bad40d1ac95da78ea
- https://github.com/apache/airavata/commit/0cbc83355dda6287f9c5988b0c160310e0ec2cf3
- https://github.com/apache/airavata/commit/b0e15a581326ede8ffb6e23279ea8a3e4706eb31

> Ansible: build Django JS code in Docker locally
> -----------------------------------------------
>
>                 Key: AIRAVATA-3230
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3230
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>
> Improve the Ansible Django deploy process by building the JS code once, locally, using Docker.
> Goals
> - Decrease the time it takes to deploy multiple Django instances by building the JS code only once
> - Switch back to using package-lock.json files by always building JS code in the Docker container. This will have the benefit of pinning the JS dependencies.
> h5. TODO
> - [ ] Script for running npm install commands in Docker container
> - [ ] Script for running npm run serve/build commands in Docker container
> - [ ] Commit the generated package-lock.json files
> - [ ] use {{npm ci}} instead of {{npm install}} to improve reproducibility and speed up dependency install (see also https://stackoverflow.com/a/45566871)
> - [ ] update build_js.sh
> - [ ] update README, docs



--
This message was sent by Atlassian Jira
(v8.3.4#803005)