File tree 2 files changed +28
-4
lines changed
2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,18 @@ WORKDIR /builder
9
9
RUN rustup default nightly
10
10
RUN cargo build --release
11
11
12
- FROM ubuntu
12
+ FROM debian:12.5-slim
13
+
14
+ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.list && \
15
+ echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >> /etc/apt/sources.list
16
+ RUN apt-get update && apt-get install -y postgresql-client
13
17
14
18
ARG APP_SERVER=fnck_sql
15
19
16
20
WORKDIR /fnck_sql
17
21
18
- ENV IP="127.0.0.1"
19
-
20
22
EXPOSE 5432
21
23
22
24
COPY --from=builder /builder/target/release/${APP_SERVER} ${APP_SERVER}
23
25
24
- ENTRYPOINT ["./fnck_sql" ]
26
+ ENTRYPOINT ["./fnck_sql" , "--ip" , "0.0.0.0" ]
Original file line number Diff line number Diff line change @@ -59,6 +59,28 @@ let tuples = fnck_sql.run("select * from t1").await?;
59
59
Storage Support:
60
60
- KipDB
61
61
62
+ ### Docker
63
+ #### Build From Source
64
+ ~~~ shell
65
+ git clone https://github.com/KipData/FnckSQL.git
66
+ cd FnckSQL
67
+ docker build -t fncksql:latest .
68
+ ~~~
69
+
70
+ We installed the ` psql ` tool in the image for easy debug.
71
+
72
+ You can use ` psql -h 127.0.0.1 -p 5432 ` to do this.
73
+
74
+ ~~~ shell
75
+ docker run -d \
76
+ --name=fncksql \
77
+ -p 5432:5432 \
78
+ --restart=always \
79
+ -v fncksql-data:/fnck_sql/fncksql_data \
80
+ -v /etc/localtime:/etc/localtime:ro \
81
+ fncksql:latest
82
+ ~~~
83
+
62
84
### Features
63
85
- ORM Mapping: ` features = ["marcos"] `
64
86
``` rust
You can’t perform that action at this time.
0 commit comments