From 07b31d4df52a70f0921883837f47ce271ace252a Mon Sep 17 00:00:00 2001 From: Atsushi Abe Date: Wed, 15 Jul 2020 12:14:35 +0900 Subject: [PATCH] Initial put of CentOS8 build env --- .gitignore | 1 + Dockerfile | 7 +++++++ README.md | 21 +++++++++++++++++++++ action.yml | 16 ++++++++++++++++ entrypoint.sh | 15 +++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 action.yml create mode 100755 entrypoint.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e7c8e8a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM centos:centos8 + +RUN yum -y update && yum -y upgrade && yum -y install automake autoconf libtool make icu libicu-devel libxml2-devel libuuid-devel fuse-devel net-snmp-devel git + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f5ba6f --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# LTFS Build docker action for CentOS8 + +This action builds the LTFS package on CentOS8 + +## Inputs + +### `destination` + +**Required** Destination of install。 Default is `/tmp/ltfs`。 + +## Outputs + +None + +## Usage + +``` +uses: LinearTapeFileSystem/CentOS8-Build@v1.0 +with: + destination: '/tmp/ltfs' +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..77ca39d --- /dev/null +++ b/action.yml @@ -0,0 +1,16 @@ +# action.yml +name: 'Build Check' +description: 'Build check of the LTFS package' +inputs: + destination: # id of input + description: 'destination directory' + required: true + default: '/tmp/ltfs' +outputs: + time: # id of output + description: 'Finish build check of the LTFS package' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.destination }} diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..0ea3600 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,15 @@ +#!/bin/sh -l + +./autogen.sh +./configure --prefix=$1 +make +make install + +# Backend I/F checking +cd $1 +git clone https://github.com/LinearTapeFileSystem/ltfs-backends.git +cd ltfs-backends +export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/tmp/ltfs/lib/pkgconfig +./autogen.sh +./configure --enable-checkonly +make