Thu, 23 Mar 2023 15:12:30 +0000
Serialize XML in a consistent order by default
This overrides all XML serialization to emit attributes in an ordered form, so
the XML will match across multiple runs. This can be useful for comparing
different runs, or even two stanzas printed in the same run (e.g. if there is
a mismatch).
94 | 1 | FROM ubuntu:xenial |
2 | ||
3 | MAINTAINER Matthew Wild <mwild1@gmail.com> | |
4 | ||
5 | RUN apt-get update \ | |
6 | && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
7 | lua5.2 \ | |
8 | lua-cjson \ | |
9 | lua-expat \ | |
140
2758cfb4e26d
Dockerfile: Add luafilesystem for '-d'
Matthew Wild <mwild1@gmail.com>
parents:
94
diff
changeset
|
10 | lua-filesystem \ |
94 | 11 | lua-sec \ |
12 | lua-socket \ | |
13 | make \ | |
14 | && rm -rf /var/lib/apt/lists/* | |
15 | ||
16 | RUN ln -s /usr/bin/lua5.2 /usr/local/bin/lua | |
17 | ||
18 | RUN mkdir -p /tmp/build | |
19 | ||
20 | ADD . /tmp/build | |
21 | ||
22 | WORKDIR /tmp/build | |
23 | ||
24 | RUN ./configure && make && install build/scansion /usr/local/bin/scansion && rm -rf /tmp/build | |
25 | ||
26 | ADD verse.lua /usr/local/share/lua/5.2/verse.lua | |
27 | ||
28 | ADD misc/docker-entrypoint.sh /entrypoint.sh | |
29 | ||
30 | RUN chmod a=rx /entrypoint.sh | |
31 | ||
32 | ENTRYPOINT ["/entrypoint.sh"] | |
33 | ||
34 | USER nobody | |
35 | ||
36 | ADD scripts /scripts | |
37 | ||
38 | VOLUME ["/scripts"] | |
39 | ||
40 | WORKDIR /scripts | |
41 | ||
141
7b774278ca84
Dockerfile: Run all tests in /scripts by default
Matthew Wild <mwild1@gmail.com>
parents:
140
diff
changeset
|
42 | CMD ["-d", "/scripts"] |
94 | 43 |