code: func GetEnvironment(path string) (api.EnvironmentList, error) {
  	envPath := filepath.Join(path, ".s2i", constants.Environment)
  	if _, err := os.Stat(envPath); os.IsNotExist(err) {
  		return nil, errors.New("no environment file found in application sources")
  	}
  
  	f, err := os.Open(envPath)
  	if err != nil {
  		return nil, errors.New("unable to read custom environment file")
  	}
  	defer f.Close()
  
  	result := api.EnvironmentList{}
  
  	scanner := bufio.NewScanner(f)
  	for scanner.Scan() {
  		s := scanner.Text()
  		// Allow for comments in environment file
  		if strings.HasPrefix(s, "#") {
  			continue
  		}
  		result.Set(s)
  	}
  
  	glog.V(1).Infof("Setting %d environment variables provided by environment file in sources", len(result))
  	return result, scanner.Err()
  }
docs: // GetEnvironment gets the .s2i/environment file located in the sources and
  // parse it into EnvironmentList.