Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use COPY instead of git clone #204

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/.vs
/.idea
/.vscode
/bin
**/GolemLib/bin/
**/GolemLib/obj/
**/Mock/bin/
**/Mock/obj/
/FacadeHeadlessApp/bin/
/FacadeHeadlessApp/obj/
/Golem/bin/
/Golem/obj/
/Golem.Tests/bin/
/Golem.Tests/obj/
/Golem.Tests/tests/
/Golem.Tests/TestResults
/Golem.Tests/Tools/App/.venv
/Golem.Tests/Tools/App/build
/Golem.Tests/Tools/App/dist
/Golem.Tests/Tools/App/app.spec
/GolemLib.Tests/bin/
/GolemLib.Tests/obj/

/Golem.Tools/bin/
/Golem.Tools/obj/
/Golem.Tools/App/.venv
/Golem.Tools/App/*.log
/Golem.Tools/App/build
/Golem.Tools/App/dist
/Golem.Tools/App/app.spec

/Golem.Package/bin/
/Golem.Package/obj/
/Golem.Package/tests/
/Golem.Package/package/

/example/ExampleRunner/bin/
/example/ExampleRunner/obj/

/MockGUI/bin/
/MockGUI/obj/
/modules/
/modules-*/
/package/
/releases/

/example/ai-requestor/*.log
/example/ai-requestor/.venv/
/example/ai-requestor/dist

**/example/ai-requestor/outputs/
**/output.png

/example/DummyAiHttpServer/__pycache__/
/example/ai-requestor/__pycache__/
**/MockGUI/MockGUI.sln
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ RUN apt-get update && apt-get install -y python3 python3-venv python3-pip
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip3 install pyinstaller

RUN git clone https://github.com/golemfactory/gamerhash-facade.git
COPY . /gamerhash-facade
WORKDIR /gamerhash-facade
RUN git checkout headless-facade

# Build necessary application
RUN dotnet build FacadeHeadlessApp
Expand All @@ -24,5 +23,9 @@ WORKDIR /apps
COPY --from=build /apps .

RUN ./Golem.Package download --target modules --version v5.1.0

COPY ./dummy-offer-overrides.json /dummy-offer-overrides.json
ENV OFFER_OVERRIDE_FILE_PATH="/dummy-offer-overrides.json"

ENTRYPOINT ["./FacadeHeadlessApp", "--golem", "modules"]
CMD ["--wallet", "0x82a630d2447ffd282657978f9f76c02da8be9819"]
16 changes: 16 additions & 0 deletions dummy-offer-overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"properties": {
"golem.!exp.gap-35.v1.inf.gpu.clocks.graphics.mhz": 3105,
"golem.!exp.gap-35.v1.inf.gpu.clocks.memory.mhz": 10501,
"golem.!exp.gap-35.v1.inf.gpu.clocks.sm.mhz": 3105,
"golem.!exp.gap-35.v1.inf.gpu.clocks.video.mhz": 2415,
"golem.!exp.gap-35.v1.inf.gpu.cuda.compute-capability": "8.9",
"golem.!exp.gap-35.v1.inf.gpu.cuda.cores": 16384,
"golem.!exp.gap-35.v1.inf.gpu.cuda.enabled": true,
"golem.!exp.gap-35.v1.inf.gpu.cuda.version": "12.6",
"golem.!exp.gap-35.v1.inf.gpu.memory.total.gib": 23.98828125,
"golem.!exp.gap-35.v1.inf.gpu.model": "NVIDIA GeForce RTX 8080"
},
"constraints": ""
}

Loading