Skip to content

Commit 971c9e4

Browse files
author
jj
committed
Enable json-tls for ring-http-exchange
1 parent 7a4de02 commit 971c9e4

8 files changed

Lines changed: 313 additions & 135 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM clojure:temurin-21-lein AS builder
1+
FROM clojure:temurin-26-lein-trixie AS builder
22
WORKDIR /app
33
COPY project.clj ./
44
COPY resources ./resources
55
RUN lein deps
66
COPY src ./src
77
RUN lein with-profile uberjar uberjar
88

9-
FROM eclipse-temurin:25-jre
9+
FROM eclipse-temurin:26-jre
1010
RUN mkdir -p /data/static
1111
WORKDIR /app
1212
COPY --from=builder /app/target/ring-0.1.0-standalone.jar /app/app.jar
1313

14-
EXPOSE 8080
14+
EXPOSE 8080 8081
1515

1616
ENTRYPOINT ["java", "-jar", "app.jar"]

frameworks/ring-http-exchange/meta.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"upload",
1515
"short-lived",
1616
"mixed",
17+
"json-tls",
1718
"api-4",
1819
"api-16",
1920
"async-db",
2021
"sync-db",
2122
"static",
22-
"tcp-frag"
23+
"tcp-frag",
24+
"crud"
2325
]
2426
}

frameworks/ring-http-exchange/project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
[metosin/jsonista "1.0.0"]
1515
[com.zaxxer/HikariCP "6.2.1"]
1616
[io.github.robaho/httpserver "1.0.29"]
17-
[com.github.seancorfield/next.jdbc "1.3.1093"]]
17+
[com.github.seancorfield/next.jdbc "1.3.1093"]
18+
[org.clojure/core.cache "1.2.263"]]
1819

1920
:main ^:skip-aot ring.core
2021

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO items (id, name, category, price, quantity, active, tags, rating_score, rating_count) VALUES (:id, :name, :category, :price, :quantity, true, '["bench"]', 0, 0) ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name, price = EXCLUDED.price, quantity = EXCLUDED.quantity RETURNING id
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE category = :category ORDER BY id LIMIT :limit OFFSET :offset
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE id = :id LIMIT 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE items SET name = :name, price = :price, quantity = :quantity WHERE id = :id

0 commit comments

Comments
 (0)