Skip to content

Commit eb48b8c

Browse files
author
Atsushi Abe
committed
First commit of Debian10 Build Env
0 parents  commit eb48b8c

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM debian:stretch
2+
3+
RUN apt-get -q -y update && apt-get -q -y upgrade && apt-get -q -y install build-essential automake autoconf libtool pkg-config icu* libicu* icu-devtools libicu-dev libxml2-dev uuid-dev fuse libfuse-dev libsnmp-dev
4+
5+
COPY entrypoint.sh /entrypoint.sh
6+
COPY icu-config /usr/bin/icu-config
7+
8+
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 Debian10 (buster)
2+
3+
This action builds the LTFS package on Debian10
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/Debian10-Build@v0.1
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh -l
2+
3+
./autogen.sh
4+
./configure --prefix=$1
5+
make
6+
make install

icu-config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
opts=$1
4+
5+
case $opts in
6+
'--cppflags')
7+
echo '' ;;
8+
'--ldflags')
9+
echo '-licuuc -licudata' ;;
10+
*)
11+
echo '/usr/lib/x86_64-linux-gnu/icu/pkgdata.inc' ;;
12+
esac

0 commit comments

Comments
 (0)