Skip to content
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
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

feat(devbox): Build image #2943

wants to merge 7 commits into from

Conversation

silvestre
Copy link
Member

@silvestre silvestre commented May 22, 2024

  • feat(devbox): Add Cloud MTA Build Tool to devbox
  • feat(devbox): Build image

# Issue

For building MTAs the Cloud MTA Build Tool is required.

# Fix

Add it via local flake
# Issue

To switch over our CI workflows to devbox a docker image is required.

# Fix

Build it from the Dockerfile generated with `devbox generate dockerfile`
@silvestre silvestre changed the title add devbox image feat(devbox): Build image May 22, 2024
@silvestre silvestre added exclude-from-changelog allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. labels May 22, 2024
@silvestre silvestre marked this pull request as ready for review May 22, 2024 11:53
scripts/asdf2devbox.py Outdated Show resolved Hide resolved
Copy link

linux-foundation-easycla bot commented May 22, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

local-flake/flake.nix Outdated Show resolved Hide resolved
devbox.json Outdated Show resolved Hide resolved
# Issue

The image name was constructed multiple times.

# Fix

Use `IMAGE_NAME` environment variable
# Issue

- `sap-piper` is not needed at the moment.
- `mbt` was cryptically named.

# Fix

- Remove `sap-piper`
- Rename `mbt` to the name of the repo
# Issue

`credhub` is not part of `.tool-versions`, so no mapping is needed

# Fix

Remove `credhub` mapping
Comment on lines -14 to -17
for pkg in data['packages']:
if pkg.startswith(f"{package}@"):
return pkg.split('@')[1]
return None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one 👍

@@ -0,0 +1,18 @@
FROM jetpackio/devbox@sha256:430afb5a5c9b4ec9f56776e8fcb82fe67fa5fabba3ba67ebb1c13b17d0e8de8d
Copy link
Contributor

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?

@silvestre silvestre marked this pull request as draft May 23, 2024 13:21
Copy link

sonarcloud bot commented May 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. exclude-from-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants