-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #, if available: *Description of changes:* Test functioning of nested bind mounts with and without $DOCKER_COMAPT set. 1. Without $FINCH_DOCKER_COMAPT. ``` # fails when nested directories are mounted first followed by parent directory finch finch run -it -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ -v /Users/siravara/temp_home/:/Users/siravara/outer public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/" # passes when parent directory is mounted first followed by nested directories finch finch run -it -v /Users/siravara/temp_home/:/Users/siravara/outer -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/" ``` 2. With $FINCH_DOCKER_COMAT set ``` # passes when nested directories are mounted first followed by parent directory finch finch run -it -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ -v /Users/siravara/temp_home/:/Users/siravara/outer public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/" # passes when parent directory is mounted first followed by nested directories finch finch run -it -v /Users/siravara/temp_home/:/Users/siravara/outer -v /Users/siravara/outer/nest/://Users/siravara/outer/nest/ public.ecr.aws/amazonlinux/amazonlinux:2 sh -c "ls /Users/siravara/outer/nest/" ``` *Testing done:* Yes locally. - [X] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: Vishwas Siravara <[email protected]>
- Loading branch information
Showing
3 changed files
with
108 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Package fenv Package path implements utility routines for working with environment variables | ||
package fenv | ||
|
||
import ( | ||
"os" | ||
) | ||
|
||
// GetEnv retrieves the value of an environment variable. | ||
// It returns an empty string if the variable is not set. | ||
func GetEnv(key string) string { | ||
return os.Getenv(key) | ||
} |
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