File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ __pycache__ /
2+ * .py [cod ]
3+
4+ * .swp
5+ .idea
6+ docs /_build /*
7+ docs /api
8+ /artemis-data /
9+ /qpid-dispatch /
10+
11+ /* .egg-info
12+ /dist /
13+ /build /
14+
15+ Dockerfile
Original file line number Diff line number Diff line change 1+ # Arguments for DEV's (comment static FROM and uncomnnet #DEV ones)
2+ ARG UBI_VERSION=9
3+ ARG PYTHON_VERSION=60
4+ ARG UBI_BUILD_TAG=latest
5+ ARG UBI_RUNTIME_TAG=latest
6+ ARG IMAGE_BUILD=registry.access.redhat.com/ubi${UBI_VERSION}/python-${PYTHON_VERSION}:${UBI_TAG}
7+ ARG IMAGE_BASE=registry.access.redhat.com/ubi${UBI_VERSION}/python-${PYTHON_VERSION}:${UBI_RUNTIME_TAG}
8+
9+ # DEV FROM $IMAGE_BUILD
10+ FROM registry.access.redhat.com/ubi9/python-39:1-114.1683012551
11+
12+ LABEL name="Red Hat Messaging QE - Proton Python CLI Image" \
13+ run="podman run --rm -ti <image_name:tag> /bin/bash cli-proton-python-*"
14+
15+ USER root
16+
17+ # install fallocate for use by claire tests
18+ RUN dnf -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install \
19+ util-linux \
20+ && dnf clean all -y
21+
22+ COPY . /src
23+ WORKDIR /src
24+
25+ # install the client and its dependencies
26+ RUN python3 -m pip install --editable .
27+
28+ RUN mkdir /var/lib/cli-proton-python && \
29+ chown -R 1001:0 /var/lib/cli-proton-python && \
30+ chmod -R g=u /var/lib/cli-proton-python
31+
32+ USER 1001
33+
34+ VOLUME /var/lib/cli-proton-python
35+ WORKDIR /var/lib/cli-proton-python
36+
37+ CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments