Skip to content

Commit

Permalink
feat: include entrypoint into docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jCHENEBY committed Nov 5, 2024
1 parent ecce9da commit 6156fb3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ RUN chown -R galaxy:galaxy /database
RUN mkdir /study
RUN chown 777 /study

# Import the entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN chown galaxy:galaxy /entrypoint.sh

# switch back to galaxy
USER galaxy

Expand All @@ -65,3 +70,5 @@ RUN sed -i 's|^[[:space:]]*tool_dependency_dir:.*|#&|' config/galaxy.yml
RUN pip install pandas matplotlib seaborn numpy scipy galaxy-lib numba dsnparse mysqlclient python-dotenv




19 changes: 19 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Clear the set_env.sh file
touch /galaxy/server/tools/plot_clusters_prevalence/.env

# Write the environment variables into the set_env.sh file
echo "UPLOAD_IMAGE_ENDPOINT=${UPLOAD_IMAGE_ENDPOINT}" >> /galaxy/server/tools/export_cbioportal_image/.env
echo "CBIOPORTAL_LOAD_RESOURCE_ENDPOINT=${CBIOPORTAL_LOAD_RESOURCE_ENDPOINT}" >> /galaxy/server/tools/export_cbioportal_image/.env
echo "IMAGE_BASE_URL=${IMAGE_BASE_URL}" >> /galaxy/server/tools/export_cbioportal_image/.env

touch /galaxy/server/tools/export_cbioportal_timeline/.env

echo "EXPORT_TIMELINE_ENDPOINT=${EXPORT_TIMELINE_ENDPOINT}" >> /galaxy/server/tools/export_cbioportal_timeline/.env




# Pass control to the default command or any other command specified
exec "$@"

0 comments on commit 6156fb3

Please sign in to comment.