Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat(appliance): appliance docker container#63357

Merged
Chickensoupwithrice merged 7 commits into
mainfrom
al/rel-201/appliance-container
Jun 27, 2024
Merged

feat(appliance): appliance docker container#63357
Chickensoupwithrice merged 7 commits into
mainfrom
al/rel-201/appliance-container

Conversation

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor

Working towards a standard Appliance deployment, currently none exist.
As part of REL-13 we need to create a docker container that hosts Appliance (REL-201) which this PR resolves.

Test plan

sg images build appliance

Changelog

  • feat(appliance): create docker container

@cla-bot cla-bot Bot added the cla-signed label Jun 19, 2024
@Chickensoupwithrice Chickensoupwithrice requested review from a team, DaedalusG, craigfurman and jdpleiness and removed request for a team June 20, 2024 17:46
@Chickensoupwithrice Chickensoupwithrice marked this pull request as ready for review June 20, 2024 17:46

@craigfurman craigfurman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

I won't claim to know exactly how this bazel works, but thanks for doing this!

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor Author

No worries! :)

We can now build images with sg wolfi image appliance

Docs for how the wolfi-images work are located here

I'm still testing to make sure it includes all the dependencies we need, and correctly runs appliance as expected.

Comment thread cmd/appliance/BUILD.bazel
repo_tags = ["appliance:candidate"],
)

wolfi_base()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isnt needed if youre using //wolfi-images/sourcegraph-base:base_image, only if youve got a custom wolfi-based base image for appliance e.g. //cmd/batcheshelper has its own custom image defined in wolfi-images/batcheshelper.yaml, hence it would use wolfi_base()

@Strum355 Strum355 Jun 25, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I shouldve scrolled to the next file to see you do have a custom wolfi image 😄 in that cause replace base = "//wolfi-images/sourcegraph-base:base_image", with base = ":base_image",, to reference the base image created by this wolfi_base macro invocation, unless youre fine using //wolfi-images/sourcegraph-base:base_image in which case you dont need wolfi-images/appliance.yaml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see, I think it's fine to use the sourcegraph-base:base_image, since I don't think there's anything custom we need to run appliance.

@Chickensoupwithrice Chickensoupwithrice merged commit d2084ce into main Jun 27, 2024
@Chickensoupwithrice Chickensoupwithrice deleted the al/rel-201/appliance-container branch June 27, 2024 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants