-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerization of sge #25
Comments
I've managed to build simple-sge. ( https://github.com/kgutwin/simple-sge ) FROM ubuntu:16.04
# SET UP THE REPOSITORY
# Update the apt package index and install packages to allow apt to use a repository over HTTPS:
RUN apt-get update -y
RUN apt-get remove -y docker docker-engine docker.io containerd runc
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# Add Docker’s official GPG key:
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88,
# by searching for the last 8 characters of the fingerprint.
RUN apt-key fingerprint 0EBFCD88
# Use the following command to set up the stable repository.
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Update the apt package index, and install the latest version of Docker Engine and containerd,
# or go to the next step to install a specific version:
RUN apt-get update -y
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
ADD install-sge.sh /root/install-sge.sh
ADD boot-sge.sh /root/boot-sge.sh
RUN apt-get update -y && apt-get upgrade -y && bash /root/install-sge.sh
ENV PATH="${PATH}:/opt/sge/bin/lx-amd64"
ENTRYPOINT ["/root/boot-sge.sh" but I get this error:
|
Thanks for trying this repo! I noticed that your code is
can you please change it to the line below and try it again?
|
|
'Yes "" | ./install_qmaster ' in docker failed at the last step. Error message is
This is a both weird and interesting use case, I am not sure if you can achieve your goal. For example, If you only need to run 'qsub/qstat', your don't need to run qmaster inside docker. |
Further, after 'cmake install..', you can run 'qsub/qstat' as long as you copied the /opt/sge/default/common from the master node, and set environment variable SGE_ROOT. Please post an update. I am interested as I do see the value of your 'weird environment'. :D |
Sorry I wasn't able to get back on this, I've been moved to something else and I'm no longer able to touch this setup. |
Thanks for the update! |
I just wanted to necro this issue (please feel free to tell me to make another!) as I've been going through a similar process of containerising this version of SGE for our test runner at https://github.com/Matgenix/jobflow-remote. I have a multi-stage build that switches out either Slurm or SGE (and probably others in the future). I hit the same point as the above story, i.e., failing to launch Some differences:
EDIT: This warned me off trying to run
Thanks for the hard work packaging up SGE in this way, outside of Docker this works nicely for us! |
Thanks for maintaining this.
This isn't an issue per se ( feel free to close it ), but more of an inquiry since I've been unsuccessfully trying to dockerize this piece of software for testing purposes, following and trying to build upon both https://github.com/kgutwin/simple-sge and https://github.com/gawbul/docker-sge;
Ideally simple-sge is exactly what I need but with some small modifications ( some packages added ) but since I am not able to build a docker image starting from the simple-sge files I've been playing around both trying to dockerize this version of sge and trying to adapt gawbul/docker-sge files to what I need.
I stopped my initial attempt when I couldn't get past
yes "" | ./install_qmaster
but sometimes later I found out about
inst_sge
because it was used in the dockerfile of gawbul/docker-sge; Posting the whole file for informational purposes: ( please ignore the docker stuff, I'm trying to expose docker commands to sge, in theory )I cannot seem to be able to add a non-root user or start as a non-root user in the container started from an image based on phusion/baseimage ( phusion/baseimage-docker#617 ), I do not know if the documentation they have on github also applies to ubuntu:bionic and I cannot understand what this command does from
simple-sge
files: ( which I am not able to build )and since I cannot use qsub as root I'm thinking about trying to dockerize daimh/sge again but this time using
inst_sge some.conf
instead ofyes "" | ./install_qmaster
and similar scripts. gawbul/docker-sge@06145c5Do you have any knowledge about someone else attempting to do this ? What other problems might I encounter ? Am I doing something wrong ? Again, I know sge isn't supposed to run in a container, it's just for testing purposes.
Thank you, have a nice day.
EDIT: added a few links + fixes
The text was updated successfully, but these errors were encountered: