Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP docker edits
  • Loading branch information
CBroz1 committed May 5, 2022
commit c1435483506509e31186872d426a2b94d43ceb24
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.1.0] - 2021-05-04
### Added
+ Added version
7 changes: 4 additions & 3 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,29 @@ WORKDIR /main
RUN mkdir /main/element-lab \
/main/element-animal \
/main/element-session \
/main/element-event \
/main/element-interface \
/main/element-miniscope \
/main/workflow-miniscope

COPY --chown=anaconda:anaconda ./element-lab /main/element-lab
COPY --chown=anaconda:anaconda ./element-animal /main/element-animal
COPY --chown=anaconda:anaconda ./element-session /main/element-session
COPY --chown=anaconda:anaconda ./element-event /main/element-event
COPY --chown=anaconda:anaconda ./element-interface /main/element-interface
COPY --chown=anaconda:anaconda ./element-miniscope /main/element-miniscope
COPY --chown=anaconda:anaconda ./workflow-miniscope /main/workflow-miniscope

RUN pip install -e /main/element-lab
RUN pip install -e /main/element-animal
RUN pip install -e /main/element-session
RUN pip install -e /main/element-event
RUN pip install -e /main/element-interface
RUN pip install -e /main/element-miniscope
RUN rm -f /main/workflow-miniscope/dj_local_conf.json
# RUN rm -f /main/workflow-miniscope/dj_local_conf.json

# Install the workflow
RUN pip install /main/workflow-miniscope
RUN pip install -r /main/workflow-miniscope/requirements_test.txt

RUN pip uninstall datajoint
RUN pip install git+
WORKDIR /main/workflow-miniscope
2 changes: 1 addition & 1 deletion docker/apt_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ffmpeg
libsm6
libxext6
libhdf5-dev
pkg-config
pkg-config
5 changes: 3 additions & 2 deletions docker/docker-compose-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
build:
context: ../../
dockerfile: ./workflow-miniscope/docker/Dockerfile.test
env_file: .env
env_file: .env # TEST_DATA_DIR
image: workflow-miniscope-test:0.1.0
container_name: workflow-miniscope-test
environment:
Expand All @@ -39,11 +39,12 @@ services:
- ../../element-lab:/main/element-lab
- ../../element-animal:/main/element-animal
- ../../element-session:/main/element-session
- ../../element-event:/main/element-event
- ../../element-interface:/main/element-interface
- ../../element-miniscope:/main/element-miniscope
- ..:/main/workflow-miniscope
depends_on:
db:
condition: service_healthy
networks:
main:
main:
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# ------------------- SOME CONSTANTS -------------------

_tear_down = False
_tear_down = True
verbose = False

test_user_data_dir = pathlib.Path('./tests/user_data')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_paramset_insert(caiman2D_paramset, pipeline):
miniscope = pipeline['miniscope']
from element_interface.utils import dict_to_uuid

method, desc, paramset_hash = (miniscope.ProcessingParamSet & {'paramset_idx': 1}
method, desc, paramset_hash = (miniscope.ProcessingParamSet & {'paramset_idx': 0}
).fetch1('processing_method', 'paramset_desc',
'param_set_hash')
assert method == 'caiman'
Expand Down