forked from reanahub/reana-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): create
reana-client
container image
Closes reanahub#709
- Loading branch information
1 parent
3bdf802
commit 382cb10
Showing
3 changed files
with
70 additions
and
1 deletion.
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,48 @@ | ||
# This file is part of REANA. | ||
# Copyright (C) 2024 CERN. | ||
# | ||
# REANA is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
# Use Fedora 39 | ||
FROM registry.fedoraproject.org/fedora:38 | ||
|
||
# Install prerequisites | ||
# hadolint ignore=DL3033,DL3041 | ||
RUN dnf install -y \ | ||
python3-click \ | ||
python3-jsonpointer \ | ||
python3-pathspec \ | ||
python3-pip \ | ||
python3-pulp \ | ||
python3-smart_open \ | ||
python3-swagger-spec-validator \ | ||
python3-tablib \ | ||
python3-tabulate \ | ||
python3-werkzeug \ | ||
python3-xrootd \ | ||
snakemake \ | ||
xrootd-client && \ | ||
dnf autoremove -y && \ | ||
dnf clean all && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add sources to `/code` and work there | ||
WORKDIR /code | ||
COPY . /code | ||
|
||
# Install reana-client | ||
# hadolint ignore=DL3013 | ||
RUN pip3 install --no-cache-dir '.[tests]' && \ | ||
rm -rf /code | ||
|
||
# Run container as `reana` user with UID `1000`, which should match | ||
# current host user in most situations | ||
# hadolint ignore=DL3059 | ||
RUN adduser --uid 1000 reana --gid 0 && \ | ||
chown -R reana:root /home/reana | ||
WORKDIR /home/reana | ||
|
||
# Run reana-client upon entry | ||
USER reana | ||
ENTRYPOINT ["reana-client"] |
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