This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
Conversation
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
|
||
#### New features and UX changes | ||
|
||
- Add pod creation and start times to `rkt list` and `rkt status` ([#2030](https://github.com/coreos/rkt/pull/2030)). See [`rkt list`](https://github.com/coreos/rkt/blob/master/Documentation/subcommands/list.md) and [`rkt status`](https://github.com/coreos/rkt/blob/master/Documentation/subcommands/status.md) documentation. | ||
- Added configuration for stage1 image. User can drop a configuration file to `/etc/rkt/stage1.d` (or to `stage1.d` in user configuration directory) to tell rkt to use different name, version and location of stage1 image instead of build-time defaults ([#1977](https://github.com/coreos/rkt/pull/1977)). |
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.
s/1977/2035/g
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.
ditto below
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 1, 2016 11:12
fcc2ac3
to
541bf94
Compare
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 1, 2016 12:07
541bf94
to
d16a704
Compare
Updated. |
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 1, 2016 12:19
d16a704
to
e8aed00
Compare
Oh god, conflicts again. |
krnowak
force-pushed
the
krnowak/stage1-config
branch
2 times, most recently
from
February 2, 2016 08:21
69899ef
to
aa16d92
Compare
##### Command line flags | ||
|
||
The `data` field can be overridden with the `--dir` flag. | ||
The `stage1-images` cannot be overridden with the command line flag. |
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.
s/the/a/
#### Note for packagers | ||
|
||
With this release, `rkt` RPM/dpkg packages should have the following updates: | ||
|
||
- Pass `--enable-tpm=no` to configure script, if `rkt` should not use TPM. | ||
- Use the `--with-default-stage1-images-directory` configure flag, if the default is not satisfiable and install the built stage1 images there. |
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.
s/if the default is not satisfiable/if the default is not acceptable,/
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 2, 2016 11:10
aa16d92
to
3771968
Compare
LGTM after the doc fixes and on green |
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 2, 2016 11:34
3771968
to
0fbb13c
Compare
This extends the "override semantics" section. Also, it rewords or fixes other parts of the documentation.
Some of the configured values can be overridden with command line flags, so it would be nice to mention which ones for each kind.
build: Use a better wording in configure.ac (conflicting -> mutually exclusive), reformat ldflags for clarity in rkt.mk config: Document some public structs, remove a useless call to os.TempDir(), make sure that data directory is an absolute path, fix a bug in toArray functional tests: Minor code shuffling and renaming in test aci server. image: print a message when using stage1 image from a hash, fix a null pointer dereference when using finder
This setting will be later used by --stage1-from-dir flag.
It replaces the --stage1-image flag with five mutually-exclusive flags: --stage1-url, --stage1-path, --stage1-name, --stage1-hash and --stage1-from-dir. The flags tell rkt to use stage1 image, respectively, from a URL, from a path, in the store under the name, in the store with the hash, from a file in the default stage1 images directory. In case none of the above flags were provided, rkt takes stage1 and paths configuration and build-time defaults to decide for which name and version of the stage1 image it should search for in the image store and, if that fails, from which location it should fetch the image. This introduces a new configure flag for defining the path to the default stage1 images directory.
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 2, 2016 13:23
0fbb13c
to
c048bda
Compare
…nder http This will be used in the stage1 loading test to test stage1 loading either from a configuration with an http location defined or from the --stage1-url flag with an http url.
This will be used in the stage1 loading test to make sure that rkt reuses a stage1 image from the store instead of fetching it from the remote location again.
…truct The list of options will grow, which will make the NewServer function even more awkward (with 5 parameters or so). So this commit puts all the configuration into the ServerSetup struct and provides a function for getting a default setup, which can be modified before passing it to NewServer function.
…ndom one Choosing a fixed port will make the server to listen on port 80 or 443, depending on whether it uses http or https protocol. This also replaces a hack for running a discovery server with a proper solution, which is replacing a default listener with our own.
This implementation is actually so minimal, that it does not even bother with running stage2. We can use it regardless of how the project was configured. This stage1 image could also be used in other tests that do not involve checking things happening inside stage1 or stage2. This will be used in stage1 loading test.
The stage1 loading test will use stub stage1 image for its checks. One of them is testing whether rkt falls back to fetching stage1 image from the same directory the rkt binary is in. To do this, we need to put the stub stage1 image in the same directory as rkt. To avoid a confusion from packagers and users, we do it backwards - we put a symlink to the rkt binary in the directory where stub stage1 image is. In the same directory we also put symlinks to all the flavors of the stage1 image, so the tests should work as they did so far.
It tests loading stage1 from the configuration and from the flags. Docker cases are not tested at all - we need a docker test server first.
krnowak
force-pushed
the
krnowak/stage1-config
branch
from
February 2, 2016 13:28
c048bda
to
deeb43f
Compare
LGTM |
iaguis
added a commit
that referenced
this pull request
Feb 2, 2016
stage1 handling and configuration
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
--stage1-image
flag with--stage1-{url,path,name,hash,from-dir}
--stage1-from-dir
flag--stage1-*
flagscoreos.com/rkt/stage1/run
entrypoint.Fixes #1425, #1600, #471.