Skip to content

Commit

Permalink
Initial put of CentOS8 build env
Browse files Browse the repository at this point in the history
  • Loading branch information
piste-jp committed Jul 15, 2020
0 parents commit 07b31d4
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*~
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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'
```
16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 07b31d4

Please sign in to comment.