storlets/install/storlets/roles/docker_storlet_engine_image/tasks/main.yml

69 lines
2.3 KiB
YAML

#---------------------------------------------------------------------------
# Copyright IBM Corp. 2015, 2015 All Rights Reserved
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# Limitations under the License.
#---------------------------------------------------------------------------
- name: Create Repository for building the image
file:
path: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets"
state: directory
mode: 0755
owner: root
- name: Get pip install script
get_url:
url: "https://bootstrap.pypa.io/get-pip.py"
dest: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets"
- name: Copy c resources
copy:
src: "{{ storlet_source_dir }}/{{ item }}"
dest: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets"
with_items:
- "src/c/sbus/libsbus.so"
- name: Copy java resources
copy:
src: "{{ storlet_source_dir }}/{{ item }}"
dest: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets"
with_items:
- "src/java/SBus/bin/libjsbus.so"
- "src/java/SBus/bin/SBusJavaFacade.jar"
- "src/java/SCommon/bin/SCommon.jar"
- "src/java/SDaemon/bin/SDaemon.jar"
- name: Copy python code tar ball
copy:
src: "/tmp/storlets.tar.gz"
dest: "/tmp"
- name: Create a directory for python code
file:
path: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets/storlets"
state: directory
- name: Unarchive python code tar ball
unarchive:
src: "/tmp/storlets.tar.gz"
dest: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets/storlets"
- name: Copy Init Container Script
copy:
src: "{{item}}"
dest: "/data/registry/repositories/{{ base_os_image }}_jre8_storlets/"
with_items:
- init_container.sh
- logback.xml
- include: create_layer.yml dockerfile_prefix={{ base_os_image }}_jre8_storlets layer_suffix=jre8_storlets