From: Bess Sadler <
be...@notch8.com>
Subject: [Globus Discuss] docker container?
Date: Wed, 20 Jan 2021 10:38:38 -0800 (PST)
> I am in the process of setting up a Globus end point and attempting to integrate it into a data repository system. We use docker and Kubernetes for the rest of this application, and I'd very much like to have a docker image for Globus. I have
> looked on the internet for a docker image of Globus 4.x and I have not so far found one. Before I start attempting to make one myself, can anyone tell me whether such a thing already exists?
Bess,
I didn't see anything when I went looking ~6-9 months ago.
Here's a starting point based on Centos7. It's a "fat" image that can have lots of stuff removed from the base c7 image:
FROM centos:7
USER root
# setup network
# reference from
https://github.com/dotcloud/docker/issues/1240#issuecomment-21807183
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
# Globus Connect Server
RUN curl -LOs
https://downloads.globus.org/toolkit/globus-connect-server/globus-connect-server-repo-latest.noarch.rpm \
&& yum -y install globus-connect-server-repo-latest.noarch.rpm
RUN curl -LOs
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& yum -y install epel-release-latest-7.noarch.rpm
RUN yum -y install yum-plugin-priorities \
&& yum -y install globus-connect-server
This will get you a docker image with the globus-connect-server installed. For our use I then proceed to install sssd-ldap and copy in an sssd.conf for our environment, along with a globus-connect-server.conf.
Then the ENTRYPOINT is set to a small shell script that starts sssd and runs globus-connect-server-setup, using the environment variables GLOBUS_USER and GLOBUS_PASSWORD, to register the endpoint with Globus. Finally the globus-gridftp-server is started.
We then start this container at bootup time, mounting the "external" volumes as needed into the container.
Hope this helps,
--Chan
Chan Wilson NOAA GFDL & RDHPCS Toolsmith
General Specialist, Information Technology and Agriculture
chandin...@noaa.gov +1-608-216-5689