-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
Added some unittests
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
FROM python:3.11-bookworm | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install --assume-yes --no-install-recommends \ | ||
ca-certificates git wget | ||
|
||
ADD requirements.txt /usr/local/share/ya16sdb/ | ||
ADD bin/bootstrap.sh /usr/local/share/ya16sdb/bin/ | ||
|
||
ARG MEFETCH_API_KEY MEFETCH_EMAIL YA16SDB_VERSION | ||
Check warning on line 2 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 2 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 2 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 2 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
|
||
ENV \ | ||
Check warning on line 3 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 3 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 3 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
Check warning on line 3 in Dockerfile GitHub Actions / build_and_test_pipeline_imageSensitive data should not be used in the ARG or ENV commands
|
||
MEFETCH_API_KEY=${MEFETCH_API_KEY} \ | ||
MEFETCH_EMAIL=${MEFETCH_EMAIL} \ | ||
PIP_ROOT_USER_ACTION=ignore \ | ||
SCONSFLAGS="--file /usr/local/share/ya16sdb/SConstruct" \ | ||
YA16SDB_VERSION=${YA16SDB_VERSION} | ||
RUN apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates wget | ||
WORKDIR /usr/local/share/ya16sdb/ | ||
RUN ["/bin/bash", "-c", "bin/bootstrap.sh /usr/local/"] | ||
|
||
ADD .git/ /usr/local/share/ya16sdb/.git/ | ||
ADD data/ /usr/local/share/ya16sdb/data/ | ||
ADD bin/ /usr/local/share/ya16sdb/bin/ | ||
ADD SConstruct ncbi.conf /usr/local/share/ya16sdb/ | ||
|
||
RUN find /usr/local/share/ya16sdb/ -type f -exec chmod 644 {} \; && \ | ||
find /usr/local/share/ya16sdb/ -type d -exec chmod 755 {} \; && \ | ||
find /usr/local/share/ya16sdb/bin/ -type f -exec chmod 755 {} \; | ||
|
||
ENV SCONSFLAGS="--file /usr/local/share/ya16sdb/SConstruct" | ||
|
||
COPY requirements.txt SConstruct ncbi.conf ./ | ||
COPY testfiles/ ./testfiles/ | ||
COPY tests/ ./tests/ | ||
COPY bin/ ./bin/ | ||
COPY data/ ./data/ | ||
RUN bin/bootstrap.sh /usr/local/ | ||
RUN find . -type f -exec chmod 644 {} \; && \ | ||
find . -type d -exec chmod 755 {} \; && \ | ||
find ./bin/ -type f -exec chmod 755 {} \; | ||
CMD ["scons", "--dry-run"] |