chore add core rust project files and diesel migrations

Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
This commit is contained in:
2026-04-23 17:20:01 +08:00
parent c843fecbce
commit 44c320d8fa
392 changed files with 11786 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM debian:buster
COPY htyws/target/release/htyws /root/htyws
COPY htyws/container/*.sh /root/
COPY htyws/config/log4rs.yaml /root/config/
ARG OPERATOR
ARG OPERATOR_PWD
ARG FORM_API_KEY
ENV OPERATOR=$OPERATOR
ENV OPERATOR_PWD=$OPERATOR_PWD
ENV FORM_API_KEY=$FORM_API_KEY
RUN apt-get update -y
RUN apt-get install -y libpq-dev
RUN ls /root
RUN /root/setup.sh
ENTRYPOINT /root/init.sh
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -x
#supervisord && supervisorctl start htyws
cd /root; ./htyws
sh
+21
View File
@@ -0,0 +1,21 @@
FROM ghcr.io/alchemy-studio-robot/htybasic
COPY htycommons ./htycommons
COPY htyws ./htyws
RUN cd htyws; cargo build --release
FROM debian:buster
# copy boot program generated from above container
COPY --from=0 /htyws/target/release/htyws /root/htyws
# copy scripts file
COPY htyws/container/*.sh /root/
COPY htyws/config/log4rs.yaml /root/config/
ARG OPERATOR
ARG OPERATOR_PWD
ARG FORM_API_KEY
ENV OPERATOR=$OPERATOR
ENV OPERATOR_PWD=$OPERATOR_PWD
ENV FORM_API_KEY=$FORM_API_KEY
RUN apt-get update -y
RUN apt-get install -y libpq-dev
RUN /root/setup.sh
ENTRYPOINT /root/init.sh
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
set -x
chmod a+x /root/htyws