Skip to content

Commit

Permalink
Allows running specs within Docker container
Browse files Browse the repository at this point in the history
`crystal spec` commands now supports JUnit XML output, which requires
libxml2 to be installed.

With current defaults, the command fails due missing `libxml2-dev`
dependencies in the image.

This change ensures `libxml2-dev` is installed along the other
dependencies so can be used for both building executables and running
specs.

Also includes `libyaml-dev` so any attempt to using `yaml` works
out of the box.
luislavena authored and Ary Borenszweig committed Oct 20, 2016
1 parent 86e80d0 commit ba346fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ RUN \
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54 && \
echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list && \
apt-get update && \
apt-get install -y crystal gcc pkg-config libssl-dev git make && \
apt-get install -y crystal gcc pkg-config libssl-dev libxml2-dev libyaml-dev git make && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /opt/crystal

0 comments on commit ba346fc

Please sign in to comment.