Open dmcassel opened 6 years ago
looks like bit rot is setting in and I have no (time|plans) to maintain.
@xquery I'm looking into using Docker let this run in a Linux environment. Should I interpret your comment to mean that I probably shouldn't use xquerydoc? If so, do you (or anyone else) know of an alternative?
For anyone else who runs into this, xquerydoc runs well in Linux. You can get around the Windows problem by using Docker. Start by creating Dockerfile.xquerydoc
:
FROM nimmis/java-centos:openjdk-8-jre
# Get any CentOS updates then clear the <span class="hit_highlight">Docker</span> cache
RUN yum -y update && yum clean all
# Install the initscripts package so MarkLogic starts ok
RUN yum -y install initscripts && yum clean all
RUN yum -y install git
WORKDIR /usr/local
RUN git clone https://github.com/xquery/xquerydoc
# Set the Path
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/xquerydoc
Then create a Docker image:
docker build -f .\Dockerfile.xquerydoc -t xquerydoc:latest .
Test that the setup was successful:
docker run --rm xquerydoc:latest xquerydoc --help
That should give you the usage notes for xquerydoc. The next thing is to run with volumes so that xquerydoc can see your code and generate output outside the Docker container. You'll also tell xquerydoc where to look for your code and where to generate that output. Remember that the paths xquerydoc sees are inside (Linux). For me, it looks like this:
docker run -v c:/Users/dcassel:/home/dcassel --rm xquerydoc:latest xquerydoc -x /home/dcassel/git/smart-mastering-core/src/main/ml-modules -o /home/dcassel/git/smart-mastering-core/docs
Tried running using PowerShell and normal Command Prompt. I get the same error:
Thought there might be a problem with my XQuery, so I created a really simple example. Got the same error. Example follows: