Skip to content

Commit a45edd8

Browse files
committed
docs: Add license and comments
1 parent e48ed59 commit a45edd8

File tree

6 files changed

+68
-29
lines changed

6 files changed

+68
-29
lines changed

.github/workflows/azure_scan.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
branches: [ master ]
99
schedule:
10+
# Runs at 00:45 UTC on Sunday (JST: AM 05:45 on every Monday)
1011
- cron: '45 0 * * 0'
1112

1213
jobs:

.github/workflows/snyk_scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
push:
66
branches: [ master ]
77
pull_request:
8-
# The branches below must be a subset of the branches above
98
branches: [ master ]
109
schedule:
10+
# Runs at 00:45 UTC on Sunday (JST: AM 05:45 on every Monday)
1111
- cron: '45 0 * * 0'
1212

1313
permissions:

.github/workflows/weekly-update.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# =============================================================================
2-
# Weekly Module Update
2+
# Weekly Version Check To Update
33
# =============================================================================
4-
# This workflow runs weekly to update and test the latest `go.mod` version.
4+
# This workflow runs weekly, builds the latest SQLite source code and updates
5+
# the version file.
56
#
6-
# If all the tests succeeds to run in all Go versions, it will create a new PR
7-
# of the `go.mod` and `go.sum`.
7+
# If all tests are successful and the SQLite version has changed, a new Pull
8+
# Request is created to update the version file.
89
#
910
# NOTE:
1011
# You need to set the `PERSONAL_ACCESS_TOKEN` environment variable in the repo's
12+
# settings at GitHub:
1113
# [Settings]-[Secrets]-[Actions secrets]
14+
#
1215
# To generate a new token go to:
1316
# https://github.com/settings/tokens
1417
# * You need add the "repo" scope to the token but no more.

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019-2022 KEINOS and the Contributors (https://github.com/KEINOS/Dockerfile_of_SQLite3/graphs/contributors)
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

+35-22
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,29 @@
33

44
# Dockerfile of SQLite3
55

6-
Docker image of the latest SQLite3 version.
6+
Alpine Docker image of SQLite3 built from the latest source code.
77

8-
- Pull the latest build: `docker pull keinos/sqlite3:latest`
9-
- Pull the version tagged build: `docker pull keinos/sqlite3:3.38.2`
10-
- [Available tags](https://hub.docker.com/r/keinos/sqlite3/tags) @ DockerHub
11-
12-
<details><summary>Build it locally</summary>
13-
14-
```shellsession
15-
$ git clone https://github.com/KEINOS/Dockerfile_of_SQLite3.git
16-
$ cd Dockerfile_of_SQLite3
17-
$ docker build -t keinos/sqlite3:latest .
18-
...
8+
```bash
9+
docker pull keinos/sqlite3:latest
1910
```
2011

21-
</details>
12+
- [View Available Tags (SQLite version)](https://hub.docker.com/r/keinos/sqlite3/tags) @ DockerHub
13+
- Current SQLite3 version: [VERSION_SQLite3.txt](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/VERSION_SQLite3.txt)
2214

23-
<details><summary>Image and Repository Info</summary>
15+
<details><summary>Image Information (Dockerfile, Security Scan, etc.)</summary>
2416

25-
- Current SQLite3 version: [VERSION_SQLite3.txt](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/VERSION_SQLite3.txt)
26-
- Repositories:
27-
- Image: https://hub.docker.com/r/keinos/sqlite3 @ DockerHub
28-
- Dockerfile: https://github.com/KEINOS/Dockerfile_of_SQLite3 @ GitHub
29-
- Issues: https://github.com/KEINOS/Dockerfile_of_SQLite3/issues @ GitHub
17+
- Repositories/Registries:
18+
- [Image Registry](https://hub.docker.com/r/keinos/sqlite3) @ DockerHub
19+
- [Dockerfile](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/Dockerfile) @ GitHub
20+
- [Issues](https://github.com/KEINOS/Dockerfile_of_SQLite3/issues) @ GitHub
3021
- Build Info:
3122
- Base Image: `alpine:latest`
3223
- SQLite3 Source: [https://www.sqlite.org/src/](https://www.sqlite.org/src/doc/trunk/README.md) @ SQLite.org
33-
- Basic Vulnerability Scan:
34-
- Snyk and Azure Container Scan.
35-
- See the [Security overview](https://github.com/KEINOS/Dockerfile_of_SQLite3/security) for the details.
24+
- Update Interval: [Once a week](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/.github/workflows/weekly-update.yml)
25+
- Basic Vulnerability Scan:
26+
- [Snyk Docker Scan](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/.github/workflows/snyk_scan.yml) and [Azure Container Scan](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/.github/workflows/azure_scan.yml) on push, PR and merge.
27+
- Scan Interval: Once a week.
28+
- See the [Security overview](https://github.com/KEINOS/Dockerfile_of_SQLite3/security) for the details.
3629

3730
</details>
3831

@@ -47,6 +40,15 @@ $ docker pull keinos/sqlite3:latest
4740
...
4841
```
4942

43+
Or, you can build the latest image locally as below:
44+
45+
```shellsession
46+
$ git clone https://github.com/KEINOS/Dockerfile_of_SQLite3.git
47+
$ cd Dockerfile_of_SQLite3
48+
$ docker build -t keinos/sqlite3:latest .
49+
...
50+
```
51+
5052
### Interactive
5153

5254
Running `sqlite3` command inside the container interactively.
@@ -86,3 +88,14 @@ $ docker run --rm keinos/sqlite3 /run-test.sh
8688
$ echo $?
8789
0
8890
```
91+
92+
[Let us know](https://github.com/KEINOS/Dockerfile_of_SQLite3/issues) if you have any test to be included.
93+
94+
## TODO
95+
96+
- [ ] ARM support for DockerHub ([Issue #2](https://github.com/KEINOS/Dockerfile_of_SQLite3/issues/2))
97+
98+
## License
99+
100+
- [MIT License](https://github.com/KEINOS/Dockerfile_of_SQLite3/blob/master/LICENSE.md) by [The Dockerfile of SQLite3 Contributors](https://github.com/KEINOS/Dockerfile_of_SQLite3/graphs/contributors).
101+
- SQLite: [Public Domain](https://sqlite.org/copyright.html) by [D. Richard Hipp](https://en.wikipedia.org/wiki/D._Richard_Hipp) and [SQLite.org](https://sqlite.org/).

check-updates.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ help=$(
55
This script updates the VERSION_SQLite3.txt and the Docker image.
66
-----------------------------------------------------------------------------
77
- Options:
8+
--help : Shows this help.
89
--force : Force the update process even if the version is the same.
910
--commit: Git commit the version changes.
1011
--push : Push the image to Docker Hub. If `--commit` is set it will push
1112
the git commit to GitHub as well.
1213
1314
- Notes:
14-
- If there is no update, it exits with status 0.
15-
- This script will `prune` the unused contaier and images.
15+
- By default, if there are no updates, the script exits with status 0.
16+
- This script removes ("prunes") unused containers and images.
1617
HEREDOC
1718
)
1819

0 commit comments

Comments
 (0)