Skip to content

Commit

Permalink
created release 3
Browse files Browse the repository at this point in the history
  • Loading branch information
PCao2 committed Feb 17, 2022
1 parent b3df976 commit f407138
Show file tree
Hide file tree
Showing 1,432 changed files with 204,741 additions and 2,158 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# package
package-lock.json
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

1,025 changes: 0 additions & 1,025 deletions .vs/HCC-rnamake-frontend/config/applicationhost.config

This file was deleted.

Binary file removed .vs/HCC-rnamake-frontend/v16/.suo
Binary file not shown.
3 changes: 0 additions & 3 deletions .vs/ProjectSettings.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vs/VSWorkspaceState.json

This file was deleted.

Binary file removed .vs/slnx.sqlite
Binary file not shown.
8 changes: 0 additions & 8 deletions .vscode/settings.json

This file was deleted.

23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
[![Build Status](https://app.travis-ci.com/ahamad2/HCC-rnamake-frontend.svg?token=St2QcD8ArRBFuxPR88Xz&branch=main)](https://app.travis-ci.com/ahamad2/HCC-rnamake-frontend)
## Quick Setup Instructions
1. `cd airavata-django-portal`
2. Follow the instructions in the [Airavata Django Portal](https://github.com/apache/airavata-django-portal) for this folder.
3.
```
cd hcc_rnamake_portal
pip install -e .
````
4. `cd frontend`
5. `npm i`
8. `npm run-script build`
9. `cd ../..`
10. `cd airavata-django-portal`
11. `python manage.py runserver`
## Quickstart

run `npm install`

run `npm i react-router-dom`

run `npm start` to start the current project in your browser.
portal should be running now.
8 changes: 8 additions & 0 deletions airavata-django-portal/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/node_modules
venv
**.pyc
.git
**/dist
*.sqlite3
**/settings_local*.py
.tox
29 changes: 29 additions & 0 deletions airavata-django-portal/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root = true

[*]
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.py]
indent_size = 4

[*.html]
indent_size = 2

[*.{js,vue}]
indent_size = 2

[*.scss]
indent_size = 2

[*.json]
indent_size = 2

[*.md]
indent_size = 2

# mkdocs Markdown parser requires 4 space indent
[docs/**.md]
indent_size = 4
19 changes: 19 additions & 0 deletions airavata-django-portal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.pyc
*.sqlite3
settings_local.py
settings_local*.py
.DS_Store
node_modules
.idea/
dist/
ENV
venv/
.vscode/
jsconfig.json
airavata_django_portal.egg-info
# AIRAVATA-2951 package-lock.json files cause the build to fail when deploying to server
package-lock.json
# mkdocs
site/
.tox/
yarn-error.log
1 change: 1 addition & 0 deletions airavata-django-portal/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
3 changes: 3 additions & 0 deletions airavata-django-portal/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"proseWrap": "always"
}
23 changes: 23 additions & 0 deletions airavata-django-portal/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
# - "3.10"
install:
- nvm install
- nvm use
- pip install --upgrade pip setuptools wheel
- pip install -r requirements-dev.txt
script:
- cp django_airavata/settings_local.py.sample django_airavata/settings_local.py
- python manage.py migrate
- python manage.py check
- flake8 .
- ./lint_js.sh
- ./build_js.sh
- ./test_js.sh
# Need to build the frontend client before running some of the Django tests
# that use the Django test Client
- ./runtests.py
104 changes: 104 additions & 0 deletions airavata-django-portal/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# node image is based on Debian and includes necessary build tools
FROM node:lts as build-stage

# build api javascript
# api must come first, then common, since the others depend on these
WORKDIR /code/django_airavata/apps/api
COPY ./django_airavata/apps/api/package.json ./django_airavata/apps/api/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/api/ .
RUN yarn run build

# build common javascript
WORKDIR /code/django_airavata/static/common
COPY ./django_airavata/static/common/package.json ./django_airavata/static/common/yarn.lock ./
RUN yarn
COPY ./django_airavata/static/common/ .
RUN yarn run build

# build dataparsers javascript
WORKDIR /code/django_airavata/apps/dataparsers
COPY ./django_airavata/apps/dataparsers/package.json ./django_airavata/apps/dataparsers/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/dataparsers/ .
RUN yarn run build

# build groups javascript
WORKDIR /code/django_airavata/apps/groups
COPY ./django_airavata/apps/groups/package.json ./django_airavata/apps/groups/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/groups/ .
RUN yarn run build

# build auth javascript
WORKDIR /code/django_airavata/apps/auth
COPY ./django_airavata/apps/auth/package.json ./django_airavata/apps/auth/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/auth/ .
RUN yarn run build

# build workspace/django-airavata-workspace-plugin-api javascript
# This one must come before workspace build
WORKDIR /code/django_airavata/apps/workspace/django-airavata-workspace-plugin-api
COPY ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/package.json ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/ .
RUN yarn run build

# build admin javascript
# To reuse cache best, putting the two most volatile apps, admin and workspace, last
WORKDIR /code/django_airavata/apps/admin
COPY ./django_airavata/apps/admin/package.json ./django_airavata/apps/admin/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/admin/ .
RUN yarn run build

# build workspace javascript
WORKDIR /code/django_airavata/apps/workspace
COPY ./django_airavata/apps/workspace/package.json ./django_airavata/apps/workspace/yarn.lock ./
RUN yarn
COPY ./django_airavata/apps/workspace/ .
RUN yarn run build



FROM python:3.9-slim as server-stage

ENV PYTHONUNBUFFERED 1

EXPOSE 8000

WORKDIR /code
COPY requirements.txt requirements-mysql.txt ./
COPY setup.* ./
COPY README.md .
RUN apt-get update && apt-get install -y git gcc g++ zlib1g-dev libjpeg-dev default-libmysqlclient-dev
RUN pip install --upgrade pip setuptools wheel --no-cache
RUN pip install -r requirements.txt --no-cache
RUN pip install -r requirements-mysql.txt --no-cache

# Copy in a default settings_local.py file
COPY ./django_airavata/settings_local.py.sample ./django_airavata/settings_local.py

COPY ./ .

# Copy javascript builds from build-stage
WORKDIR /code/django_airavata/apps/api/static/django_airavata_api
COPY --from=build-stage /code/django_airavata/apps/api/static/django_airavata_api .
WORKDIR /code/django_airavata/static/common/dist
COPY --from=build-stage /code/django_airavata/static/common/dist .
WORKDIR /code/django_airavata/apps/admin/static/django_airavata_admin
COPY --from=build-stage /code/django_airavata/apps/admin/static/django_airavata_admin .
WORKDIR /code/django_airavata/apps/groups/static/django_airavata_groups
COPY --from=build-stage /code/django_airavata/apps/groups/static/django_airavata_groups .
WORKDIR /code/django_airavata/apps/auth/static/django_airavata_auth
COPY --from=build-stage /code/django_airavata/apps/auth/static/django_airavata_auth .
WORKDIR /code/django_airavata/apps/workspace/static/django_airavata_workspace
COPY --from=build-stage /code/django_airavata/apps/workspace/static/django_airavata_workspace .
WORKDIR /code/django_airavata/apps/dataparsers/static/django_airavata_dataparsers
COPY --from=build-stage /code/django_airavata/apps/dataparsers/static/django_airavata_dataparsers .

WORKDIR /code

ENTRYPOINT ["/code/scripts/start-server.sh"]

Loading

0 comments on commit f407138

Please sign in to comment.