Skip to content

Docker support - #91

Merged
TTimo merged 40 commits into
masterfrom
wip-docker
Nov 28, 2018
Merged

Docker support#91
TTimo merged 40 commits into
masterfrom
wip-docker

Conversation

@Nephyrin

@Nephyrin Nephyrin commented Aug 7, 2018

Copy link
Copy Markdown
Member

These patches add support for making a docker-based runtime SDK, in addition to the schroot path. This is a more portable path for non-ubuntu hosts, and a more future-proof container solution.

Working on a pass on the readme to explain the options, and clarify the difference between building a 'runtime' and 'SDK' / chroot / etc.

@TTimo and @Plagman will likely be conscripted to CR once that is done

@Nephyrin Nephyrin self-assigned this Aug 7, 2018
Add --extra-bootstrap to setup_docker.sh

Ensure dockerfile runs extra bootstrap after normal bootstrap step to
avoid negating caching (re-running the build with different extra
bootstrap arguments should be fully cached up to the last step)
@ghost

ghost commented Aug 27, 2018

Copy link
Copy Markdown

@Nephyrin Any way I can help get this going? I already started looking at docker support for https://github.com/ValveSoftware/Proton since I hate the current build environment work cycle.

#
# ... Followed by the necessary gpg and sha256sum commands to ensure the image checksum & signature
# matches ./ubuntu-cloud-key.txt (see verify() below)
#

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this need to be reworked to match the new imported file ubuntu-archive-keyring.gpg instead? CC @smcv

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If that keyring has the cloud signing key in it, we can skip the lines to make a keyring for gpgv and just reference it. Though if we're adding the cloud signing key to the same bundle, we may be teaching apt more keys than it should expect to see on package signatures.

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.

No, the cloud image signing key and the archive signing key are probably different - at least, Debian uses different keys to sign CD images and the apt archive, I'd expect Ubuntu to do similar.

We want to assert that apt archives (Release.gpg, really) are signed with the (old) archive signing key, and that cloud images are signed with the cloud image signing key.

=uSQO
-----END PGP PUBLIC KEY BLOCK-----
heredoc
) | apt-key add -

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 public key is this? I think it would probably be clearer to bundle a copy of ubuntu-archive-keyring.gpg or valve-archive-keyring.gpg or whatever is appropriate, in binary OpenPGP format ("GPG key public ring" as produced by gpg --export, similar to what's in /usr/share/keyrings), and drop it in /etc/apt/trusted.gpg.d/.

apt-key add is vaguely deprecated: the new way to do it is to put a binary OpenPGP keyring in /etc/apt/trusted.gpg.d/.

@Jimbly

Jimbly commented Oct 24, 2018

Copy link
Copy Markdown

Official Docker support would be great! For those wanting to use Docker in the meantime, I've posted about this on the Steamworks forums before, I've been pushing the steamrt environment to Docker over at Jimbly/steam-runtime-docker. Just updated today with the latest steamrt. I actively use these images for doing my Linux builds (on a Windows host) of my Steam game. When you have a docker image pushed to docker.io, I'd love to give it a trial run and see if it works for my builds =).

dreamer and others added 4 commits October 25, 2018 06:23
Reorder lines ARG and FROM to prevent Docker from failing with error:
"Please provide a source image with `from` prior to commit"

Fix installation of packages: resolvconf, time

Add generated images to .gitignore file.
Fix steam-runtime dockerfile for Docker 1.13
@smcv

smcv commented Nov 6, 2018

Copy link
Copy Markdown
Contributor

It might be a good idea to rebase this on master - its history is getting rather tangled.

@TTimo

TTimo commented Nov 6, 2018

Copy link
Copy Markdown
Collaborator

It might be a good idea to rebase this on master - its history is getting rather tangled.

I'd rather not actually, there are external developers using this and I don't want to force a branch rewrite on them.

@TTimo
TTimo merged commit c2dbe22 into master Nov 28, 2018
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.

5 participants