X Tutup
Skip to content

Added ReadonlyRootfs option.#245

Merged
marcuslinke merged 1 commit intodocker-java:masterfrom
scadgek:master
Jun 16, 2015
Merged

Added ReadonlyRootfs option.#245
marcuslinke merged 1 commit intodocker-java:masterfrom
scadgek:master

Conversation

@scadgek
Copy link
Copy Markdown
Contributor

@scadgek scadgek commented Jun 15, 2015

No description provided.

@scadgek scadgek changed the title Added ReadonlyFs option. Added ReadonlyRootfs option. Jun 15, 2015
@marcuslinke marcuslinke merged commit d6aef1b into docker-java:master Jun 16, 2015
@marcuslinke
Copy link
Copy Markdown
Contributor

@scadgek Thanks for contributing!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

boolean of Boolean?

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.

What do you mean?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can't this cause problems when property wouldn't exist? Boolean will default to null, while boolean may report false negative 'false'.

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.

Good point. I think we should change all json mapped boolean fields into Boolean in a separate refactoring.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I just interesting because i see inconsistency everywhere. Maybe document somewhere DESIGN.md ?

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.

What inconsistencies did you find. Some examples?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

boolean vs Boolean in other places, but i may mistake.

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.

Well, in this case a default boolean = false will be ok as long as ReadonlyRootfs option is false by default. I think it'll we better to add default values in such classes corresponding to docker defaults, than creating objects and handling nulls in several places.

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.

Best will be to use object types instead of primitives. See #246

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.

3 participants

X Tutup