This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from Teichlab/develop
Develop
- Loading branch information
Showing
7 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
./in/ | ||
./out/ | ||
./docker/ | ||
.dockerignore | ||
.git | ||
./venv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
image: docker:latest | ||
services: | ||
- docker:dind | ||
|
||
variables: | ||
IMAGE_BASENAME: registry.gitlab.com/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG | ||
DOCKER_DRIVER: overlay2 | ||
|
||
stages: | ||
- build | ||
|
||
before_script: | ||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com | ||
|
||
build-cellphonedb-queries: | ||
stage: build | ||
script: | ||
- docker pull $IMAGE_BASENAME || true | ||
- docker build --cache-from $IMAGE_BASENAME --pull -t $IMAGE_BASENAME . | ||
- docker push $IMAGE_BASENAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
ARG PYTHON_VERSION=3.7 | ||
FROM python:$PYTHON_VERSION | ||
|
||
RUN mkdir /app | ||
RUN mkdir /app /docker | ||
COPY requirements.txt /app | ||
COPY requirements-web.txt /app | ||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
RUN pip install -r requirements-web.txt | ||
COPY . /app | ||
|
||
CMD python -m unittest | ||
COPY ./docker /docker | ||
RUN mkdir -p /var/log/uwsgi | ||
RUN touch /var/log/uwsgi/cellphonedb.log | ||
CMD ["/docker/run-system.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
exec uwsgi --ini cellphonedb.ini --log-master |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
uWSGI>=2.0,<2.0.99 |