Skip to content

Commit 07b31d4

Browse files
author
Atsushi Abe
committed
Initial put of CentOS8 build env
0 parents  commit 07b31d4

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*~

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM centos:centos8
2+
3+
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
4+
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# LTFS Build docker action for CentOS8
2+
3+
This action builds the LTFS package on CentOS8
4+
5+
## Inputs
6+
7+
### `destination`
8+
9+
**Required** Destination of install。 Default is `/tmp/ltfs`
10+
11+
## Outputs
12+
13+
None
14+
15+
## Usage
16+
17+
```
18+
uses: LinearTapeFileSystem/CentOS8-Build@v1.0
19+
with:
20+
destination: '/tmp/ltfs'
21+
```

action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# action.yml
2+
name: 'Build Check'
3+
description: 'Build check of the LTFS package'
4+
inputs:
5+
destination: # id of input
6+
description: 'destination directory'
7+
required: true
8+
default: '/tmp/ltfs'
9+
outputs:
10+
time: # id of output
11+
description: 'Finish build check of the LTFS package'
12+
runs:
13+
using: 'docker'
14+
image: 'Dockerfile'
15+
args:
16+
- ${{ inputs.destination }}

entrypoint.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh -l
2+
3+
./autogen.sh
4+
./configure --prefix=$1
5+
make
6+
make install
7+
8+
# Backend I/F checking
9+
cd $1
10+
git clone https://github.com/LinearTapeFileSystem/ltfs-backends.git
11+
cd ltfs-backends
12+
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/tmp/ltfs/lib/pkgconfig
13+
./autogen.sh
14+
./configure --enable-checkonly
15+
make

0 commit comments

Comments
 (0)