Skip to content
Snippets Groups Projects
Commit f2f22ef8 authored by Eric Cano's avatar Eric Cano
Browse files

Moved RPM installations from init scripts to image.

Also moved image build out of vmBootstap directory.
parent 4b4205b3
Branches
Tags
No related merge requests found
Showing
with 15 additions and 50 deletions
#!/bin/bash -e
echo Creating the docker image...
(cd ~/CTA; sudo docker build . -f continuousintegration/docker/buildtree-runner/cc7/Dockerfile -t buildtree-runner)
......@@ -56,7 +56,5 @@ sudo kubectl create -f ${dnspoddir}/pod-dns.yaml
rm -rf ${dnspoddir}
echo "DONE"
echo "DONE. A reboot might be necessary to get kubernetes networking to work..."
echo Creating the docker image...
(cd ~/CTA; sudo docker build . -f continuousintegration/docker/buildtree-runner/cc7/Dockerfile -t buildtree-runner)
......@@ -52,7 +52,8 @@ RUN yum install -y \
# Create local repo for cta artifacts and to cache RPMs locally
# Populate local repository and enable it
# Populate local repository and enable it, then install any rpm that is needed for
# any container.
RUN yum-config-manager --enable epel --setopt="epel.priority=4" \
&& \
yum install -y\
......@@ -69,6 +70,14 @@ RUN yum-config-manager --enable epel --setopt="epel.priority=4" \
lynx \
strace \
ltrace \
heimdal-server \
heimdal-workstation \
ceph-common \
mt-st \
mtx \
lsscsi \
sg3_utils \
castor-rmc-server \
&& \
yum clean all
......
#!/bin/bash
yum-config-manager --enable cta-artifacts
yum-config-manager --enable ceph
# Install missing RPMs
yum -y install cta-cli cta-debuginfo
cat <<EOF > /etc/cta/cta-cli.conf
# The CTA frontend address in the form <FQDN>:<TCPPort>
# solved by kubernetes DNS server so KIS...
......
#!/bin/sh
yum-config-manager --enable cta-artifacts
yum-config-manager --enable eos-citrine-commit
yum-config-manager --enable eos-citrine-depend
yum-config-manager --enable eos-citrine
# Install missing RPMs
yum -y install eos-client eos-server xrootd-client xrootd-debuginfo xrootd-server cta-cli cta-debuginfo
# fix reverse DNS for EOS
/opt/run/bin/init_pod.sh
......
#!/bin/sh
yum-config-manager --enable cta-artifacts
yum-config-manager --enable ceph
# Install missing RPMs
# cta-catalogueutils is needed to delete the db at the end of instance
yum -y install cta-frontend cta-debuginfo cta-catalogueutils ceph-common
yes | cp -r /opt/ci/ctafrontend/etc /
/opt/run/bin/init_objectstore.sh
......
#!/bin/sh
# enable cta repository from previously built artifacts
yum-config-manager --enable cta-artifacts
yum-config-manager --enable ceph
# install needed packages
yum -y install cta-objectstore-tools cta-doc mt-st mtx lsscsi sg3_utils cta-catalogueutils ceph-common
yum clean packages
echo "Using this configuration for library:"
/opt/run/bin/init_library.sh
cat /tmp/library-rc.sh
......
#!/bin/bash
# Install missing RPMs (kdc)
yum -y install heimdal-server heimdal-workstation
# Init the kdc store
echo -n "Initing kdc... "
/usr/lib/heimdal/bin/kadmin -l -r TEST.CTA init --realm-max-ticket-life=unlimited --realm-max-renewable-life=unlimited TEST.CTA || (echo Failed. ; exit 1)
......
#!/bin/sh
yum-config-manager --enable cta-artifacts
yum-config-manager --enable ceph
yum-config-manager --enable castor
# Install missing RPMs
yum -y install mt-st mtx lsscsi sg3_utils cta-taped cta-debuginfo castor-rmc-server
/opt/run/bin/init_pod.sh
# source library configuration file
......
#!/bin/sh
yum-config-manager --enable cta-artifacts
yum-config-manager --enable ceph
yum-config-manager --enable castor
# Install missing RPMs
yum -y install mt-st mtx lsscsi sg3_utils cta-taped cta-debuginfo castor-rmc-server ceph-common
/opt/run/bin/init_pod.sh
echo "Using this configuration for library:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment