-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (47 loc) · 1.74 KB
/
Dockerfile
File metadata and controls
60 lines (47 loc) · 1.74 KB
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
52
53
54
55
56
57
58
59
60
FROM registry.access.redhat.com/ubi10/ubi:10.1-1769662757@sha256:64b34b13c0dda61ed9b977bde8068eb0d350f4afb75142715e83be68373e4848
ARG SYNC2JIRA_GIT_REPO=https://github.com/release-engineering/Sync2Jira.git
ARG SYNC2JIRA_GIT_REF=main
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 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
RUN dnf -y install \
git \
python3-pip \
krb5-devel \
python-devel \
fedora-messaging \
gcc \
&& dnf -y clean all
ENV SYNC2JIRA_VERSION=$SYNC2JIRA_VERSION
USER root
# Copy in license file
RUN mkdir /licenses
COPY LICENSE /licenses/LICENSE
# Create Sync2Jira folder
RUN mkdir -p /usr/local/src/sync2jira
# Copy over our repo
COPY . /usr/local/src/sync2jira
# Install deps
RUN pip3 install -r /usr/local/src/sync2jira/requirements.txt
# Grab the latest pandoc binary
RUN python3 -c 'from pathlib import Path; import pypandoc; from pypandoc.pandoc_download import download_pandoc; download_pandoc(targetfolder=Path(pypandoc.get_pandoc_path()).parent)'
# Install Sync2Jira
RUN pip3 install --no-deps -v /usr/local/src/sync2jira
USER 1001
CMD ["/usr/local/bin/sync2jira"]