Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory committed May 3, 2022
1 parent 30d5b29 commit 460f226
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
# WORKDIR /rocrate-maker-fast-api
# copy the contents into the working dir
COPY ./app /app
COPY ./start-api-server.sh /app/start-api-server.sh
RUN chmod +x /app/start-api-server.sh
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
RUN apt-get install git
# run pip install to install dependencies of the flasdk app
#RUN pip install -r requirements.txt
# define commnd to start the api webserver
Expand Down
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ requests==2.23.0
rocrate==0.5.5
SPARQLWrapper==2.0.0
validators==0.18.2
git-python
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ version: "3.7"
# be.vliz.container.vcs-url: Link to version control
# be.vliz.container.docs-url: Link to documentation
# ==============
# volumes:
# eurobis_data:
# erddap_content:
volumes:
user_data:

networks:
crate_net:
Expand All @@ -22,14 +21,16 @@ services:
context: ./backend/.
dockerfile: Dockerfile
container_name: crate-backend
volumes:
- user_data:/app/webtop-work-space
ports:
- 6656:80
networks:
- crate_net
env_file:
- .env
restart: unless-stopped
# command: python /code/main.py -ll '${LOGLEVEL}'
command: /app/start-api-server.sh
logging:
driver: json-file
options:
Expand All @@ -53,11 +54,11 @@ services:
# - crate_net
# ports:
# - ${CRATE_EXPOSE_PORT:-8080}:80
# # volumes:
# # - eurobis_data:/erddapData/
# env_file:
# - .env
# restart: unless-stopped
# depends_on:
# crate-backend
# logging:
# driver: json-file
# options:
Expand Down

0 comments on commit 460f226

Please sign in to comment.