Skip to content

Commit

Permalink
Generate the md5sums from Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jul 12, 2023
1 parent 28a34a6 commit c36ddc3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM erlang:25.3

RUN apt-get update && apt-get install -y gnuplot sudo
RUN useradd -m examplesuser
RUN git clone https://github.com/lfex/plottah.git
RUN chown -R examplesuser:examplesuser plottah

WORKDIR ./plottah

RUN sudo -u examplesuser rebar3 compile
RUN sudo -u examplesuser rebar3 as examples compile
RUN sudo -u examplesuser rebar3 as examples list
RUN which gnuplot
RUN gnuplot --version
RUN sudo -u examplesuser rebar3 as examples lfe run -- 3d-heatmap true
RUN sudo -u examplesuser rebar3 as examples lfe run -- all true

CMD ["ls", "-l", "priv/output/*.jpg", "&&", "make", "output-md5sum", "make", "md5sum", ">", "priv/output/examples.md5sum", "&&", "diff", "-u", "examples/output.md5sum", "priv/output/examples.md5sum"]
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ md5sum:
output-md5sum:
@echo "\nGenerating check sums ...\n"
$(MAKE) md5sum > examples/output.md5sum

docker-image:
docker build -t lfex:plottah .

docker-md5sum: docker-image
docker run -it -v `pwd`/examples:/plottah/examples lfex:plottah
19 changes: 11 additions & 8 deletions examples/output.md5sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
make[1]: Entering directory '/plottah'
md5sum priv/output/*.jpg |sort
131482f43b8edf18e0134c549c3cba7f priv/output/controls.jpg
789d1ed752f234961589154569e8c811 priv/output/3d-hidden.jpg
9e30990129371a077866ddeeca7949da priv/output/room-modes.jpg
a0551bb427841b38380f27f7c03daaa6 priv/output/helix.jpg
a1fcbd6325abf025e38adfb41c5238ae priv/output/histogram.jpg
a32fc40569e3790633174ddba9e81b48 priv/output/tori.jpg
c976341f97564d5853680e99a10b5cd0 priv/output/3d-heatmap.jpg
f7ecbe1751e957b417b682549175634a priv/output/fourier-approx.jpg
05817f694609b5acf0efdab75ed5ca47 priv/output/3d-hidden.jpg
2cf50cae6d060618fc9854c1bda66d3a priv/output/controls.jpg
3b8e297bc4d2b4f02a592b953fb44f1a priv/output/fourier-approx.jpg
aa8907f4f19d2d5cd2051a9ee98fe27a priv/output/room-modes.jpg
c6a7b8d0f75a1669e3aa797f47ccc0de priv/output/moebius.jpg
d48f626738a5f4ec8f1617835ab4cc5b priv/output/3d-heatmap.jpg
d9d8fc1f06bc37c0575636ce4b7984f7 priv/output/tori.jpg
e7308d41f0d889a09a4c0fb1ad43210d priv/output/helix.jpg
fc31bfa3e9ff692871b718fabca8bedd priv/output/histogram.jpg
make[1]: Leaving directory '/plottah'

0 comments on commit c36ddc3

Please sign in to comment.