Alpine Docker image of SQLite3 built from the latest source code.
docker pull keinos/sqlite3:latest
- View Available Tags (SQLite version) @ DockerHub
- Current SQLite3 version:
- Supported Architecture: AMD64, ARM64, ARMv6, ARMv7
Image Information (Dockerfile, Security Scan, etc.)
- Repositories/Registries:
- Image Registry @ DockerHub
- Dockerfile @ GitHub
- Issues @ GitHub
- Build Info:
- Base Image:
alpine:latest
- SQLite3 Source: https://www.sqlite.org/src/ @ SQLite.org
- Update Interval: Once a week
- Base Image:
- Basic Vulnerability Scan:
- Snyk Docker Scan and Azure Container Scan on push, PR and merge.
- Scan Interval: Once a week.
- See the Security overview for the details.
Docker will pull the latest image when it's used. Though, you can pull (download) the latest image manually as below:
$ docker pull keinos/sqlite3:latest
...
Or, you can build the latest image locally as below:
$ git clone https://github.com/KEINOS/Dockerfile_of_SQLite3.git
$ cd Dockerfile_of_SQLite3
$ docker build -t keinos/sqlite3:latest .
...
Running sqlite3
command inside the container interactively.
$ docker run --rm -it -v "$(pwd):/workspace" -w /workspace keinos/sqlite3
SQLite version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open ./sample.db
sqlite> CREATE TABLE table_sample(timestamp TEXT, description TEXT);
sqlite> INSERT INTO table_sample VALUES(datetime("now"),"First sample data. Foo");
sqlite> INSERT INTO table_sample VALUES(datetime("now"),"Second sample data. Bar");
sqlite> .quit
$ ls
sample.db
- Note that you need to mount the working directory as a volume to the container.
- Running
sqlite3 --version
command:
$ docker run --rm keinos/sqlite3 sqlite3 --version
3.38.2 2022-03-26 13:51:10 d33c709cc0af66bc5b6dc6216eba9f1f0b40960b9ae83694c986fbf4c1d6f08f
- Executing SQL query to the mounted database:
$ ls
sample.db
$ docker run --rm -it -v "$(pwd):/workspace" keinos/sqlite3 sqlite3 /workspace/sample.db -header -column 'SELECT rowid, * FROM table_sample;'
rowid timestamp description
----- ------------------- -----------------------
1 2022-04-16 14:09:52 First sample data. Foo
2 2022-04-16 14:09:58 Second sample data. Bar
- Note that you need to mount the working directory as a volume to the container.
This container includes a simple test script.
You can run the script to see if the container and sqlite3
binary is working.
$ docker run --rm keinos/sqlite3 /run-test.sh
- Creating test DB ... created
rowid timestamp description
----- ------------------- -----------------------
1 2022-04-16 14:18:34 First sample data. Hoo
2 2022-04-16 14:18:34 Second sample data. Bar
- Testing ...
1st row value ... OK
2nd row value ... OK
- Test result:
success
$ echo $?
0
Let us know if you have any test to be included.
- MIT License by The Dockerfile of SQLite3 Contributors.
- SQLite: Public Domain by D. Richard Hipp and SQLite.org.