-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from rcarpa/servers_auth_alma9
servers and daemons: build alma9 images
- Loading branch information
Showing
7 changed files
with
146 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright European Organization for Nuclear Research (CERN) 2023 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# You may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
FROM almalinux:9 | ||
|
||
ARG TAG | ||
|
||
WORKDIR /tmp | ||
|
||
RUN dnf install -y epel-release.noarch && \ | ||
dnf upgrade -y && \ | ||
dnf install -y \ | ||
fetch-crl \ | ||
gfal2-plugin-file \ | ||
gfal2-plugin-gridftp \ | ||
gfal2-plugin-http \ | ||
gfal2-plugin-srm \ | ||
gfal2-plugin-xrootd \ | ||
libnsl \ | ||
libaio \ | ||
patch \ | ||
python-gfal2 \ | ||
procps-ng \ | ||
python-pip \ | ||
python-mod_wsgi \ | ||
sendmail \ | ||
sendmail-cf \ | ||
memcached \ | ||
xrootd-client && \ | ||
dnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
RUN rpm -i https://download.oracle.com/otn_software/linux/instantclient/1912000/oracle-instantclient19.12-basiclite-19.12.0.0.0-1.x86_64.rpm; \ | ||
echo "/usr/lib/oracle/19/client64/lib" >/etc/ld.so.conf.d/oracle.conf; \ | ||
ldconfig | ||
|
||
RUN python3 -m pip install --no-cache-dir --upgrade pip && \ | ||
python3 -m pip install --no-cache-dir --upgrade setuptools | ||
RUN python3 -m pip install --no-cache-dir --pre rucio[oracle,mysql,postgresql]==$TAG | ||
|
||
RUN python3 -m pip install --no-cache-dir j2cli | ||
ADD rucio.config.default.cfg /tmp/ | ||
ADD start-daemon.sh / | ||
|
||
RUN mkdir /var/log/rucio | ||
|
||
VOLUME /var/log/rucio | ||
VOLUME /opt/rucio/etc | ||
|
||
ENTRYPOINT ["/start-daemon.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright European Organization for Nuclear Research (CERN) 2017 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# You may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
FROM almalinux:9 | ||
|
||
ARG TAG | ||
|
||
WORKDIR /tmp | ||
|
||
RUN dnf install -y epel-release.noarch && \ | ||
dnf upgrade -y && \ | ||
dnf install -y \ | ||
gridsite \ | ||
libnsl \ | ||
libaio \ | ||
patch \ | ||
procps-ng \ | ||
python-pip \ | ||
python-mod_wsgi \ | ||
memcached && \ | ||
dnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
RUN rpm -i https://download.oracle.com/otn_software/linux/instantclient/1912000/oracle-instantclient19.12-basiclite-19.12.0.0.0-1.x86_64.rpm; \ | ||
echo "/usr/lib/oracle/19/client64/lib" >/etc/ld.so.conf.d/oracle.conf; \ | ||
ldconfig | ||
|
||
RUN python3 -m pip install --no-cache-dir --upgrade pip && \ | ||
python3 -m pip install --no-cache-dir --upgrade setuptools | ||
RUN python3 -m pip install --no-cache-dir --pre rucio[oracle,mysql,postgresql]==$TAG | ||
|
||
RUN python3 -m pip install --no-cache-dir j2cli | ||
ADD gacl /etc/httpd/ | ||
ADD rucio.config.default.cfg /tmp/ | ||
ADD rucio.conf.j2 /tmp/ | ||
ADD httpd.conf.j2 /tmp/ | ||
ADD 00-mpm.conf.j2 /tmp/ | ||
ADD docker-entrypoint.sh / | ||
ADD robots.txt /var/www/html | ||
RUN rm /etc/httpd/conf.d/zgridsite.conf \ | ||
/etc/httpd/conf.d/welcome.conf \ | ||
/etc/httpd/conf.d/userdir.conf \ | ||
/etc/httpd/conf.d/ssl.conf | ||
RUN mkdir -p /var/log/rucio/trace && chown apache:apache /var/log/rucio/trace | ||
RUN mkdir -p /var/log/rucio/nongrid_trace && chown apache:apache /var/log/rucio/nongrid_trace | ||
|
||
RUN update-crypto-policies --set DEFAULT:SHA1 | ||
|
||
VOLUME /var/log/httpd | ||
VOLUME /opt/rucio/etc | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<gacl> | ||
<entry> | ||
<any-user/> | ||
<allow><read/><list/></allow> | ||
</entry> | ||
</gacl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters