Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eos
eos-docker
Commits
ed981cfd
Commit
ed981cfd
authored
Feb 04, 2020
by
Mihai Patrascoiu
Browse files
Set up proper keytab permissions
parent
cccd839b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
ed981cfd
...
...
@@ -65,8 +65,11 @@ RUN yum install -y --nogpg install xrootd-client
# This is useful to deploy EOS on Kubernetes clusters running on CERN's Cloud
# Infrastructure; you can remove these lines if you don't need one.
RUN
yes
| xrdsssadmin
-k
eos-test del /etc/eos.keytab
;
\
yes
| xrdsssadmin
-u
daemon
-g
daemon
-k
eos-test+
-n
1234567890123456789 add /etc/eos.keytab
;
\
chown
daemon:daemon /etc/eos.keytab
yes
| xrdsssadmin
-u
daemon
-g
daemon
-k
eos-test+
-n
1234567890123456789 add /etc/eos.keytab
# Setup keytab permissions
RUN
chown
daemon:daemon /etc/eos.keytab
;
\
chmod
400 /etc/eos.keytab
# Change owner of /var/spool/xrootd directory to daemon
RUN
chown
daemon:daemon /var/spool/xrootd
...
...
Dockerfile_asan
View file @
ed981cfd
...
...
@@ -46,7 +46,10 @@ RUN createrepo ${EOSREPODIR}; \
# Generate a new forwardable keytab 'eos-test+' to replace the not-forwardable one (installed by the eos-testkeytab package).
# This is useful to deploy EOS on Kubernetes clusters running on CERN's Cloud Infrastructure; you can remove these lines if you don't need one.
RUN yes | xrdsssadmin -k eos-test del /etc/eos.keytab; \
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab; \
chown daemon:daemon /etc/eos.keytab
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab
# Setup keytab permissions
RUN chown daemon:daemon /etc/eos.keytab; \
chmod 400 /etc/eos.keytab
ENTRYPOINT ["/bin/bash"]
Dockerfile_c8
View file @
ed981cfd
...
...
@@ -50,8 +50,11 @@ RUN createrepo ${EOSREPODIR}; \
# This is useful to deploy EOS on Kubernetes clusters running on CERN's Cloud
# Infrastructure; you can remove these lines if you don't need one.
RUN yes | xrdsssadmin -k eos-test del /etc/eos.keytab; \
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab; \
chown daemon:daemon /etc/eos.keytab
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab
# Setup keytab permissions
RUN chown daemon:daemon /etc/eos.keytab; \
chmod 400 /etc/eos.keytab
# Change owner of /var/spool/xrootd directory to daemon
RUN chown daemon:daemon /var/spool/xrootd
...
...
Dockerfile_coverage
View file @
ed981cfd
...
...
@@ -66,7 +66,10 @@ RUN mkdir -p /root/rpmbuild/BUILD/; \
# Generate a new forwardable keytab 'eos-test+' to replace the not-forwardable one (installed by the eos-testkeytab package).
# This is useful to deploy EOS on Kubernetes clusters running on CERN's Cloud Infrastructure; you can remove these lines if you don't need one.
RUN yes | xrdsssadmin -k eos-test del /etc/eos.keytab; \
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab; \
chown daemon:daemon /etc/eos.keytab
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab
# Setup keytab permissions
RUN chown daemon:daemon /etc/eos.keytab; \
chmod 400 /etc/eos.keytab
ENTRYPOINT ["/bin/bash"]
Dockerfile_ubuntu_bionic
View file @
ed981cfd
...
...
@@ -49,6 +49,6 @@ RUN apt-get install -y eos-client eos-fuse eos-fusex eos-test eos-testkeytab
# Change persmissions for keytab
RUN chown daemon:daemon /etc/eos.keytab; \
chmod
6
00 /etc/eos.keytab
chmod
4
00 /etc/eos.keytab
ENTRYPOINT ["/bin/bash"]
Dockerfile_ubuntu_disco
View file @
ed981cfd
...
...
@@ -49,6 +49,6 @@ RUN apt-get install -y eos-client eos-fuse eos-fusex eos-test eos-testkeytab
# Change persmissions for keytab
RUN chown daemon:daemon /etc/eos.keytab; \
chmod
6
00 /etc/eos.keytab
chmod
4
00 /etc/eos.keytab
ENTRYPOINT ["/bin/bash"]
Dockerfile_xrd_testing
View file @
ed981cfd
...
...
@@ -51,7 +51,10 @@ RUN createrepo ${EOSREPODIR}; \
# Generate a new forwardable keytab 'eos-test+' to replace the not-forwardable one (installed by the eos-testkeytab package).
# This is useful to deploy EOS on Kubernetes clusters running on CERN's Cloud Infrastructure; you can remove these lines if you don't need one.
RUN yes | xrdsssadmin -k eos-test del /etc/eos.keytab; \
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab; \
chown daemon:daemon /etc/eos.keytab
yes | xrdsssadmin -u daemon -g daemon -k eos-test+ -n 1234567890123456789 add /etc/eos.keytab
# Setup keytab permissions
RUN chown daemon:daemon /etc/eos.keytab; \
chmod 400 /etc/eos.keytab
ENTRYPOINT ["/bin/bash"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment