fix all issues
This commit is contained in:
parent
cbe236f220
commit
8ca9a1c385
24
Dockerfile
24
Dockerfile
|
@ -1,13 +1,13 @@
|
|||
# dotnet build environment
|
||||
#FROM alpine:latest
|
||||
#WORKDIR /
|
||||
FROM alpine:latest as dotnet
|
||||
WORKDIR /
|
||||
|
||||
#RUN apk add dotnet8-sdk git
|
||||
#RUN git clone https://gitlab.com/kzotkin/hiveemulator
|
||||
RUN apk add dotnet8-sdk git
|
||||
RUN git clone https://gitlab.com/kzotkin/hiveemulator
|
||||
|
||||
#WORKDIR /hiveemulator/src/CommunicationControl/
|
||||
#RUN dotnet build DevOpsProject/DevOpsProject.CommunicationControl.API.csproj
|
||||
#RUN dotnet build DevOpsProject.HiveMind.API/DevOpsProject.HiveMind.API.csproj
|
||||
WORKDIR /hiveemulator/src/CommunicationControl/
|
||||
RUN dotnet build DevOpsProject/DevOpsProject.CommunicationControl.API.csproj
|
||||
RUN dotnet build DevOpsProject.HiveMind.API/DevOpsProject.HiveMind.API.csproj
|
||||
|
||||
|
||||
# nodejs build environment
|
||||
|
@ -27,14 +27,19 @@ FROM alpine:latest
|
|||
WORKDIR /
|
||||
|
||||
#RUN apk add dotnet8-sdk redis openrc lighttpd npm
|
||||
RUN apk add git dotnet8-sdk redis openrc npm
|
||||
#RUN apk add git dotnet8-sdk redis openrc npm
|
||||
#RUN apk add git aspnetcore8-runtime redis openrc npm
|
||||
RUN apk add aspnetcore8-runtime redis openrc npm
|
||||
|
||||
RUN git clone https://gitlab.com/kzotkin/hiveemulator
|
||||
#RUN git clone https://gitlab.com/kzotkin/hiveemulator
|
||||
#COPY --from=nodejs /hiveemulator/ /hiveemulator/
|
||||
COPY --from=dotnet /hiveemulator/ /hiveemulator/
|
||||
#COPY --from=nodejs /hiveemulator/src/MapClient/dist/* /var/www/localhost/htdocs/
|
||||
|
||||
#RUN mkdir /hive-cc
|
||||
#COPY --from=0 /hiveemulator/src/CommunicationControl/DevOpsProject/* /hive-cc/
|
||||
#COPY --from=dotnet /hiveemulator/src/CommunicationControl/DevOpsProject/* /hiveemulator/src/CommunicationControl/DevOpsProject/
|
||||
#COPY --from=dotnet /hiveemulator/src/CommunicationControl/DevOpsProject.HiveMind.API/* /hiveemulator/src/CommunicationControl/DevOpsProject.HiveMind.API/
|
||||
|
||||
#RUN mkdir /hive-hm
|
||||
#COPY --from=0 /hiveemulator/src/CommunicationControl/DevOpsProject.HiveMind.API/* /hive-hm/
|
||||
|
@ -43,6 +48,7 @@ WORKDIR /hiveemulator/src/MapClient/
|
|||
RUN npm install
|
||||
RUN sed -i 's/localhost/10\.1\.1\.2/' public/config.json
|
||||
|
||||
WORKDIR /
|
||||
COPY ./daemon-files/hive-cc /etc/init.d/hive-cc
|
||||
COPY ./daemon-files/hive-hm /etc/init.d/hive-hm
|
||||
COPY ./daemon-files/hive-map /etc/init.d/hive-map
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
command="/usr/bin/dotnet"
|
||||
command_args="run --project /hiveemulator/src/CommunicationControl/DevOpsProject/DevOpsProject.CommunicationControl.API.csproj"
|
||||
command="./DevOpsProject.CommunicationControl.API"
|
||||
command_args=""
|
||||
pidfile="/run/hive-cc.pid"
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
start_pre() {
|
||||
cd /hiveemulator/src/CommunicationControl/DevOpsProject/bin/Debug/net8.0/
|
||||
}
|
||||
|
||||
depend() {
|
||||
need redis
|
||||
}
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
command="/usr/bin/dotnet"
|
||||
command_args="run --project /hiveemulator/src/CommunicationControl/DevOpsProject.HiveMind.API/DevOpsProject.HiveMind.API.csproj"
|
||||
command="./DevOpsProject.HiveMind.API"
|
||||
command_args=""
|
||||
pidfile="/run/hive-hm.pid"
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
start_pre() {
|
||||
cd /hiveemulator/src/CommunicationControl/DevOpsProject.HiveMind.API/bin/Debug/net8.0/
|
||||
}
|
||||
|
||||
depend() {
|
||||
need hive-cc
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ depend() {
|
|||
need hive-cc
|
||||
}
|
||||
|
||||
start() {
|
||||
start_pre() {
|
||||
cd /hiveemulator/src/MapClient/
|
||||
${command} ${command_args}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue