Skip to content

Commit

Permalink
[HWORKS-431] Git image version shoud not be hardcoded in Hopsworks se…
Browse files Browse the repository at this point in the history
…ttings (#1291)
  • Loading branch information
SirOibaf committed Feb 24, 2023
1 parent 6ff4345 commit 1ada34d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ public class Settings implements Serializable {
private final static String VARIABLE_MAX_ENV_YML_BYTE_SIZE = "max_env_yml_byte_size";

//Git
private static final String VARIABLE_GIT_IMAGE_VERSION = "git_image_version";
private static final String VARIABLE_GIT_COMMAND_TIMEOUT_MINUTES_DEFAULT = "git_command_timeout_minutes";
private static final String VARIABLE_ENABLE_GIT_READ_ONLY_REPOSITORIES = "enable_read_only_git_repositories";

Expand Down Expand Up @@ -853,6 +854,7 @@ private void populateCache() {
REJECT_REMOTE_USER_NO_GROUP = setBoolVar(VARIABLE_REJECT_REMOTE_USER_NO_GROUP, REJECT_REMOTE_USER_NO_GROUP);

//Git
GIT_IMAGE_VERSION = setStrVar(VARIABLE_GIT_IMAGE_VERSION, GIT_IMAGE_VERSION);
GIT_MAX_COMMAND_TIMEOUT_MINUTES = setIntVar(VARIABLE_GIT_COMMAND_TIMEOUT_MINUTES_DEFAULT,
GIT_MAX_COMMAND_TIMEOUT_MINUTES);
ENABLE_GIT_READ_ONLY_REPOSITORIES = setBoolVar(VARIABLE_ENABLE_GIT_READ_ONLY_REPOSITORIES,
Expand Down Expand Up @@ -1703,9 +1705,10 @@ public synchronized Boolean getEnableGitReadOnlyRepositories() {
return ENABLE_GIT_READ_ONLY_REPOSITORIES;
}

private String GIT_IMAGE_NAME = "git:0.2.0";
private String GIT_IMAGE_VERSION = "0.3.0";
public synchronized String getGitImageName() {
return GIT_IMAGE_NAME;
checkCache();
return "git:" + GIT_IMAGE_VERSION;
}

private boolean DOCKER_CGROUP_ENABLED = false;
Expand Down

0 comments on commit 1ada34d

Please sign in to comment.