Verified Commit a0e4d0d4 authored by Adam Mercer's avatar Adam Mercer
Browse files

initial commit of Dockerfile

parent c6dca969
FROM ligo/base:el7
LABEL name="Koji Packager" \
maintainer="Adam Mercer <adam.mercer@ligo.org>" \
date="20190509" \
support="Best Effort"
# switch to upstream EPEL
RUN yum -y install epel-release && \
rm /etc/yum.repos.d/lscsoft-epel.repo && \
rm -rf /var/cache/yum/x86_64/7/lscsoft-epel
# install updates
RUN yum makecache && yum -y update
# install required packages
RUN yum -y install \
deltarpm \
emacs \
git-lfs \
git2u \
koji \
krb5-workstation \
ldg-client \
less \
mock \
python36 \
rpm-build \
rpmlint \
sudo \
vim \
wget && \
yum clean all
# setup environment
COPY /environment/sudoers.d/albert /etc/sudoers.d/albert
COPY /environment/koji.conf /etc/koji.conf
COPY /environment/krb5.conf /etc/krb5.conf
COPY /environment/mock /etc/mock
RUN mkdir /container
# setup user
RUN useradd -m -d /container/albert -s /bin/bash albert
RUN su - albert -c "git lfs install"
# enter shell
USER albert
WORKDIR /container/albert
CMD ["/bin/bash", "-l"]
\ No newline at end of file
[koji]
server = https://koji.ligo-la.caltech.edu/kojihub
weburl = https://koji.ligo-la.caltech.edu/koji
topurl = https://koji.ligo-la.caltech.edu/packages
krbservice = host
[libdefaults]
default_realm = LIGO.ORG
[realms]
LIGO.ORG = {
kdc = kdc.ligo.uwm.edu
kdc = auth1.ligo.org
kdc = auth3.ligo.org
kdc = auth7.ligo.org
kdc = auth8.ligo.org
}
[domain_realm]
ligo.org = LIGO.ORG
.ligo.org = LIGO.ORG
lscsoft-sl-7.6-x86_64.cfg
\ No newline at end of file
# mock config file for LSCSoft for Scientific Linux 7.6 + BackPorts Testing
config_opts['root'] = 'lscsoft-sl-7.6-backports-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install @buildsys-build python python34 python36 python-rpm-macros python2-rpm-macros python3-rpm-macros'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
config_opts['releasever'] = '7'
config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[sl76]
name=Scientific Linux 7.6 - $basearch
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-security]
name=Scientific Linux 7.6 - $basearch - security updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/security
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-fastbugs]
name=Scientific Linux 7.6 - $basearch - bugfix updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[lscsoft-epel]
name=lscsoft-epel
baseurl=http://software.ligo.org/lscsoft/epel/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[lscsoft-backports]
name = lscsoft-backports
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports/
enabled = 1
gpgcheck = 0
[lscsoft-backports-testing]
name = lscsoft-backports-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports-testing/
enabled = 1
gpgcheck = 0
[lscsoft-production]
name = lscsoft-production
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production/
enabled = 1
gpgcheck = 0
[lscsoft-production-staging]
name = lscsoft-production-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production-staging/
enabled = 1
gpgcheck = 0
[lscsoft-testing]
name = lscsoft-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/testing/
enabled = 1
gpgcheck = 0
[lscsoft-staging]
name = lscsoft-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/staging/
enabled = 1
gpgcheck = 0
[lscsoft-ius]
name = lscsoft-ius
baseurl = http://software.ligo.org/lscsoft/ius/7/$basearch/
enabled = 1
gpgcheck = 0
[lscsoft-htcondor]
name = condor
baseurl = http://omen.phys.uwm.edu/condor-yum/rhel7/
enabled = 1
gpgcheck = 1
gpgkey = http://omen.phys.uwm.edu/condor-yum/RPM-GPG-KEY-HTCondor
"""
# mock config file for LSCSoft for Scientific Linux 7.6 - Upstream EPEL
config_opts['root'] = 'lscsoft-sl-7.6-epel-testing-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install @buildsys-build python python34 python36 python-rpm-macros python2-rpm-macros python3-rpm-macros'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
config_opts['releasever'] = '7'
config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[sl76]
name=Scientific Linux 7.6 - $basearch
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-security]
name=Scientific Linux 7.6 - $basearch - security updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/security
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-fastbugs]
name=Scientific Linux 7.6 - $basearch - bugfix updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[upstream-epel]
name=lscsoft-epel
baseurl=http://omen.phys.uwm.edu/epel/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[upstream-epel-testing]
name=upstream-epel-testing
baseurl=http://omen.phys.uwm.edu/epel/testing/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[lscsoft-backports]
name = lscsoft-backports
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports/
enabled = 1
gpgcheck = 0
[lscsoft-production]
name = lscsoft-production
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production/
enabled = 1
gpgcheck = 0
[lscsoft-production-staging]
name = lscsoft-production-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production-staging/
enabled = 1
gpgcheck = 0
[lscsoft-testing]
name = lscsoft-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/testing/
enabled = 1
gpgcheck = 0
[lscsoft-staging]
name = lscsoft-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/staging/
enabled = 1
gpgcheck = 0
[lscsoft-ius]
name = lscsoft-ius
baseurl = http://software.ligo.org/lscsoft/ius/7/$basearch/
enabled = 1
gpgcheck = 0
[lscsoft-htcondor]
name = condor
baseurl = http://omen.phys.uwm.edu/condor-yum/rhel7/
enabled = 1
gpgcheck = 1
gpgkey = http://omen.phys.uwm.edu/condor-yum/RPM-GPG-KEY-HTCondor
"""
# mock config file for LSCSoft for Scientific Linux 7.6 - Upstream EPEL
config_opts['root'] = 'lscsoft-sl-7.6-epel-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install @buildsys-build python python34 python36 python-rpm-macros python2-rpm-macros python3-rpm-macros'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
config_opts['releasever'] = '7'
config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[sl76]
name=Scientific Linux 7.6 - $basearch
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-security]
name=Scientific Linux 7.6 - $basearch - security updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/security
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-fastbugs]
name=Scientific Linux 7.6 - $basearch - bugfix updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[upstream-epel]
name=upstream-epel
baseurl=http://omen.phys.uwm.edu/epel/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[lscsoft-backports]
name = lscsoft-backports
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports/
enabled = 1
gpgcheck = 0
[lscsoft-production]
name = lscsoft-production
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production/
enabled = 1
gpgcheck = 0
[lscsoft-production-staging]
name = lscsoft-production-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production-staging/
enabled = 1
gpgcheck = 0
[lscsoft-testing]
name = lscsoft-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/testing/
enabled = 1
gpgcheck = 0
[lscsoft-staging]
name = lscsoft-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/staging/
enabled = 1
gpgcheck = 0
[lscsoft-ius]
name = lscsoft-ius
baseurl = http://software.ligo.org/lscsoft/ius/7/$basearch/
enabled = 1
gpgcheck = 0
[lscsoft-htcondor]
name = condor
baseurl = http://omen.phys.uwm.edu/condor-yum/rhel7/
enabled = 1
gpgcheck = 1
gpgkey = http://omen.phys.uwm.edu/condor-yum/RPM-GPG-KEY-HTCondor
"""
# mock config file for LSCSoft for Scientific Linux 7.6 with SCL
config_opts['root'] = 'lscsoft-sl-7.6-scl-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install @buildsys-build python python34 python36 python-rpm-macros python2-rpm-macros python3-rpm-macros'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
config_opts['releasever'] = '7'
config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[sl76]
name=Scientific Linux 7.6 - $basearch
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-security]
name=Scientific Linux 7.6 - $basearch - security updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/security
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-fastbugs]
name=Scientific Linux 7.6 - $basearch - bugfix updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[lscsoft-epel]
name=lscsoft-epel
baseurl=http://software.ligo.org/lscsoft/epel/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[lscsoft-backports]
name = lscsoft-backports
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports/
enabled = 1
gpgcheck = 0
[lscsoft-production]
name = lscsoft-production
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production/
enabled = 1
gpgcheck = 0
[lscsoft-production-staging]
name = lscsoft-production-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production-staging/
enabled = 1
gpgcheck = 0
[lscsoft-testing]
name = lscsoft-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/testing/
enabled = 1
gpgcheck = 0
[lscsoft-staging]
name = lscsoft-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/staging/
enabled = 1
gpgcheck = 0
[lscsoft-ius]
name = lscsoft-ius
baseurl = http://software.ligo.org/lscsoft/ius/7/$basearch/
enabled = 1
gpgcheck = 0
[lscsoft-htcondor]
name = condor
baseurl = http://omen.phys.uwm.edu/condor-yum/rhel7/
enabled = 1
gpgcheck = 1
gpgkey = http://omen.phys.uwm.edu/condor-yum/RPM-GPG-KEY-HTCondor
[scl-rh]
name = CentOS SCLrh
baseurl = http://mirror.centos.org/centos/7/sclo/$basearch/rh/
gpgcheck = 1
gpgkey = https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo
"""
# mock config file for LSCSoft for Scientific Linux 7.6
config_opts['root'] = 'lscsoft-sl-7.6-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['chroot_setup_cmd'] = 'install @buildsys-build python python34 python36 python-rpm-macros python2-rpm-macros python3-rpm-macros'
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
config_opts['releasever'] = '7'
config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[sl76]
name=Scientific Linux 7.6 - $basearch
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/os
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-security]
name=Scientific Linux 7.6 - $basearch - security updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/security
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[sl76-fastbugs]
name=Scientific Linux 7.6 - $basearch - bugfix updates
baseurl=http://omen.phys.uwm.edu/scientificlinux/7.6/$basearch/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7
[lscsoft-epel]
name=lscsoft-epel
baseurl=http://software.ligo.org/lscsoft/epel/7/x86_64/
failovermethod=priority
exclude=*globus* gsi-openssh*
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[lscsoft-backports]
name = lscsoft-backports
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/backports/
enabled = 1
gpgcheck = 0
[lscsoft-production]
name = lscsoft-production
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production/
enabled = 1
gpgcheck = 0
[lscsoft-production-staging]
name = lscsoft-production-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/production-staging/
enabled = 1
gpgcheck = 0
[lscsoft-testing]
name = lscsoft-testing
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/testing/
enabled = 1
gpgcheck = 0
[lscsoft-staging]
name = lscsoft-staging
baseurl = http://software.ligo.org/lscsoft/scientific/7/$basearch/staging/
enabled = 1
gpgcheck = 0
[lscsoft-ius]
name = lscsoft-ius
baseurl = http://software.ligo.org/lscsoft/ius/7/$basearch/
enabled = 1
gpgcheck = 0
[lscsoft-htcondor]
name = condor
baseurl = http://omen.phys.uwm.edu/condor-yum/rhel7/
enabled = 1
gpgcheck = 1
gpgkey = http://omen.phys.uwm.edu/condor-yum/RPM-GPG-KEY-HTCondor
"""
albert ALL=(ALL) NOPASSWD:ALL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment