Mohammed Naser | 3769438 | 2024-04-02 21:11:31 -0400 | [diff] [blame] | 1 | FROM git AS barbican |
| 2 | ARG BARBICAN_GIT_REF |
| 3 | ADD --keep-git-dir=true https://opendev.org/openstack/barbican.git#${BARBICAN_GIT_REF} /src |
| 4 | RUN git fetch --unshallow |
| 5 | |
| 6 | FROM openstack-venv-builder AS build |
| 7 | COPY --from=barbican --link /src /src/barbican |
| 8 | ARG TARGETARCH |
| 9 | ARG TARGETVARIANT |
| 10 | RUN \ |
| 11 | --mount=type=cache,id=pip-$TARGETARCH$TARGETVARIANT-$RELEASE-cache,sharing=locked,target=/root/.cache/pip <<EOF bash -xe |
| 12 | pip3 install \ |
| 13 | --constraint /upper-constraints.txt \ |
| 14 | /src/barbican \ |
| 15 | pykmip |
| 16 | EOF |
| 17 | |
| 18 | FROM openstack-runtime |
| 19 | COPY --from=build --link /var/lib/openstack /var/lib/openstack |