-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat(devbox): Build image #2943
Draft
silvestre
wants to merge
7
commits into
main
Choose a base branch
from
add-devbox-image
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
36ff60c
feat(devbox): Add Cloud MTA Build Tool to devbox
silvestre 34a22f6
feat(devbox): Build image
silvestre 6d49316
fix(image workflow): DRY
silvestre d3dd316
fix(Dockerfile): Remove step number
silvestre 2f14adc
fix(local-flake): Remove `piper`, rename `mbt`
silvestre ea75773
chore(asdf2devbox): Remove `credhub` mapping
silvestre f9814b2
feat(tests): Make PostgreSQL-based tests runnable in `devbox`
silvestre 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 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,18 @@ | ||
FROM jetpackio/devbox@sha256:430afb5a5c9b4ec9f56776e8fcb82fe67fa5fabba3ba67ebb1c13b17d0e8de8d | ||
|
||
|
||
# Installing your devbox project | ||
WORKDIR /code | ||
USER root:root | ||
RUN mkdir -p /code && chown "${DEVBOX_USER}:${DEVBOX_USER}" /code | ||
USER ${DEVBOX_USER}:${DEVBOX_USER} | ||
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.json devbox.json | ||
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.lock devbox.lock | ||
|
||
|
||
# Copying local flakes directories | ||
COPY local-flake local-flake | ||
|
||
RUN devbox run -- echo "Installed Packages." | ||
|
||
CMD ["devbox", "shell"] |
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,42 +1,43 @@ | ||
{ | ||
"packages": [ | ||
"path:local-flake#bosh-bootloader", | ||
"path:local-flake#app-autoscaler-cli-plugin", | ||
"path:local-flake#log-cache-cli-plugin", | ||
"path:local-flake#uaac", | ||
"credhub-cli@latest", | ||
"delve@latest", | ||
"gh@latest", | ||
"go-tools@latest", | ||
"gopls@latest", | ||
"nodejs@latest", | ||
"nodePackages.yaml-language-server@latest", | ||
"rubocop@latest", | ||
"rubyPackages.solargraph@latest", | ||
"swagger-cli@latest", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"pre-commit@latest", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"which@latest", | ||
"jq@latest", | ||
"[email protected]", | ||
"python@latest", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"google-cloud-sdk@latest", | ||
"temurin-bin-17@latest", | ||
"bundix@latest", | ||
"oha@latest" | ||
], | ||
"packages": { | ||
"path:local-flake#bosh-bootloader": "", | ||
"path:local-flake#app-autoscaler-cli-plugin": "", | ||
"path:local-flake#log-cache-cli-plugin": "", | ||
"path:local-flake#cloud-mta-build-tool": "", | ||
"path:local-flake#uaac": "", | ||
"credhub-cli": "latest", | ||
"delve": "latest", | ||
"gh": "latest", | ||
"go-tools": "latest", | ||
"gopls": "latest", | ||
"nodejs": "latest", | ||
"nodePackages.yaml-language-server": "latest", | ||
"rubocop": "latest", | ||
"rubyPackages.solargraph": "latest", | ||
"swagger-cli": "latest", | ||
"actionlint": "1.6.27", | ||
"direnv": "2.34.0", | ||
"gnumake": "4.4", | ||
"maven": "3.8.6", | ||
"pre-commit": "latest", | ||
"bosh-cli": "7.5.6", | ||
"golangci-lint": "1.57.2", | ||
"yq-go": "4.43.1", | ||
"which": "latest", | ||
"jq": "latest", | ||
"fly": "7.10.0", | ||
"python": "latest", | ||
"cloudfoundry-cli": "8.7.10", | ||
"shellcheck": "0.10.0", | ||
"act": "0.2.62", | ||
"go": "1.21.5", | ||
"ruby": "3.3.1", | ||
"ginkgo": "2.17.3", | ||
"bundix": "latest", | ||
"oha": "latest", | ||
"google-cloud-sdk": "latest", | ||
"temurin-bin-17": "latest" | ||
}, | ||
"shell": { | ||
"init_hook": [ | ||
"cf install-plugin -f $(which app-autoscaler-cli-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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,7 @@ | |
def get_installed_version(package): | ||
with open(os.path.join(script_dir, '..', 'devbox.json'), 'r') as f: | ||
data = json.load(f) | ||
for pkg in data['packages']: | ||
if pkg.startswith(f"{package}@"): | ||
return pkg.split('@')[1] | ||
return None | ||
Comment on lines
-14
to
-17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice one 👍 |
||
return data['packages'][package] | ||
|
||
# Read the .tool-versions file and process each line | ||
if __name__ == "__main__": | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested if the CI-pipeline required stuff like
make acceptance-tests
,make test
etc. works with this docker image?