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

Introduce Hosted Support #183

Closed
wants to merge 3 commits into from
Closed

Conversation

tduffield
Copy link
Contributor

@tduffield tduffield commented Apr 20, 2020

Hosted support optimizes the behavior of Dobi for a hosted CI environment such as Jenkins, TravisCI, CircleCI, or Buildkite.

Hosted Mode changes two key behaviors:

  1. We use git rather than the file modification time to determine when a file has last been modified.
  2. Since the Dobi records in .dobi need to be stored outside of the workspace, the LastModified value is kept inside the record, rather than being determined based on the file modification time.

To enable Hosted Mode, simply set DOBI_HOSTED to any value. You can also set meta.hosted to true in your Dobi YAML.

Closes #182.

@tduffield tduffield force-pushed the s3-file-support branch 2 times, most recently from 456ed92 to 5a28b28 Compare April 20, 2020 23:39
@tduffield tduffield changed the title [WIP] Introduce Hosted Support Introduce Hosted Support Apr 20, 2020
@tduffield tduffield marked this pull request as draft April 21, 2020 03:38
@tduffield tduffield force-pushed the s3-file-support branch 5 times, most recently from 6636e24 to c9ebd8e Compare April 27, 2020 15:09
@tduffield tduffield marked this pull request as ready for review April 27, 2020 15:14
@tduffield
Copy link
Contributor Author

Alright, fully rebased with unit and functional tests!

@dnephin
Copy link
Owner

dnephin commented May 16, 2020

I'm not sure when I will be able to give it a full review and try it out, but I wanted to say that it looks pretty cool.

Thanks for working on it!

Base automatically changed from master to main February 27, 2021 19:11
@tduffield tduffield force-pushed the s3-file-support branch 2 times, most recently from 0f0c486 to 995a7c7 Compare May 6, 2021 17:55
tduffield and others added 3 commits May 6, 2021 12:58
Hosted support optimizes the behavior of Dobi for a hosted CI
environment such as Jenkins, TravisCI, CircleCI, or Buildkite.

Hosted Mode changes two key behaviors:

1. We use `git` rather than the file modification time to determine when
   a file has last been modified.
2. Since the Dobi records in `.dobi` need to be stored outside of the
   workspace, the `LastModified` value is kept inside the record, rather
   than being determined based on the file modification time.

To enable Hosted Mode, simply set `DOBI_HOSTED` to any value. You can
also set `meta.hosted` to `true` in your Dobi YAML.

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <github@tomduffield.com>
We don't need it, and it causes the linuxkit-rtf dependencies to be
added to go.mod and go.sum.

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <github@tomduffield.com>
@tduffield
Copy link
Contributor Author

@dnephin I've rebased and updated my PR based on your most recent changes. I'd love to see if we can get this into the upstream so I can avoid having to maintain a fork. Thanks!

@tduffield tduffield closed this Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: CI friendly tracking
2 participants