forked from IBM/FfDL
-
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.
* Pointed travis testing to do hostmount minikube * Debugging permissions error. * Fix to mkdir problems. * Fixed Makefile syntax. * Printing debugging information about pods. * Printing debugging information about pods. * Printing debugging information about pods. * Printing debugging information incl kubectl get pod. * Enabled debug mode. * Again. * Set debug as default. * tracing from the trainer to lcm * more debugging * added lower level logging * dist: xenial * Update .travis.yml * fix typo * Trying to fix Travis issue. * Fixed Travis issue. * Followed Tommy's request and increased resource limits to values from before. Might break CI. * Parameterized memory values like Tommy requested. * Attempt to fix CI. * Removed excessive debug statements and cleaned comments. Probably breaks code. * DLaaS pull june 14, with security mods * fixed glide problem * Added Image.go etc. files, deleted learner_test.go * temporarily disable framework validation * FIXME: Disable validation check for bucket until conditionalize for s3fs vs. option. * fixed two bugs related to volume mounting * I think mostly just logging changes * basic success * Add FfDL.iml to .gitignore * removed docker ref to csf_env.properties * Test for mount_cos before attempting s3 validation * fixed hostmount by pre-setup of model code in Makefile * fixed missing import * log HELM_DEPLOY_DIR, add a bunch of logging for the ci test * Added create-volumes to jenkins file, more verbose docker build for ui * Wound back Angular to 6.0.8 * Quiet docker-build-ui docker build * merged bin/create_static_volumes_config2.sh into bin/create_static_volumes_config.sh
- Loading branch information
Showing
78 changed files
with
3,133 additions
and
1,396 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
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 |
---|---|---|
|
@@ -23,3 +23,8 @@ cli/ | |
community/ | ||
persistentvol/ | ||
design/ | ||
demos/ | ||
list/ | ||
mybucket/ | ||
persistentvol/ | ||
storage-plugin/ |
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,6 +1,7 @@ | ||
#!/bin/bash | ||
|
||
kubectl create secret docker-registry regcred --docker-server=${DOCKER_REPO} --docker-username=${DOCKER_REPO_USER} --docker-password=${DOCKER_REPO_PASS} [email protected] | ||
docker pull docker.io/ffdl/ibmcloud-object-storage-plugin | ||
docker tag ibmcloud-object-storage-plugin ${DOCKER_REPO}/ibmcloud-object-storage-plugin | ||
docker push ${DOCKER_REPO}/ibmcloud-object-storage-plugin | ||
|
||
|
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
#!/bin/bash | ||
operating_system=$(uname) | ||
if [[ "$operating_system" == 'Linux' ]]; then | ||
CMD_SED=sed | ||
elif [[ "$operating_system" == 'Darwin' ]]; then | ||
CMD_SED=gsed | ||
fi | ||
replacement_string=$(echo "$AWS_URL" | $CMD_SED -r 's/\//\\\//g') | ||
|
||
echo $replacement_string |
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package framework | ||
|
||
import ( | ||
"encoding/json" | ||
"io/ioutil" | ||
) | ||
|
||
//Frameworks All frameworks supported and maintained by dlaas | ||
type Frameworks struct { | ||
Frameworks map[string]*DetailList | ||
} | ||
|
||
//DetailList list of versions for a framework | ||
type DetailList struct { | ||
Versions []*Details | ||
} | ||
|
||
//Details Specific details for a framework version | ||
type Details struct { | ||
Version string | ||
External bool | ||
Build string | ||
PrevBuild string | ||
} | ||
|
||
func readFile(location string) ([]byte, error) { | ||
fileData, err := ioutil.ReadFile(location) | ||
if err != nil { | ||
return []byte(""), err | ||
} | ||
return fileData, nil | ||
} | ||
|
||
//GetFrameworks returns the frameworks and their versions that are stored in the path to the learnerConfig | ||
func GetFrameworks(learnerConfigPath string) (Frameworks, error) { | ||
var frameworks Frameworks | ||
fileData, err := readFile(learnerConfigPath) | ||
if err != nil { | ||
return frameworks, err | ||
} | ||
err = json.Unmarshal(fileData, &frameworks) | ||
if err != nil { | ||
return frameworks, err | ||
} | ||
|
||
return frameworks, nil | ||
} | ||
|
||
//GetImageBuildTagForFramework Returns the latest build tag for a specified framework and version | ||
func GetImageBuildTagForFramework(fwName, fwVersion, learnerConfigPath string) string { | ||
frameworks, err := GetFrameworks(learnerConfigPath) | ||
if err != nil { | ||
return "" | ||
} | ||
|
||
frameworkVersions := frameworks.Frameworks[fwName].Versions | ||
|
||
for _, frameworkVersion := range frameworkVersions { | ||
if frameworkVersion.Version == fwVersion { | ||
return frameworkVersion.Build | ||
} | ||
} | ||
|
||
return "" | ||
} | ||
|
||
//CheckIfFrameworkExists Checks if the specified framework exists | ||
func CheckIfFrameworkExists(fwName, fwVersion, learnerConfigPath string) (bool, error) { | ||
frameworks, err := GetFrameworks(learnerConfigPath) | ||
if err != nil { | ||
return false, err | ||
} | ||
|
||
frameworkType := frameworks.Frameworks[fwName] | ||
if frameworkType == nil { | ||
return false, nil | ||
} | ||
frameworkVersions := frameworkType.Versions | ||
|
||
for _, frameworkVersion := range frameworkVersions { | ||
if frameworkVersion.Version == fwVersion { | ||
return true, nil | ||
} | ||
} | ||
return false, nil | ||
} |
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.