-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathDockerfile_java
More file actions
57 lines (44 loc) · 2.21 KB
/
Copy pathDockerfile_java
File metadata and controls
57 lines (44 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM docker.io/almalinux:9
# Repos needed for (VOMS and FTS) and WLCG certs
ADD ca.repo /etc/yum.repos.d/ca.repo
ADD wlcg-el9.repo /etc/yum.repos.d/wlcg-el9.repo
# Enable EPEL
RUN dnf install -y yum-utils \
&& dnf config-manager --set-enabled crb \
&& dnf install -y epel-release
RUN dnf update -y && \
dnf upgrade -y && \
dnf clean all && \
rm -rf /var/cache/dnf
RUN dnf -y install httpd python-pip python-mod_wsgi libaio gcc python-devel mod_ssl openssl-devel python3-m2crypto libnsl patch xrootd-client && \
dnf clean all && \
rm -rf /var/cache/dnf
# Install latest kubectl
RUN curl -o /usr/bin/kubectl -L https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x /usr/bin/kubectl
# Install VOMS and FTS clients for delegating proxies
RUN dnf -y install ca-certificates.noarch ca-policy-lcg fetch-crl voms-clients-java fts-rest-cli \
wlcg-iam-lsc-atlas wlcg-iam-vomses-atlas wlcg-iam-lsc-cms wlcg-iam-vomses-cms \
python-pip python-setuptools python-requests && \
dnf clean all && \
rm -rf /var/cache/dnf
# Downgrade setuptools to avoid compatibility issues
# TODO: remove once https://github.com/rucio/containers/issues/458 is resolved
RUN dnf -y install https://vault.almalinux.org/9.6/BaseOS/x86_64/os/Packages/python3-setuptools-53.0.0-13.el9_6.1.noarch.rpm
RUN python3 -m pip install --no-cache-dir --upgrade pip
RUN python3 -m pip install --no-cache-dir --upgrade setuptools
COPY j2.py /usr/local/bin/
RUN python3 -m pip install --no-cache-dir jinja2 && \
ln -s j2.py /usr/local/bin/j2
RUN mkdir -p /opt/rucio/certs/
RUN mkdir -p /opt/rucio/kubeconfig/
RUN mkdir -p -m 775 /opt/rucio/fts-delegate/
ADD docker-entrypoint.sh /opt/rucio/fts-delegate/
ADD renew_fts_proxy.sh.j2 /opt/rucio/fts-delegate/
ADD renew_fts_proxy_atlas.sh.j2 /opt/rucio/fts-delegate/
ADD renew_fts_proxy_dteam.sh.j2 /opt/rucio/fts-delegate/
ADD renew_fts_proxy_tutorial.sh.j2 /opt/rucio/fts-delegate/
ADD renew_fts_proxy_multi_vo.sh.j2 /opt/rucio/fts-delegate/
ADD renew_fts_proxy_escape.sh.j2 /opt/rucio/fts-delegate/
ADD vomses/* /etc/vomses/
ENTRYPOINT ["/opt/rucio/fts-delegate/docker-entrypoint.sh"]