Skip to content

Commit dadefa5

Browse files
committed
README files and descriptions
1 parent 5a98d7f commit dadefa5

5 files changed

Lines changed: 40 additions & 4 deletions

File tree

fitlayout-cli/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM fitlayout/fitlayout-core
2+
LABEL maintainer="Radek Burget, burgetr@fit.vutbr.cz" description="FitLayout Command-line interface (CLI) image."
23

34
# A folder for sharing the output
45
ENV OUT /out

fitlayout-cli/README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This image provides a docker image with the [command-line interface](https://git
99

1010
Docker must be installed on your system to use the docker images.
1111

12-
## Configuration and usage
12+
## Configuration
1313

1414
Download the [fitlayout.sh](https://github.com/FitLayout/docker-images/blob/main/fitlayout-cli/fitlayout.sh) script from GitHub:
1515

@@ -18,12 +18,28 @@ wget https://raw.githubusercontent.com/FitLayout/docker-images/main/fitlayout-cl
1818
chmod 755 fitlayout.sh
1919
```
2020

21-
Then, run fitlayout CLI using
21+
Optionally, you may want to edit the `fitlayout.sh` file for changing the location of the following folders:
22+
23+
- `STORAGE_PATH` - the folder where the local RDF repository lives. If an empty folder is provided, a new repository will be initialized. It is set to `/opt/fitlayout/storage` by default.
24+
- `OUTPUT_FOLDER` - the folder used for storing the output produced by the `EXPORT` command. Within the container, this folder is referenced as `/out` (i.e. use for example `EXPORT -f xml -o /out/file.xml` for exporting a XML file (see a complete example below).
25+
26+
## Usage
27+
28+
Run fitlayout CLI using
2229

2330
```bash
2431
./fitlayout.sh [<commands>]
2532
```
2633

27-
For the first time, the related docker images will be downloaded which may take some time.
34+
For example:
35+
36+
```bash
37+
./fitlayout.sh \
38+
RENDER -b puppeteer http://cssbox.sf.net \
39+
SEGMENT -m vips -O pDoC=9 \
40+
EXPORT -f xml -o /out/file.xml
41+
```
42+
43+
On first run, the related docker images will be pulled which may take some time.
2844

29-
See the [command-line interface documentation](https://github.com/FitLayout/FitLayout/wiki/Command-line-Interface) for the commands reference and examples.
45+
See the [command-line interface documentation](https://github.com/FitLayout/FitLayout/wiki/Command-line-Interface) for a complete command reference and examples.

fitlayout-core/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FitLayout/2 - Base Docker Image
2+
===============================
3+
4+
(c) 2015-2021 Radek Burget (burgetr@fit.vutbr.cz)
5+
6+
This is a base image used by the remaining images. It contains the following components:
7+
8+
- Compiled [FitLayout framework](https://github.com/FitLayout/FitLayout) components
9+
- Configured [fitlayout-puppeteer](https://github.com/FitLayout/fitlayout-puppeteer) rendering backend
10+
- The required runtime environment including Java and node.js
11+
12+
See the [fitlayout-cli](https://github.com/FitLayout/docker-images/tree/main/fitlayout-cli) image for getting a runnable image with a command-line interface.

fitlayout-server/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM fitlayout/fitlayout-core
2+
LABEL maintainer="Radek Burget, burgetr@fit.vutbr.cz" description="FitLayout server image with a REST API."
23

34
ENV PORT 8400
45

fitlayout-server/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FitLayout/2 - Server Docker Image
2+
=================================
3+
4+
(c) 2015-2021 Radek Burget (burgetr@fit.vutbr.cz)
5+
6+
This image contains an implemenation of a server application with a REST API providing access to the FitLayout functions.

0 commit comments

Comments
 (0)