Closed horazont closed 1 year ago
FTR:
docker build . --build-arg NCORES=9 -t registry.gitlab.com/xsf/xeps/packed:main-latest
Sending build context to Docker daemon 58.08MB
Step 1/16 : FROM xmppxsf/xeps-base:latest as build
---> ebc49b11c829
Step 2/16 : ARG NCORES=1
---> Using cache
---> 27d416a46583
Step 3/16 : ARG TARGETS="html inbox-html inbox-xml pdf xeplist refs xml"
---> Using cache
---> 8cad48ff5bf2
Step 4/16 : COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/
---> Using cache
---> dee5e2622d3f
Step 5/16 : COPY resources/*.pdf /src/resources/
---> 608d1a5f9490
Step 6/16 : COPY tools/*.py /src/tools/
---> e8570764526d
Step 7/16 : COPY inbox/*.xml inbox/*.ent inbox/*.dtd /src/inbox/
---> ed2b973c0bac
Step 8/16 : COPY texml-xsl/*.xsl /src/texml-xsl/
---> 90a6b28262e7
Step 9/16 : WORKDIR /src
---> Running in b0ed5b013cd4
Removing intermediate container b0ed5b013cd4
---> 22e2a6da09a7
Step 10/16 : RUN OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS
---> Running in a02f99a2f4c0
make: *** No rule to make target 'refs-LICENSE', needed by '/var/www/html/extensions//refs/LICENSE'. Stop.
make: *** Waiting for unfinished jobs....
The command '/bin/sh -c OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS' returned a non-zero code: 2
cc @Flowdalic
I've no idea how to obtain the used Dockerfile, but I suspect that it is because
COPY .xml xep. .css .xsl .js .xsl Makefile /src/
which does not copy refs-LICENSE and in general it seems to be a bad idea to copy files from the repo over, as it is fragile (as demonstrated by this issue).
I've no idea how to obtain the used Dockerfile
Try this: https://github.com/xsf/xeps/blob/master/Dockerfile
Reverts xsf/xeps#1220
It breaks the docker build and I don't have the time to investigate it right now.