This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 284
Move jobpy to Docker images #3741
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ada807f
Move scripts to Docker
Krigpl ddd0cae
tests etc
Krigpl 3149b4f
linter
Krigpl e92b6c8
enable tests
Krigpl 3136e78
pull dummy image
Krigpl 0dbcfed
fix test
Krigpl 53c0244
temp images
Krigpl 4bfa91d
more tmp images
Krigpl 7f41945
fix one more
Krigpl 4ebb884
remove find_task_script
Krigpl ac6514b
fix test
Krigpl 2aa55f8
update image tags
Krigpl db055d4
remove from resources
Krigpl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
from os import path | ||
|
||
from golem.core.common import get_golem_path | ||
from golem.docker.environment import DockerEnvironment | ||
|
||
|
||
class DummyTaskEnvironment(DockerEnvironment): | ||
DOCKER_IMAGE = "golemfactory/base" | ||
DOCKER_TAG = "1.3" | ||
DOCKER_IMAGE = "golemfactory/dummy" | ||
DOCKER_TAG = "1.0" | ||
ENV_ID = "DUMMYPOW" | ||
APP_DIR = path.join(get_golem_path(), 'apps', 'dummy') | ||
SCRIPT_NAME = "docker_dummytask.py" | ||
SHORT_DESCRIPTION = "Dummy task (example app calculating proof-of-work " \ | ||
"hash)" |
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,5 @@ | ||
FROM golemfactory/base:1.3 | ||
|
||
MAINTAINER Golem Tech <tech@golem.network> | ||
|
||
COPY scripts/ /golem/scripts/ |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
golemfactory/base core/resources/images/base.Dockerfile 1.3 core/resources/images/ | ||
golemfactory/nvgpu core/resources/images/nvgpu.Dockerfile 1.1 . apps.core.nvgpu.is_supported | ||
golemfactory/blender blender/resources/images/blender.Dockerfile 1.5 blender/resources/images/ | ||
golemfactory/blender blender/resources/images/blender.Dockerfile 1.7 blender/resources/images/ | ||
golemfactory/blender_nvgpu blender/resources/images/blender_nvgpu.Dockerfile 1.1 . apps.core.nvgpu.is_supported | ||
golemfactory/image_metrics rendering/resources/images/Dockerfile 1.9 rendering/resources/images/ | ||
golemfactory/dummy dummy/resources/images/Dockerfile 1.0 dummy/resources/images | ||
golemfactory/image_metrics rendering/resources/images/Dockerfile 1.11 rendering/resources/images/ |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why script_filepath is part of extra_data ?
As far as I know, in extra_data are all parameters needed inside docker container. script_filepath is used only as command to run docker, so we don't need to pass it to params.json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is a slight abuse of
extra_data
, but there were no better alternatives at the time. Ideallysrc_code
from ctd would be replaced withscript_filepath
(or even better with some environment config dict, e.g. to include argv as well) but this requires changes to Golem-Messages so this will be done separately.