Skip to content

Commit

Permalink
updating for aws
Browse files Browse the repository at this point in the history
  • Loading branch information
veenhouse committed Aug 22, 2022
1 parent 0e54270 commit f71849f
Show file tree
Hide file tree
Showing 33 changed files with 71 additions and 537 deletions.
9 changes: 0 additions & 9 deletions .env.dev

This file was deleted.

11 changes: 0 additions & 11 deletions .env.prod

This file was deleted.

3 changes: 0 additions & 3 deletions .env.prod.db

This file was deleted.

11 changes: 0 additions & 11 deletions .env.stage

This file was deleted.

3 changes: 0 additions & 3 deletions .env.stage.db

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
chp_db_fixture.json.gz
#deployment-script
deployment-script
chp.sql

#SSH Keys
id_rsa*
Expand Down
Empty file removed .gitmodules
Empty file.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"python.analysis.typeCheckingMode": "off",
"workbench.editor.enablePreview": false,
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
}
18 changes: 9 additions & 9 deletions Dockerfile.dev → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ WORKDIR /usr/src/chp_api
RUN apt-get update \
&& apt-get install -y git python3-pip python3-dev dos2unix

RUN git clone --single-branch --branch production https://github.com/di2ag/trapi_model.git
RUN git clone --single-branch --branch production https://github.com/di2ag/reasoner-validator.git
RUN git clone --single-branch --branch production https://github.com/di2ag/chp_utils.git
RUN git clone --single-branch --branch production https://github.com/di2ag/chp_look_up.git
RUN git clone --single-branch --branch production https://github.com/di2ag/chp_learn.git
RUN git clone --single-branch --branch production https://github.com/di2ag/gene-specificity.git
RUN git clone --single-branch --branch master https://github.com/di2ag/trapi_model.git
RUN git clone --single-branch --branch master https://github.com/di2ag/reasoner-validator.git
RUN git clone --single-branch --branch master https://github.com/di2ag/chp_utils.git
RUN git clone --single-branch --branch master https://github.com/di2ag/chp_look_up.git
RUN git clone --single-branch --branch master https://github.com/di2ag/chp_learn.git
RUN git clone --single-branch --branch master https://github.com/di2ag/gene-specificity.git

# lint
RUN pip3 install --upgrade pip
Expand Down Expand Up @@ -86,13 +86,13 @@ RUN python3 -m pip install --upgrade pip
RUN pip3 install --no-cache /wheels/*

# copy entry point
COPY ./entrypoint.prod.sh $APP_HOME
COPY ./entrypoint.sh $APP_HOME

# copy project
COPY ./chp_api $APP_HOME/chp_api
COPY ./manage.py $APP_HOME
COPY ./dispatcher $APP_HOME/dispatcher
COPY ./gunicorn.config-prod.py $APP_HOME
COPY ./gunicorn.config.py $APP_HOME

# chown all the files to the app user
RUN chown -R chp_api:chp_api $APP_HOME
Expand All @@ -101,4 +101,4 @@ RUN chown -R chp_api:chp_api $APP_HOME
USER chp_api

# run entrypoint.sh
ENTRYPOINT ["/home/chp_api/web/entrypoint.prod.sh"]
ENTRYPOINT ["/home/chp_api/web/entrypoint.sh"]
105 changes: 0 additions & 105 deletions Dockerfile.prod

This file was deleted.

104 changes: 0 additions & 104 deletions Dockerfile.stage

This file was deleted.

Loading

0 comments on commit f71849f

Please sign in to comment.