Skip to content

Commit 6c39204

Browse files
committed
v0.4.1
1 parent b3671b3 commit 6c39204

File tree

4 files changed

+129
-0
lines changed

4 files changed

+129
-0
lines changed

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
jobs:
7+
image:
8+
name: Push container image
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: docker/metadata-action@v4
13+
id: meta
14+
with:
15+
images: ghcr.io/${{ github.repository_owner }}/sqlite-web
16+
tags: |
17+
# v1.2.3-rc.4
18+
type=semver,pattern={{raw}}
19+
# 1.2.3-rc.4
20+
type=semver,pattern={{version}}
21+
- uses: docker/login-action@v2
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
- uses: docker/build-push-action@v3
27+
with:
28+
context: .
29+
push: true
30+
tags: ${{ steps.meta.outputs.tags }}
31+
labels: ${{ steps.meta.outputs.labels }}
32+
release:
33+
name: Release on GitHub
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- uses: softprops/action-gh-release@v1

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM python:3.11-alpine
2+
3+
RUN apk add --no-cache sqlite
4+
5+
RUN pip install --no-cache-dir sqlite-web==0.4.1
6+
7+
EXPOSE 8080
8+
ENTRYPOINT ["sqlite_web", "--no-browser", "-H", "0.0.0.0"]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Shunsuke Ise
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# sqlite-web-docker
2+
3+
[![GitHub](https://img.shields.io/github/license/ebiiim/sqlite-web-docker)](https://github.com/ebiiim/sqlite-web-docker/blob/main/LICENSE)
4+
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/ebiiim/sqlite-web-docker)](https://github.com/ebiiim/sqlite-web-docker/releases/latest)
5+
[![Release](https://github.com/ebiiim/sqlite-web-docker/actions/workflows/release.yaml/badge.svg)](https://github.com/ebiiim/sqlite-web-docker/actions/workflows/release.yaml)
6+
7+
8+
Yet another Docker image for [coleifer/sqlite-web](https://github.com/coleifer/sqlite-web).
9+
10+
## Usage
11+
12+
> 💡 Please read [sqlite-web docs](https://github.com/coleifer/sqlite-web/tree/master#command-line-options) before using this image.
13+
14+
The entrypoint is `sqlite_web --no-browser -H 0.0.0.0` so please give additional arguments and the DB path.
15+
16+
```
17+
docker run [ARGS]... ghcr.io/ebiiim/sqlite-web[:VERSION] [ARGS]... <DB_PATH>
18+
```
19+
20+
Alternatively, environment variable `SQLITE_DATABASE` can be used to specify the DB path.
21+
22+
```sh
23+
docker run --rm \
24+
-p 8080:8080 \
25+
-e SQLITE_DATABASE=/database/app.db
26+
-v /path/to/app.db:/database/app.db \
27+
ghcr.io/ebiiim/sqlite-web
28+
```
29+
30+
**Read-only mode**
31+
32+
Set `-r` or `--read-only`
33+
34+
```diff
35+
docker run --rm \
36+
-p 8080:8080 \
37+
-e SQLITE_DATABASE=/database/app.db
38+
-v /path/to/app.db:/database/app.db \
39+
- ghcr.io/ebiiim/sqlite-web
40+
+ ghcr.io/ebiiim/sqlite-web --read-only
41+
```
42+
43+
**Password authentication**
44+
45+
Set `-P` or `--password` and store the password to `SQLITE_WEB_PASSWORD`.
46+
47+
```diff
48+
docker run --rm \
49+
-p 8080:8080 \
50+
+ -e SQLITE_WEB_PASSWORD=hogehoge \
51+
-e SQLITE_DATABASE=/database/app.db
52+
-v /path/to/app.db:/database/app.db \
53+
- ghcr.io/ebiiim/sqlite-web
54+
+ ghcr.io/ebiiim/sqlite-web --password
55+
```
56+
57+
## Changelog
58+
59+
We use the same version as sqlite-web.
60+
61+
- 2023-04-06 v0.4.1
62+
- initial release
63+
- coleifer/sqlite-web: [0.4.1](https://github.com/coleifer/sqlite-web/commit/72ae4bd921c996be85a95eb7a202d46f4a438701) 2022-12-09

0 commit comments

Comments
 (0)