mirror of
https://github.com/xemu-project/xemu-test.git
synced 2024-11-26 19:30:30 +00:00
Fix Dockerfile data image composition
This commit is contained in:
parent
5c32de4084
commit
3048604cb9
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Build test data
|
||||
#
|
||||
FROM ghcr.io/xboxdev/nxdk AS data
|
||||
FROM ghcr.io/xboxdev/nxdk AS test-xbe-data
|
||||
RUN mkdir /data
|
||||
|
||||
COPY test-xbe /test-xbe
|
||||
@ -37,6 +37,10 @@ RUN make -C /test-pgraph/nxdk_pgraph_tests \
|
||||
RUN cp /test-pgraph/nxdk_pgraph_tests/nxdk_pgraph_tests.iso /data/TestNXDKPgraphTests/
|
||||
RUN cp /test-pgraph/config.cnf /data/TestNXDKPgraphTests/
|
||||
|
||||
# Combine test data
|
||||
FROM scratch AS data
|
||||
COPY --from=test-xbe-data /data /data
|
||||
COPY --from=pgraph-data /data/TestNXDKPgraphTests /data/TestNXDKPgraphTests
|
||||
|
||||
#
|
||||
# Build base test container image
|
||||
@ -78,6 +82,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV SDL_AUDIODRIVER=dummy
|
||||
|
||||
# VNC port for debugging
|
||||
|
||||
EXPOSE 5900
|
||||
|
||||
RUN mkdir /work
|
||||
@ -87,7 +92,6 @@ COPY ./scripts /work/xemu-test/scripts/
|
||||
COPY ./xemutest /work/xemu-test/xemutest/
|
||||
COPY ./setup.py /work/xemu-test
|
||||
COPY --from=data /data /work/xemu-test/xemutest/data
|
||||
COPY --from=pgraph-data /data/TestNXDKPgraphTests /work/xemu-test/xemutest/data/TestNXDKPgraphTests
|
||||
RUN pip install /work/xemu-test
|
||||
ENTRYPOINT ["/docker_entry.sh"]
|
||||
CMD ["/usr/bin/python3", "-m", "xemutest", "/work/private", "/work/results"]
|
||||
|
0
scripts/build_test_data.sh
Normal file → Executable file
0
scripts/build_test_data.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user