Skip to content
Snippets Groups Projects
Commit 65ca57d2 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Bootstrap a container for swh.alter

parent 3825cc7c
No related branches found
No related tags found
No related merge requests found
FROM python:3.11-bullseye
ARG user=swh
ARG workdir=/opt/${user}
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install -y libcmph-dev librdkafka-dev libsystemd-dev \
netcat-openbsd jq dnsutils \
sed curl telnet host emacs-nox vim postgresql-client && \
apt clean && \
addgroup --gid 1000 ${user} && \
useradd --gid 1000 --uid 1000 -m -d ${workdir} ${user} && \
mkdir /etc/${user}
USER ${user}
WORKDIR ${workdir}
ENV CARGO_HOME="${workdir}/.cargo"
ENV RUSTUP_HOME="${workdir}/.rustup"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup-init.sh && \
chmod +x /tmp/rustup-init.sh && \
/tmp/rustup-init.sh -y && \
rm /tmp/rustup-init.sh
ENV PATH="${CARGO_HOME}/bin:${PATH}"
# install rage (for swh-alter)
# Use the latest available version so we can detect if rage behavior has changed when
# testing swh-alter. Otherwise, this might only be detected when processing a
# takedown notice or restoring a bundle… which would not be a nice experience.
RUN cargo install rage
COPY --chown=${user}:${user} requirements-frozen.txt ${workdir}
ENV PYTHONPATH=${workdir}
ENV PATH=${workdir}/.local/bin:$PATH
RUN /usr/local/bin/python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements-frozen.txt
COPY --chown=${user}:${user} entrypoint.sh ${workdir}
RUN chmod u+x ${workdir}/entrypoint.sh
ENTRYPOINT "/opt/swh/entrypoint.sh"
#!/bin/bash
set -e
echo "swh-alter pod: connect to it and do what you will!"
while sleep infinity; do :; done
aiohttp==3.9.5
aiohttp-utils==3.2.1
aiosignal==1.3.1
apache-libcloud==3.8.0
attrs==23.2.0
attrs-strict==1.0.1
azure-core==1.30.1
azure-storage-blob==12.20.0
blinker==1.8.2
boto3==1.34.119
botocore==1.34.119
cachetools==5.3.3
cassandra-driver==3.29.1
certifi==2024.6.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
confluent-kafka==2.4.0
cryptography==42.0.8
Deprecated==1.2.14
elasticsearch==7.17.9
Flask==3.0.3
frozendict==2.4.4
frozenlist==1.4.1
geomet==0.2.1.post1
grpcio==1.64.1
grpcio-tools==1.62.2
gunicorn==22.0.0
hypothesis==6.103.0
idna==3.7
igraph==0.11.5
iso8601==2.1.0
isodate==0.6.1
itsdangerous==2.2.0
Jinja2==3.1.4
jmespath==1.0.1
latexcodec==3.0.0
lxml==5.2.2
MarkupSafe==2.1.5
msgpack==1.0.8
multidict==6.0.5
mypy-extensions==1.0.0
mypy-protobuf==3.2.0
packaging==24.0
plyvel==1.5.1
protobuf==4.25.3
psutil==5.9.8
psycopg2==2.9.9
py4j==0.10.9.7
pybtex==0.24.0
pycparser==2.22
PyLD==2.0.4
pyorc==0.9.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-magic==0.4.27
python-mimeparse==1.6.0
PyYAML==6.0.1
rdflib==7.0.0
redis==5.0.4
requests==2.32.3
s3transfer==0.10.1
sentry-sdk==2.4.0
shamir-mnemonic==0.3.0
six==1.16.0
sortedcontainers==2.4.0
swh.alter==0.0.7
swh.core==3.2.0
swh.counters==0.11.0
swh.dataset==1.5.1
swh.graph==3.4.0
swh.indexer==3.2.0
swh.journal==1.5.2
swh.model==6.13.1
swh.objstorage==3.1.2
swh.perfecthash==1.3.0
swh.search==0.20.0
swh.storage==2.4.2
tenacity==8.3.0
texttable==1.7.0
tqdm==4.66.4
tree-sitter==0.21.3
types-protobuf==5.26.0.20240422
types-requests==2.31.0.6
types-urllib3==1.26.25.14
typing_extensions==4.12.1
urllib3==1.26.18
Werkzeug==3.0.3
wrapt==1.16.0
xmltodict==0.13.0
yarl==1.9.4
swh.alter
swh.objstorage[azure,libcloud]
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