Commit aad5f950 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Added dedicated pulsar check image

parent fb67a167
......@@ -67,3 +67,49 @@
- "profile_PNG"
tags:
- always
- name: Build check docker image
block:
- name: Remove image
docker_image:
name : "{{ docker_registry }}:{{ docker_registry_port }}/pulsar_check"
state: absent
force_absent: yes
tag: "{{ version_tag }}"
- name: Create build directory
tempfile:
state: directory
suffix: temp
register: build_directory
- name: Copy dockerfile from template
template:
src: Dockerfile_pulsarcheck
dest: "{{ build_directory.path }}/Dockerfile"
- name: Build and push image
docker_image:
name : "{{ docker_registry }}:{{ docker_registry_port }}/pulsar_check"
source: build
force_source: true
build:
path: "{{ build_directory.path }}"
pull: yes
nocache: true
push: yes
tag: "{{ version_tag }}"
- name: remove the temporary directory
file:
path: "{{ build_directory.path }}"
state: absent
when: build_directory.path is defined
run_once: true # only need to run on one machine
tags:
- never # only run when build tag is specified
- build
- test
FROM {{docker_registry}}:{{docker_registry_port}}/pulsar_base:{{version_tag}}
MAINTAINER Jason Wu "jwu@mpifr-bonn.mpg.de"
# Suppress debconf warnings
ENV DEBIAN_FRONTEND noninteractive
USER 1984
WORKDIR /src/
ENTRYPOINT ["/bin/bash", "-c", "echo Pulsar Test"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment