|
1 |
| -FROM ghcr.io/rse-ops/pokemon:app-latest |
| 1 | +FROM fluxrm/flux-sched:jammy |
2 | 2 |
|
3 | 3 | LABEL maintainer="Vanessasaurus <@vsoch>"
|
4 | 4 |
|
5 | 5 | # Pip not provided in this version
|
6 | 6 | USER root
|
7 |
| -RUN apt-get update && apt-get install -y python3-venv systemctl |
| 7 | +RUN apt-get update && apt-get install -y python3-venv systemctl python3-pip |
8 | 8 | COPY ./requirements.txt /requirements.txt
|
9 | 9 | COPY ./.github/dev-requirements.txt /dev-requirements.txt
|
10 | 10 | COPY ./docs/requirements.txt /docs-requirements.txt
|
11 | 11 |
|
12 | 12 | EXPOSE 5000
|
13 |
| -ENV PYTHONPATH=/usr/lib/flux/python3.8 |
| 13 | +ENV PYTHONPATH=/usr/lib/flux/python3.10 |
14 | 14 |
|
15 | 15 | # For easier Python development.
|
16 | 16 | RUN python3 -m pip install IPython && \
|
17 | 17 | python3 -m pip install -r /requirements.txt && \
|
18 | 18 | python3 -m pip install -r /dev-requirements.txt && \
|
19 | 19 | python3 -m pip install -r /docs-requirements.txt
|
20 | 20 |
|
21 |
| -RUN python3 -m venv /env && \ |
22 |
| - . /env/bin/activate && \ |
23 |
| - pip install -r /requirements.txt && \ |
24 |
| - pip install -r /dev-requirements.txt && \ |
25 |
| - pip install -r /docs-requirements.txt && \ |
26 |
| - # Only for development - don't add this to a production container |
27 |
| - sudo useradd -m -p $(openssl passwd '12345') "flux" |
28 |
| - |
29 | 21 | RUN mkdir -p /run/flux /var/lib/flux mkdir /etc/flux/system/cron.d /mnt/curve && \
|
30 | 22 | flux keygen /mnt/curve/curve.cert && \
|
31 | 23 | # These need to be owned by flux
|
32 |
| - chown -R flux /run/flux /var/lib/flux /mnt/curve && \ |
| 24 | + chown -R fluxuser /run/flux /var/lib/flux /mnt/curve && \ |
33 | 25 | # flux-imp needs setuid permission
|
34 | 26 | chmod u+s /usr/libexec/flux/flux-imp
|
35 | 27 |
|
|
0 commit comments