Initial Release

This commit is contained in:
Deon George 2018-01-29 22:30:53 +11:00
commit 7ceecf8a53
2 changed files with 53 additions and 0 deletions

41
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,41 @@
image: docker:latest
stages:
- test
- build
variables:
VERSION: latest
CACHETAG: build
DOCKER_REGISTRY: registry.leenooks.net
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
services:
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
before_script:
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${DOCKER_REGISTRY}
test:
stage: test
script:
- cat /etc/hosts
- env|sort
- docker build -t ${CI_REGISTRY_IMAGE}:${VERSION} .
- docker images
only:
- debug
build:
stage: build
script:
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
tags:
- docker
only:
- master

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
# NAME leenooks/taskserver
# VERSION latest
FROM debian:stretch
RUN apt-get update \
&& apt-get install -y taskd && rm -rf /var/lib/apt/lists/* /tmp/*
EXPOSE 53589/tcp
ENV TASKDDATA /task
CMD ["/usr/bin/taskd","server","--data $TASKDDATA"]