-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert Tiltfile to new liveupdate (#99)
- Loading branch information
Showing
6 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,25 +1,26 @@ | ||
# -*- mode: Python -*- | ||
|
||
default_registry('gcr.io/windmill-public-containers') | ||
|
||
# Generate the API docs. | ||
read_file('api/api.py') | ||
local('make api') | ||
|
||
k8s_yaml('serve.yaml') | ||
|
||
img = fast_build('gcr.io/windmill-public-containers/tilt-site', | ||
'base.dockerfile', | ||
'bundle exec jekyll serve --config _config.yml,_config-dev.yml') | ||
img.add('./src', '/src/') | ||
img.run('bundle install', trigger=['src/Gemfile', 'src/Gemfile.lock']) | ||
img.hot_reload() | ||
docker_build('tilt-site', 'src', dockerfile='site.dockerfile', | ||
live_update = [ | ||
sync('./src', '/src/'), | ||
run('bundle install', trigger=['src/Gemfile', 'src/Gemfile.lock']) | ||
]) | ||
|
||
img = fast_build('gcr.io/windmill-public-containers/docs-site', | ||
'docs.dockerfile', | ||
'bundle exec jekyll serve --config _config.yml,_config-dev.yml') | ||
img.add('./src', '/src/') | ||
img.add('./docs', '/docs/') | ||
img.run('bundle install', trigger=['src/Gemfile', 'src/Gemfile.lock', 'docs/Gemfile', 'docs/Gemfile.lock']) | ||
img.hot_reload() | ||
docker_build('docs-site', '.', dockerfile='docs.dockerfile', | ||
live_update = [ | ||
sync('./src', '/src/'), | ||
sync('./docs', '/docs/'), | ||
run('bundle install', trigger=['src/Gemfile', 'src/Gemfile.lock', | ||
'docs/Gemfile', 'docs/Gemfile.lock']) | ||
]) | ||
|
||
k8s_resource('tilt-site', port_forwards=4000) | ||
k8s_resource('docs-site', port_forwards=4001) |
This file was deleted.
Oops, something went wrong.
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
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,10 @@ | ||
FROM ruby:2.6 | ||
|
||
RUN gem install jekyll bundler | ||
|
||
WORKDIR /src | ||
|
||
ADD ./Gemfile* /src/ | ||
RUN bundle install | ||
ADD . . | ||
ENTRYPOINT bundle exec jekyll serve --config _config.yml,_config-dev.yml |