-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confirmed working under Docker on RP3 controlling Relay Plates. GPIO …
…has yet to be confirmed, but should work.
- Loading branch information
Showing
19 changed files
with
142 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
echo "HOLIDAY SHOW CLIENT CORE" | ||
echo "CONNECTING TO SERVER: $SERVER:$PORT" | ||
echo "STORAGE PATH: $STORAGE" | ||
echo "DEVICE ID: $DEVICEID" | ||
echo "STARTING HOLIDAY SHOW CLIENT CORE..." | ||
./HolidayShowClient.Core -s "$SERVER" -p $PORT -d $DEVICEID -a "$STORAGE" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM arm32v7/ubuntu:bionic AS base | ||
WORKDIR /app | ||
|
||
#Default Container Port 5555 will be used. | ||
ARG DEFAULTPORT=5555 | ||
ARG DEFAULTSTORAGE='/Data' | ||
|
||
EXPOSE $DEFAULTPORT | ||
|
||
ENV DEVICEID= | ||
ENV SERVER= | ||
ENV PORT=$DEFAULTPORT | ||
ENV STORAGE=$DEFAULTSTORAGE | ||
ENV PORT=$DEFAULTPORT | ||
ENV DOTNET_RUNNING_IN_CONTAINER=true | ||
|
||
ENV TZ=America/Los_Angeles | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
FROM microsoft/dotnet:2.1-sdk AS build | ||
WORKDIR /src | ||
|
||
#Copy base projects because we use project links | ||
COPY . . | ||
|
||
WORKDIR /src/HolidayShowClient.Core | ||
|
||
FROM build AS publish | ||
RUN dotnet publish -r linux-arm -c Release -o /app HolidayShowClient.Core.csproj | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
COPY /Docker/Client/entrypoint.sh . | ||
|
||
#Copy some required assemblies to the base directory | ||
#two different C++ libs use these. They have a different lib signature | ||
#so bringing them both over. | ||
WORKDIR /usr/lib | ||
COPY /References/libwiringPi.so . | ||
COPY /References/libwiringPi.so.2.46 . | ||
|
||
WORKDIR /app | ||
|
||
#QT is required for the relay plate - this is a big dependancy, and the library should later be staticly linked. | ||
RUN apt-get update && \ | ||
apt-get install -y liblttng-ust0 libcurl3 libssl1.0.0 libkrb5-3 zlib1g libicu60 qt5-default | ||
|
||
ENTRYPOINT ["/app/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version: '3.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3.4' | ||
|
||
services: | ||
holidayshowserver.core: | ||
image: ${DOCKER_REGISTRY}HolidayShowClient.Core | ||
build: | ||
context: . | ||
dockerfile: HolidayShowClient.Core/Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
version: '3.4' | ||
|
||
services: | ||
holidayshowserver.core: | ||
image: ${DOCKER_REGISTRY}holidayshowservercore | ||
HolidayShowClient: | ||
image: holidayshowclient | ||
build: | ||
context: . | ||
dockerfile: HolidayShowServer.Core/Dockerfile | ||
dockerfile: HolidayShowClient.Core/Dockerfile | ||
|
||
|
||
HolidayShowServer: | ||
image: holidayshowserver | ||
build: | ||
context: . | ||
dockerfile: HolidayShowServer.Core/Dockerfile |