1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-09 03:56:24 +02:00
Files
php-e107/e107_tests/lib/ci/Dockerfile
Nick Liu b5923169a6 Automated acceptance tests
Includes a Dockerfile that can be used to build the
ghcr.io/e107inc/e107/e107-dev
container
2020-12-28 23:42:57 +01:00

27 lines
1016 B
Docker

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y wget gnupg
RUN wget -O - https://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
RUN mkdir -pv /etc/apt/sources.list.d/
RUN echo 'deb http://repo.saltstack.com/py3/ubuntu/20.04/amd64/latest focal main' |\
tee /etc/apt/sources.list.d/saltstack.list
RUN apt-get update
RUN apt-get install -y systemd-sysv salt-minion openssh-server rsync
RUN systemctl disable salt-minion.service
RUN mkdir -pv /etc/salt/
COPY salt /var/tmp/salt
COPY config.ci.yml /var/tmp/salt/pillars/config-local.sls
RUN rm -fv /var/tmp/salt/pillars/config.sls && touch /var/tmp/salt/pillars/config.sls
RUN rm -fv /var/tmp/salt/pillars/config-sample.sls && touch /var/tmp/salt/pillars/config-sample.sls
RUN cp -fv /var/tmp/salt/master /etc/salt/minion
WORKDIR /var/tmp/salt
RUN salt-call -l debug --id=e107-dev --local state.apply e107-dev
WORKDIR /
VOLUME ["/sys/fs/cgroup"]
ENTRYPOINT ["/usr/sbin/init"]