forked from thoth-station/kebechet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.19 KB
/
Dockerfile
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
FROM registry.access.redhat.com/ubi8
# Env variable USER specific the kebechet as committer while git branch and git commit creation.
# Adjust cache location due to permissions when run in the cluster.
ENV USER=kebechet \
PIPENV_CACHE_DIR=/tmp/kebechet-cache \
HOME=/home/user/ \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
PYTHONPATH=.
WORKDIR /home/user
# Add the ssh key from local dir to container dir.
# ADD github /home/user/.ssh/id_rsa
RUN \
dnf install -y --setopt=tsflags=nodocs redhat-rpm-config which git \
gcc gcc-c++ cmake \
python3-pip python3-devel \
python38 python38-devel \
python39 python39-devel &&\
# pip3 install git+https://github.com/thoth-station/kebechet &&\
pip3 install --upgrade pip &&\
pip3 install pipenv==2020.11.15 &&\
mkdir -p /home/user/.ssh ${PIPENV_CACHE_DIR} &&\
chmod a+wrx -R /etc/passwd /home/user
# For local installation from sources.
# ADD ./ /tmp/kebechet
# RUN pip3 install virtualenv && mkdir -p /usr/local/lib/python3.6/site-packages/ && cd /tmp/kebechet/ && python3 setup.py install
COPY . /home/user
RUN pipenv install && chmod a+wrx -R ${PIPENV_CACHE_DIR}
# Arbitrary User
USER 1042
CMD ["./app.sh"]