Skip to content

Instantly share code, notes, and snippets.

@herman-rogers
Created March 23, 2017 20:52
Show Gist options
  • Save herman-rogers/fded64fd46d65ed5401e95929429832b to your computer and use it in GitHub Desktop.
Save herman-rogers/fded64fd46d65ed5401e95929429832b to your computer and use it in GitHub Desktop.
func (engine Docker) RunContainer(image string) error {
ctx := context.Background()
env := []string{
fmt.Sprintf("GCLOUD_PROJECT=%s", os.Getenv("GCLOUD_PROJECT")),
fmt.Sprintf("GCLOUD_SERVICE_KEY=%s", os.Getenv("GCLOUD_SERVICE_KEY")),
fmt.Sprintf("PAPERTRAIL_ENDPOINT=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("REGION=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("AWS_ACCESS_KEY_ID=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("AWS_SECRET_ACCESS_KEY=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("CODE_REPO_STORAGE=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("QUEUE_URL=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("MRROBOT_NOTIFICATIONS=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("GAMEBUILDR_NOTIFICATIONS=%s", os.Getenv(config.LogEndpoint)),
fmt.Sprintf("GO_ENV=%s", os.Getenv(config.LogEndpoint)),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment