version: "3.7"
services:
app:
image: "alpine:3.9.5"
command: "sh -c 'while true ; do sleep 1; done'"
volumes:
- .:/app
ports:
- "8585:8080"
$ docker-compose up
Recreating owner_app_1 ... done
Attaching to owner_app_1
docker-compose exec app sh
ls /app
AppData
Application Data
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
Links
Local Settings
MicrosoftEdgeBackups
Music
My Documents
NTUSER.DAT
...
curl http://localhost:8585
stat *txt
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
version: "3.7"
services:
app:
image: docker-java/java
# NOTE: GID can be unset
# may use bash syntax to supply for defaut value
user: "${UID:-1000}:${GID:-1000}"
command: "java -jar /app/target/demo-2.7.5.jar"
volumes:
- .:/app
ports:
- "8585:8080"
environment:
UID: ${UID:-1000}
0GID: ${GID:-1000}
applicationMain.txt
controllerHello.txt
curl http://localhost:8585
stat *txt
access: (0644/-rw-r--r--) Uid: ( 1000/sergueik) Gid: ( 1000/sergueik)
Dockerfile.тосё
тосё_dockerfile
public @ResponseBody byte[] getImage()
InputStream in = ... ;
return IOUtils.toByteArray(in);
eLIKE
CREATE TABLE contacts (
first_name text NOT NULL,
last_name text NOT NULL,
email text NOT NULL
);
CREATE UNIQUE INDEX idx_contacts_email
EXPLAIN QUERY PLAN
SELECT
first_name,
last_name,
email
FROM
contacts
WHERE
email LIKE 'lisa.smith@sqlitetutorial.ne%';
SEARCH TABLE contacts USING INDEX idx_contacts_email (email>? AND email<?)
TABLE SCAN
SEARCH TABLE data USING INDEX idx_data_email (email=?)
TABLE SCAN
LIKE
<test-suite type="TestSuite" id="1219" name="Tests" fullname="WebSocketTests.Tests" runstate="Runnable" testcasecount="39" result="Passed" start-time="2022-10-31T12:24:58.7422523Z" end-time="2022-10-31T12:24:59.4228116Z" duration="0.680559" total="39" passed="39" failed="0" warnings="0" inconclusive="0" skipped="0" asserts="178">
<data passed="1"/><data passed="2"/><data passed="3"/><data passed="4"/></test-suite>
r = root.find {it.name() == 'test-suite'}.value()[3].@passed
println "3 test-passed result one node - ${r.toString()}\n------"
3 test-passed result one node - 4
https://habr.com/ru/post/147843/