-
-
Notifications
You must be signed in to change notification settings - Fork 153
fix: Support custom Dockerfiles in devcontainer builds with --replace #1855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cc8669d
feat: Support custom Dockerfiles in devcontainer builds with --replace
osterman 1e8a00c
fix: Skip image pull for locally built devcontainer images
osterman 4643c47
fix: Correct AWS SDK license URL in NOTICE file
osterman 9ccbad2
[autofix.ci] apply automated fixes
autofix-ci[bot] 6655b13
fix: Address CodeRabbit review feedback
osterman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,63 @@ | ||
| # Example atmos.yaml configuration with devcontainer using custom Dockerfile | ||
| # | ||
| # This example demonstrates building a container from a Dockerfile instead of | ||
| # using a pre-built image. This is useful when you need: | ||
| # - Custom tools pre-installed | ||
| # - Specific tool versions | ||
| # - Custom shell configuration | ||
| # - Project-specific setup | ||
| # | ||
| # Quick start: | ||
| # atmos devcontainer shell geodesic # Build & launch shell in custom container | ||
| # atmos devcontainer shell geodesic --replace # Force rebuild | ||
| # atmos devcontainer list # List available devcontainers | ||
|
|
||
| # Base path for components and stacks | ||
| base_path: "." | ||
|
|
||
| # Command aliases | ||
| aliases: | ||
| shell: "devcontainer shell geodesic" | ||
|
|
||
| components: | ||
| terraform: | ||
| base_path: "components/terraform" | ||
|
|
||
| # Devcontainer configurations with Dockerfile build | ||
| devcontainer: | ||
| # Geodesic devcontainer using local Dockerfile | ||
| geodesic: | ||
| settings: | ||
| runtime: podman # Optional: docker, podman, or omit for auto-detect | ||
| spec: | ||
| # Include devcontainer.json which has the build configuration | ||
| - !include devcontainer.json | ||
|
|
||
| # Alternative: Define build configuration inline | ||
| geodesic-inline: | ||
| spec: | ||
| name: "Geodesic with Atmos (Inline)" | ||
| # Using "build" instead of "image" tells Atmos to build from Dockerfile | ||
| build: | ||
| dockerfile: "Dockerfile" | ||
| context: "." | ||
| args: | ||
| GEODESIC_VERSION: "latest" | ||
| workspaceFolder: "/workspace" | ||
| workspaceMount: "type=bind,source=${localWorkspaceFolder},target=/workspace" | ||
| forwardPorts: | ||
| - 8080 | ||
| - 3000 | ||
| containerEnv: | ||
| ATMOS_BASE_PATH: "/workspace" | ||
| TERM: "${localEnv:TERM}" | ||
| remoteUser: "root" | ||
| runArgs: | ||
| - "--hostname=geodesic-atmos" | ||
|
|
||
| stacks: | ||
| base_path: "stacks" | ||
| included_paths: | ||
| - "**/*" | ||
| excluded_paths: | ||
| - "**/_defaults.yaml" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.