-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
51 lines (40 loc) · 1.27 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
41
42
43
44
45
46
47
48
49
50
51
FROM registry.access.redhat.com/ubi9/ubi:latest
ARG SYNC2JIRA_GIT_REPO=https://github.com/release-engineering/Sync2Jira.git
ARG SYNC2JIRA_GIT_REF=master
ARG SYNC2JIRA_VERSION=
LABEL \
name="sync2jira" \
org.opencontainers.image.name="sync2jira" \
description="sync2jira application" \
org.opencontainers.image.description="sync2jira application" \
io.k8s.description="sync2jira application" \
vendor="Red Hat, Inc." \
org.opencontainers.image.vendor="Red Hat, Inc." \
license="GPLv2+" \
org.opencontainers.image.license="GPLv2+" \
url="$SYNC2JIRA_GIT_REPO" \
org.opencontainers.image.url="$SYNC2JIRA_GIT_REPO" \
release="$SYNC2JIRA_GIT_REF" \
com.redhat.component="null" \
build-date="" \
distribution-scope="public"
# Installing sync2jira dependencies
RUN dnf -y install \
git \
python3-pip \
krb5-devel \
python-devel \
gcc \
&& dnf -y clean all
ENV SYNC2JIRA_VERSION=$SYNC2JIRA_VERSION
USER root
# Create Sync2Jira folder
RUN mkdir -p /usr/local/src/sync2jira
# Copy over our repo
COPY . /usr/local/src/sync2jira
# Install deps
RUN pip install -r /usr/local/src/sync2jira/requirements.txt
# Install Sync2Jira
RUN pip3 install --no-deps -v /usr/local/src/sync2jira
USER 1001
CMD ["/usr/local/bin/sync2jira"]