feat(docker): added ChunkedResponseReader implementation

This commit is contained in:
Jef Roosens 2022-05-14 21:55:19 +02:00
parent da46b8b4ae
commit 92cbea69d6
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 161 additions and 20 deletions

View file

@ -17,7 +17,7 @@ const build_image_repo = 'vieter-build'
// makepkg with. The base image should be some Linux distribution that uses
// Pacman as its package manager.
pub fn create_build_image(base_image string) ?string {
mut dd := docker.new_conn() ?
mut dd := docker.new_conn()?
commands := [
// Update repos & install required packages
@ -51,12 +51,12 @@ pub fn create_build_image(base_image string) ?string {
docker.pull_image(image_name, image_tag)?
id := dd.create_container(c)?.id
/* id := docker.create_container(c)? */
// id := docker.create_container(c)?
dd.start_container(id)?
// This loop waits until the container has stopped, so we can remove it after
for {
println('wot')
println('wot')
data := dd.inspect_container(id)?
if !data.state.running {