add development Containerfile
This commit is contained in:
parent
d5ca9be861
commit
52d1827582
3 changed files with 64 additions and 0 deletions
1
.dockerignore
Symbolic link
1
.dockerignore
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
.gitignore
|
||||
30
Containerfile
Normal file
30
Containerfile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
ARG IMAGE=registry.fedoraproject.org/fedora:latest
|
||||
|
||||
FROM ${IMAGE} as builder
|
||||
|
||||
RUN python3 -m venv --system-site-packages /opt/fedrq
|
||||
|
||||
COPY . /usr/src/fedrq
|
||||
|
||||
RUN /opt/fedrq/bin/pip install --verbose /usr/src/fedrq tomli_w
|
||||
|
||||
|
||||
FROM ${IMAGE} as final
|
||||
|
||||
COPY contrib/container/rhel.toml /etc/fedrq/rhel.toml
|
||||
|
||||
COPY --from=builder /opt/fedrq /opt/fedrq
|
||||
|
||||
COPY contrib/container/000-container.toml /etc/fedrq/000-container.toml
|
||||
|
||||
ENV PATH="/opt/fedrq/bin:${PATH}"
|
||||
|
||||
RUN fedrq check-config
|
||||
|
||||
ENV XDG_CACHE_HOME=/fedrq-cache
|
||||
ENTRYPOINT ["/opt/fedrq/bin/fedrq"]
|
||||
CMD ["--help"]
|
||||
VOLUME /fedrq-cache
|
||||
33
Containerfile.rhel
Normal file
33
Containerfile.rhel
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
ARG IMAGE=registry.access.redhat.com/ubi9
|
||||
|
||||
FROM ${IMAGE} as builder
|
||||
|
||||
RUN python3 -m venv --system-site-packages /opt/fedrq
|
||||
|
||||
COPY . /usr/src/fedrq
|
||||
|
||||
RUN /opt/fedrq/bin/pip install --verbose /usr/src/fedrq tomli_w
|
||||
|
||||
|
||||
FROM ${IMAGE} as final
|
||||
|
||||
COPY contrib/container/rhel.toml /etc/fedrq/rhel.toml
|
||||
|
||||
COPY --from=builder /opt/fedrq /opt/fedrq
|
||||
|
||||
COPY contrib/container/000-container.toml /etc/fedrq/000-container.toml
|
||||
COPY contrib/container/rhel.toml /etc/fedrq/rhel.toml
|
||||
|
||||
ENV PATH="/opt/fedrq/bin:${PATH}"
|
||||
|
||||
RUN fedrq check-config
|
||||
|
||||
COPY contrib/container/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENV XDG_CACHE_HOME=/fedrq-cache
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh", "/opt/fedrq/bin/fedrq"]
|
||||
CMD ["--help"]
|
||||
VOLUME /fedrq-cache
|
||||
Loading…
Add table
Add a link
Reference in a new issue