wendellpiez / XMLLunchbox

Develop, package and deliver an XML application on BaseX, with Saxon, in a Docker container: RestXQ over XQuery, with XSLT 3.0 anywhere
The Unlicense
12 stars 2 forks source link

Build fails #1

Open djbpitt opened 5 years ago

djbpitt commented 5 years ago

After deleting all Docker containers, cloning the repo, verifying that the master branch is checked out, and building anew (MacOS Mojave), the build fails, as follows:

cl2-wifi-10-215-41-89:XMLLunchbox djb$ docker build -t xmllunchbox .
Sending build context to Docker daemon  17.34MB
Step 1/8 : FROM basex/basexhttp:latest
 ---> 56e04414168b
Step 2/8 : MAINTAINER XMLLunchbox Team <xmllunchbox@wendellpiez.com>
 ---> Using cache
 ---> bb30303a5f73
Step 3/8 : USER root
 ---> Using cache
 ---> 44d60b9d882a
Step 4/8 : RUN apk update
 ---> Using cache
 ---> 13a131d3a831
Step 5/8 : COPY saxon/saxon9he.jar /usr/src/basex/basex-api/lib/saxon9he.jar
 ---> Using cache
 ---> 3cedaf09aabf
Step 6/8 : USER basex
 ---> Using cache
 ---> c44ef26d8453
Step 7/8 : COPY basex/repo   /srv/basex/repo
COPY failed: stat /var/lib/docker/tmp/docker-builder817052570/basex/repo: no such file or directory

I think it fails because basex/repo does not yet exist, so the copy in step 7 fails.

wendellpiez commented 5 years ago

Yes. 'Cause I haven't tested it without a local BaseX installation. (Yet.)

We should either comment out the line in the Dockerfile, or restore the subdirectory so the copy succeeds. (And double check .gitignore.) It can probably be empty. The subdirectory in BaseX is meant, I think, for XQuery modules, which we do not have, but which we might have some day.

djbpitt commented 5 years ago

Builds on 2019-02-01, commit #7f37790.

I'm leaving the issue open because we need to see whether it will still build with a reduced footprint.