-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (51 loc) · 1.89 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (51 loc) · 1.89 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
61
ARG SEED_ROOT=/opt/app-root/src/tackle2-seed
FROM registry.access.redhat.com/ubi10/go-toolset:latest as builder
ENV GOPATH=$APP_ROOT
COPY --chown=1001:0 . .
RUN make docker
ARG SEED_PROJECT=konveyor/tackle2-seed
ARG SEED_BRANCH=main
ARG SEED_ROOT
RUN if [ ! -d "${SEED_ROOT}" ]; then \
git clone --branch ${SEED_BRANCH} https://github.com/${SEED_PROJECT} ${SEED_ROOT}; \
fi
FROM quay.io/konveyor/static-report as report
FROM quay.io/centos/centos:stream9 as centos
RUN dnf -y install epel-release && dnf -y install tini
FROM registry.access.redhat.com/ubi10/ubi-minimal
RUN mkdir -p /hub && chmod 0777 /hub
ENV HOME=/hub
WORKDIR /hub
ARG SEED_ROOT
ARG VERSION=latest
COPY --from=centos /usr/bin/tini /usr/bin/tini
COPY --from=builder /opt/app-root/src/bin/hub /usr/local/bin/tackle-hub
COPY --from=builder ${SEED_ROOT}/resources/ /tmp/seed
COPY --from=report /usr/local/static-report /tmp/analysis/report
RUN echo "${VERSION}" > /etc/hub-build
# ENV DEVELOPMENT=1
RUN microdnf -y install \
sqlite \
openssh-clients \
subversion \
git \
tar \
vim \
&& microdnf -y clean all
RUN echo "hub:x:1001:0:hub:/:/sbin/nologin" >> /etc/passwd
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/tackle-hub"]
LABEL name="konveyor/tackle2-hub" \
description="Konveyor Tackle - Hub" \
help="For more information visit https://konveyor.io" \
license="Apache License 2.0" \
maintainers="jortel@redhat.com,slucidi@redhat.com" \
summary="Konveyor Tackle - Hub" \
url="https://quay.io/repository/konveyor/tackle2-hub" \
usage="podman run konveyor/tackle2-hub:latest" \
com.redhat.component="konveyor-tackle-hub-container" \
io.k8s.display-name="Tackle Hub" \
io.k8s.description="Konveyor Tackle - Hub" \
io.openshift.expose-services="" \
io.openshift.tags="konveyor,tackle,hub" \
io.openshift.min-cpu="100m" \
io.openshift.min-memory="350Mi"