Skip to content

Commit

Permalink
Update Epubcheck to v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kitforbes committed Oct 24, 2023
1 parent f45af07 commit 2033964
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM alpine:3.3

ARG VERSION=4.2.6
ARG VERSION=5.0.0

RUN set -eux; \
apk add --no-cache \
curl \
openjdk7 \
openjdk8 \
unzip \
&& \
curl -fsSL \
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Dockerfile for [EPUBCheck](https://github.com/w3c/epubcheck), available on [Dock
Run the PowerShell script:

```powershell
.\build.ps1 -Version "4.2.6"
.\build.ps1 -Version "5.0.0"
```

Or run directly with:

```bash
docker build --build-arg "EPUBCHECK_VERSION=4.2.6" --tag "epubcheck:4.2.6" .
docker build --build-arg "EPUBCHECK_VERSION=5.0.0" --tag "epubcheck:5.0.0" .
```

## Usage
Expand All @@ -23,26 +23,24 @@ docker build --build-arg "EPUBCHECK_VERSION=4.2.6" --tag "epubcheck:4.2.6" .
Displays the version of EPUBCheck.

```bash
docker run --rm --name epubcheck "epubcheck:4.2.6"
docker run --rm --name epubcheck "epubcheck:5.0.0"
```

```plaintext
EPUBCheck v4.2.6
EPUBCheck v5.0.0
EPUBCheck completed
No file specified in the arguments. Exiting.
```

### Help

Displays help information for EPUBCheck.

```bash
docker run --rm --name epubcheck "epubcheck:4.2.6" --help
docker run --rm --name epubcheck "epubcheck:5.0.0" --help
```

```plaintext
No file specified in the arguments. Exiting.
EPUBCheck v4.2.6
EPUBCheck v5.0.0
When running this tool, the first argument should be the name (with the path)
of the file to check.
Expand Down
5 changes: 2 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
param (
[Parameter(Mandatory = $false)]
[String]
$Version = "4.2.6"
$Version = "5.0.0"
)

begin {
Expand All @@ -13,11 +13,10 @@ process {
$imageName = "kitforbes/epubcheck"
docker build `
--tag "${imageName}:${Version}" `
--tag "${imageName}:latest" `
--build-arg "EPUBCHECK_VERSION=$Version" `
$PSScriptRoot

docker tag "${imageName}:${Version}" "${imageName}:latest"

docker images "$imageName"

docker run --rm `
Expand Down

0 comments on commit 2033964

Please sign in to comment.