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

Added symlinking of buildtree in bin/lib.

Fixed home directory not readable (prevented the frontend from running).
Added installation of CASTOR's rmcd to the image.
parent 4e19482b
No related branches found
No related tags found
No related merge requests found
Showing
with 66 additions and 2 deletions
......@@ -9,6 +9,7 @@ passwd eric
cat >> /etc/sudoers << EOFsudoers
eric ALL=(ALL) NOPASSWD: ALL
EOFsudoers
chmod a+rx ~eric
sudo -u eric cp /vmBootstrap/gitScripts/.git-* ~eric/
cat /vmBootstrap/gitScripts/bash_profile.hook >> ~eric/.bash_profile
sudo -u eric cp /vmBootstrap/tigConf/tigrc ~eric/.tigrc
......
#!/bin/bash
/opt/run/bin/init_pod.sh
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
/opt/run/bin/init_pod.sh
yes | cp -r /opt/ci/ctafrontend/etc /
/opt/run/bin/init_objectstore.sh
......
#!/bin/sh
/opt/run/bin/init_pod.sh
echo "Using this configuration for library:"
/opt/run/bin/init_library.sh
cat /tmp/library-rc.sh
......
......@@ -8,3 +8,6 @@ echo "DONE"
#echo -n "Yum should resolve names using IPv4 DNS: "
#echo "ip_resolve=IPv4" >> /etc/yum.conf
#echo "DONE"
# Here we will symlink the builtree's contents to /usr/bin and /usr/lib64.
/opt/run/bin/mkSymlinks.sh
......@@ -9,6 +9,7 @@ cat /tmp/library-rc.sh
. /tmp/library-rc.sh
# to get rmcd logs to stdout
mkdir -p /var/log/castor
mkfifo /var/log/castor/rmcd_legacy.log
for ((;;)); do cat </var/log/castor/rmcd_legacy.log; done &
disown
......
......@@ -70,7 +70,7 @@ tail -F /cta-taped.log &
# working correctly
echo BUILDTREE_BASE=${BUILDTREE_BASE}
echo BUILDTREE_SUBDIR=${BUILDTREE_SUBDIR}
runuser -c "${BUILDTREE_BASE}/${BUILDTREE_SUBDIR}/tapeserver/cta-taped ${CTA_TAPED_OPTIONS}"
runuser -c "/usr/bin/cta-taped ${CTA_TAPED_OPTIONS}"
echo "taped died"
......
......@@ -55,6 +55,8 @@ RUN yum install -y \
# Populate local repository and enable it, then install any rpm that is needed for
# any container. Finally add needed directories.
RUN yum-config-manager --enable epel --setopt="epel.priority=4" \
&& \
yum-config-manager --enable castor \
&& \
yum install -y\
eos-client \
......@@ -81,6 +83,7 @@ RUN yum-config-manager --enable epel --setopt="epel.priority=4" \
protobuf3 \
cryptopp \
json-c \
castor-rmc-server \
&& \
yum clean all \
&& \
......
......@@ -71,7 +71,7 @@ tail -F /cta-taped.log &
# cta-taped is ran with runuser to avoid a bug with Docker that prevents both
# the setresgid(-1, 1474, -1) and setresuid(-1, 14029, -1) system calls from
# working correctly
runuser -c "/bin/cta-taped ${CTA_TAPED_OPTIONS}"
runuser -c "/usr/bin/cta-taped ${CTA_TAPED_OPTIONS}"
echo "taped died"
......
......@@ -21,6 +21,16 @@ spec:
fieldPath: metadata.namespace
- name: INSTANCE_NAME
value: "$(MY_NAMESPACE)"
- name: BUILDTREE_BASE
valueFrom:
configMapKeyRef:
name: buildtree
key: base
- name: BUILDTREE_SUBDIR
valueFrom:
configMapKeyRef:
name: buildtree
key: subdir
- name: TERM
value: "xterm"
command: ['/opt/run/bin/ctacli.sh']
......
......@@ -23,6 +23,16 @@ spec:
value: "$(MY_NAMESPACE)"
- name: frontend
value: 'cta-frontend:10955'
- name: BUILDTREE_BASE
valueFrom:
configMapKeyRef:
name: buildtree
key: base
- name: BUILDTREE_SUBDIR
valueFrom:
configMapKeyRef:
name: buildtree
key: subdir
- name: TERM
value: "xterm"
command: ['/opt/run/bin/ctaeos-mgm.sh']
......
......@@ -21,6 +21,16 @@ spec:
fieldPath: metadata.namespace
- name: INSTANCE_NAME
value: "$(MY_NAMESPACE)"
- name: BUILDTREE_BASE
valueFrom:
configMapKeyRef:
name: buildtree
key: base
- name: BUILDTREE_SUBDIR
valueFrom:
configMapKeyRef:
name: buildtree
key: subdir
- name: TERM
value: "xterm"
command: ['/opt/run/bin/ctafrontend.sh']
......
......@@ -31,6 +31,16 @@ spec:
configMapKeyRef:
name: init
key: keepobjectstore
- name: BUILDTREE_BASE
valueFrom:
configMapKeyRef:
name: buildtree
key: base
- name: BUILDTREE_SUBDIR
valueFrom:
configMapKeyRef:
name: buildtree
key: subdir
command: ['/opt/run/bin/init.sh']
args: ["none"]
volumeMounts:
......
......@@ -21,6 +21,16 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: BUILDTREE_BASE
valueFrom:
configMapKeyRef:
name: buildtree
key: base
- name: BUILDTREE_SUBDIR
valueFrom:
configMapKeyRef:
name: buildtree
key: subdir
- name: INSTANCE_NAME
value: "$(MY_NAMESPACE)"
- name: TERM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment