2018-10-22 04:13:59 +02:00
|
|
|
# hadolint ignore=DL3006
|
|
|
|
FROM tomwhiston/dredd:latest
|
|
|
|
|
|
|
|
ENV TASK_VERSION=v2.0.1 \
|
|
|
|
GOPATH=/home/developer/go \
|
2020-02-09 16:00:50 +01:00
|
|
|
SEMAPHORE_SERVICE=semaphore_ci \
|
2018-10-22 04:13:59 +02:00
|
|
|
SEMAPHORE_PORT=3000 \
|
2020-02-09 16:00:50 +01:00
|
|
|
MYSQL_SERVICE=mysql \
|
2018-10-22 04:13:59 +02:00
|
|
|
MYSQL_PORT=3306
|
|
|
|
|
|
|
|
# We need the source and task to compile the hooks
|
|
|
|
USER 0
|
|
|
|
RUN dnf install -y nc
|
|
|
|
COPY deployment/docker/ci/dredd/entrypoint /usr/local/bin
|
|
|
|
COPY . /home/developer/go/src/github.com/ansible-semaphore/semaphore
|
2020-02-09 16:00:50 +01:00
|
|
|
RUN (cd $(go env GOPATH) && curl -sL https://taskfile.dev/install.sh | sh) &&\
|
2018-10-22 04:13:59 +02:00
|
|
|
chown -R developer /home/developer/go
|
|
|
|
|
|
|
|
# Get tools and do compile
|
|
|
|
WORKDIR /home/developer/go/src/github.com/ansible-semaphore/semaphore
|
|
|
|
RUN task deps:tools && task deps:be && task compile:be && task compile:api:hooks
|
|
|
|
|
2020-02-09 16:00:50 +01:00
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|