Skip to content

Commit

Permalink
Add ontology related files to the local Docker env
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Mar 1, 2024
1 parent 055a0f1 commit 59b3aff
Show file tree
Hide file tree
Showing 8 changed files with 28,276 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GRADLE_RO_DEP_CACHE_VOL_NAME=gradle-ro-dep-cache

ATLAS_DATA_BIOENTITY_PROPERTIES_VOL_NAME=atlas-data-bioentity-properties
ATLAS_DATA_EXP_VOL_NAME=atlas-data-exp
ATLAS_DATA_ONTOLOGY_VOL_NAME=atlas-data-ontology
ATLAS_DATA_EXPDESIGN_VOL_NAME=atlas-data-expdesign
ATLAS_DATA_VOL_NAME=gxa-data

Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
- bioentity-properties:/atlas-data/bioentity_properties:ro
- gxa-exp:/atlas-data/exp:ro
- gxa-expdesign:/atlas-data/expdesign
- gxa-ontology:/atlas-data/ontology
depends_on:
gxa-solrcloud-0:
condition: service_started
Expand All @@ -36,6 +37,8 @@ volumes:
name: ${PROJECT_NAME}_${ATLAS_DATA_EXP_VOL_NAME}
gxa-expdesign:
name: ${PROJECT_NAME}_${ATLAS_DATA_EXPDESIGN_VOL_NAME}
gxa-ontology:
name: ${PROJECT_NAME}_${ATLAS_DATA_ONTOLOGY_VOL_NAME}

networks:
atlas-test-net:
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-compose-tomcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- gxa-data:/atlas-data/exp
- gxa-expdesign:/atlas-data/expdesign
- gxa-exp:/atlas-data/exp
- gxa-ontology:/atlas-data/ontology
- gxa-tomcat-conf:/usr/local/tomcat/conf
depends_on:
gxa-gradle-build:
Expand Down Expand Up @@ -46,6 +47,8 @@ volumes:
name: ${PROJECT_NAME}_${ATLAS_DATA_EXP_VOL_NAME}
gxa-expdesign:
name: ${PROJECT_NAME}_${ATLAS_DATA_EXPDESIGN_VOL_NAME}
gxa-ontology:
name: ${PROJECT_NAME}_${ATLAS_DATA_ONTOLOGY_VOL_NAME}

networks:
atlas-test-net:
Expand Down
1 change: 1 addition & 0 deletions docker/prepare-dev-environment/volumes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ RUN apt-get clean && \

# Copy the auxiliary JSON files to the parent of the magetab directory
COPY atlas-data/exp/* /atlas-data/exp/
COPY atlas-data/ontology/* /atlas-data/ontology/

ENTRYPOINT ["/bin/bash", "-c"]
14,559 changes: 14,559 additions & 0 deletions docker/prepare-dev-environment/volumes/atlas-data/ontology/anatomical_systems.txt

Large diffs are not rendered by default.

13,704 changes: 13,704 additions & 0 deletions docker/prepare-dev-environment/volumes/atlas-data/ontology/organs.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion docker/prepare-dev-environment/volumes/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ services:
volumes:
- atlas-data-bioentity-properties:/atlas-data/bioentity_properties
- atlas-data-exp:/atlas-data/exp
- atlas-data-ontology:/atlas-data/ontology
command:
- |
lftp -e \
"mirror -vvv /pub/databases/microarray/data/atlas/bioentity_properties /atlas-data/bioentity_properties; exit" \
ftp.ebi.ac.uk
# Create a directory for MAGETAB files
mkdir -p /atlas-data/exp/magetab
for EXP_ID in ${EXP_IDS}
Expand All @@ -26,3 +27,5 @@ volumes:
name: ${PROJECT_NAME}_${ATLAS_DATA_BIOENTITY_PROPERTIES_VOL_NAME}
atlas-data-exp:
name: ${PROJECT_NAME}_${ATLAS_DATA_EXP_VOL_NAME}
atlas-data-ontology:
name: ${PROJECT_NAME}_${ATLAS_DATA_ONTOLOGY_VOL_NAME}
1 change: 1 addition & 0 deletions docker/prepare-dev-environment/volumes/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ printf '%b\n' "🙂 All done! You can inspect the volume contents attaching them
printf '%b\n' " docker run \\"
printf '%b\n' " -v ${PROJECT_NAME}_${ATLAS_DATA_BIOENTITY_PROPERTIES_VOL_NAME}:/${ATLAS_DATA_BIOENTITY_PROPERTIES_VOL_NAME} \\"
printf '%b\n' " -v ${PROJECT_NAME}_${ATLAS_DATA_EXP_VOL_NAME}:/${ATLAS_DATA_EXP_VOL_NAME} \\"
printf '%b\n' " -v ${PROJECT_NAME}_${ATLAS_DATA_ONTOLOGY_VOL_NAME}:/${ATLAS_DATA_ONTOLOGY_VOL_NAME} \\"
printf '%b\n' " --rm -it ubuntu:jammy bash"

0 comments on commit 59b3aff

Please sign in to comment.