-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6987889
commit ea353a6
Showing
55 changed files
with
350 additions
and
2,022 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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.venv/ | ||
__pycache__/ | ||
*.egg-info/ | ||
dist/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.12.3 |
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,4 +1,8 @@ | ||
FROM docker.io/fnndsc/python-poetry:1.5.1 | ||
# Build instructions: see https://rye.astral.sh/guide/docker/ | ||
|
||
FROM python:3.12.3-alpine | ||
|
||
RUN --mount=source=dist,target=/dist PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir /dist/*.whl | ||
|
||
LABEL org.opencontainers.image.authors="Jennings Zhang <[email protected]>, FNNDSC <[email protected]>" \ | ||
org.opencontainers.image.title="ChRISomatic" \ | ||
|
@@ -7,11 +11,5 @@ LABEL org.opencontainers.image.authors="Jennings Zhang <Jennings.Zhang@childrens | |
org.opencontainers.image.source="https://github.com/FNNDSC/chrisomatic" \ | ||
org.opencontainers.image.licenses="MIT" | ||
|
||
WORKDIR /usr/local/src/chrisomatic | ||
COPY . . | ||
RUN poetry install --no-dev | ||
|
||
WORKDIR / | ||
# needs to write to docker daemon | ||
USER root | ||
CMD ["chrisomatic"] |
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
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,9 @@ | ||
FROM python:3.12.3-alpine | ||
|
||
WORKDIR /app | ||
COPY requirements-dev.lock requirements-dev.lock | ||
RUN --mount=type=cache,sharing=locked,target=/root/.cache/pip \ | ||
sed -i' ' -e '/-e file:\./d' requirements-dev.lock \ | ||
&& env PYTHONDONTWRITEBYTECODE=1 pip install -r requirements-dev.lock | ||
|
||
CMD ["pytest"] |
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,26 @@ | ||
services: | ||
dev: | ||
build: | ||
context: . | ||
dockerfile: dev.Dockerfile | ||
command: pytest --color=yes --code-highlight=yes | ||
networks: | ||
minichris: | ||
userns_mode: host | ||
user: root | ||
working_dir: /app | ||
volumes: | ||
- "wd:/app:rw" | ||
- "./src/chrisomatic:/app/chrisomatic:ro" | ||
- "./tests:/app/tests:ro" | ||
- "./scripts:/app/scripts:ro" | ||
- "./pytest.ini:/app/pytest.ini:ro" | ||
- "/var/run/docker.sock:/var/run/docker.sock:rw" | ||
|
||
networks: | ||
minichris: | ||
external: true | ||
name: minichris-local | ||
|
||
volumes: | ||
wd: |
Oops, something went wrong.