aboutsummaryrefslogtreecommitdiff
path: root/docker/sbotools2-test:15.0.dockerfile
blob: 2f36e5f87421086de4ef12ae9b3d25d064815c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# docker run -v $(realpath .):/root/sbotools2 -t sbotools2-test:15.0

FROM vbatts/slackware:15.0

# Project must be mounted here.
VOLUME /root/sbotools2

# Upgrade and install all
RUN sed -i 's/^WGETFLAGS=".*"/WGETFLAGS="--quiet --no-check-certificate"/g' /etc/slackpkg/slackpkg.conf
RUN yes y | slackpkg update && \
  slackpkg install-new -terse && \
  slackpkg upgrade-all -terse -batch=yes -default_answer=yes && \
  slackpkg install -terse -batch=yes -default_answer=yes a ap d f n l t tcl

# Fix SSL certificate errors
RUN yes y | slackpkg reinstall ca-certificates

RUN cpan install \
  Capture::Tiny \
  Devel::Cover\
  Test::Diff \
  Test::Exit \
  Test::More 

# Git configuration some test's setup.
RUN git config --global user.name root \
  && git config --global user.email root@localhost

WORKDIR /root/sbotools2

CMD prove -v t/*.t