Skip to content

Commit

Permalink
Set SGE env explicitly so login shell not required
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Oct 11, 2024
1 parent 05acc12 commit e3cd1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions tests/integration/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ COPY ./tests/integration/dockerfiles/sge_startup.sh /etc/startup.sh
RUN ln -s /opt/sge/bin/lx-amd64/qstat /usr/bin/qstat && \
ln -s /opt/sge/bin/lx-amd64/qsub /usr/bin/qsub

# Echo the SGE environment variables to the default /etc/profile
RUN echo "export SGE_ROOT=/opt/sge" >> /etc/profile && \
echo "export SGE_CLUSTER_NAME=p6444" >> /etc/profile && \
echo "export SGE_CELL=default" >> /etc/profile

#HEALTHCHECK CMD qstat -f || exit 1

# 2) Add common options from ubuntu server
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/dockerfiles/sge_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,3 @@ SCRIPT
if [[ ${sudo_cmd} ]]; then
sudo -k
fi

# Load the relevant SGE environment on shell startup
echo "source /opt/sge/default/common/settings.sh" >> /home/jobflow/.bashrc

0 comments on commit e3cd1a3

Please sign in to comment.