Skip to content

Add slim deps of libsqlite3-0 at runtime and libsqlite3-dev at build time #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2014

Conversation

tianon
Copy link
Member

@tianon tianon commented Dec 2, 2014

Tested successfully using: (across both the non-slim and the slim variants of each of 2.7, 3.3, and 3.4)

docker run -it --rm image-being-tested bash -xec '
    # ...
    python -c "import sqlite3; print(sqlite3.sqlite_version); con = sqlite3.connect(\":memory:\", 1, sqlite3.PARSE_DECLTYPES, None); cur = con.cursor(); cur.execute(\"CREATE TABLE test (id INT, txt TEXT)\"); cur.execute(\"INSERT INTO test VALUES (?, ?)\", (42, \"wut\")); cur.execute(\"SELECT * FROM test\"); assert(cur.fetchall() == [(42, \"wut\")]); cur.execute(\"DROP TABLE test\"); con.close()"
    # ...
'
import sqlite3
print(sqlite3.sqlite_version)
con = sqlite3.connect(":memory:", 1, sqlite3.PARSE_DECLTYPES, None)
cur = con.cursor()
cur.execute("CREATE TABLE test (id INT, txt TEXT)")
cur.execute("INSERT INTO test VALUES (?, ?)", (42, "wut"))
cur.execute("SELECT * FROM test")
assert(cur.fetchall() == [(42, "wut")])
cur.execute("DROP TABLE test")
con.close()

Fixes #25

@tianon
Copy link
Member Author

tianon commented Dec 2, 2014

Sorry @yosifkit, I hijacked your branch. 👼

@yosifkit
Copy link
Member

yosifkit commented Dec 2, 2014

LGTM

yosifkit added a commit that referenced this pull request Dec 2, 2014
Add slim deps of libsqlite3-0 at runtime and libsqlite3-dev at build time
@yosifkit yosifkit merged commit 07ff912 into docker-library:master Dec 2, 2014
@yosifkit yosifkit deleted the slim-fix branch December 2, 2014 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should slim also install libsqlite3-dev.
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy