Skip to content

Conversation

@iQQBot
Copy link
Contributor

@iQQBot iQQBot commented Jan 11, 2023

Description

this PR is an experimental inner loop with an isolation network and process tree and special root filesystem, this PR focus on custom docker image

Related Issue(s)

Fixes #

How to test

  1. start a workspace in this preview environment
  2. create a Dockerfile in this workspace
  3. use following command to export docker filesystem to /.debug/rootfs folder
sudo rm -rf /.debug/rootfs \
  && sudo mkdir -p /.debug/rootfs \
  && sudo chown -R gitpod:gitpod /.debug/rootfs \
  && DOCKER_BUILDKIT=1 docker build -t inner-loop . \
  && docker rm -f inner-loop-0 &>/dev/null \
  && docker run --name inner-loop-0 inner-loop \
  && echo "exporting filesystem, may take sometimes..." \
  && docker export inner-loop-0 | sudo tar xf - -C /.debug/rootfs
  1. use /.supervisor/supervisor inner-loop to build a new process tree with new root filesystem
  2. once you saw Web UI available at http://localhost:23000 it means IDE is ready, you add prefix debug- in your workspace URL, to access debug wokspace.
  3. exec curl lams.sh | sh in debug workspace, you will see a notification, click open in browser, you can view this port in debug workspace. (url prefix {port}-debug-{workspaceId} )
  4. you can press Control + C to stop debug workspace.

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-pd-pd-wskit-2.7 because the annotations in the pull request description changed
(with .werft/ from main)

@akosyakov akosyakov force-pushed the pd/pd-wskit-2 branch 2 times, most recently from 467914f to be4dbfc Compare January 13, 2023 22:54
@akosyakov
Copy link
Member

akosyakov commented Jan 14, 2023

/werft run

👍 started the job as gitpod-build-pd-pd-wskit-2.30
(with .werft/ from main)

@akosyakov
Copy link
Member

akosyakov commented Jan 14, 2023

/werft run recreate-vm=true

👍 started the job as gitpod-build-pd-pd-wskit-2.31
(with .werft/ from main)

@akosyakov
Copy link
Member

akosyakov commented Jan 14, 2023

/werft run with-clean-slate-deployment=true

👍 started the job as gitpod-build-pd-pd-wskit-2.32
(with .werft/ from main)

akosyakov added a commit that referenced this pull request Jan 19, 2023
It is a prerequisite to #15795. Based on Pudong's work from #15687.

Co-authored-by: Pudong Zheng <tianshi8650@gmail.com>
@akosyakov
Copy link
Member

akosyakov commented Jan 19, 2023

I'm going to close it, since we decided to go with docker run approach. I've extracted proxy bits in #15910 and #15795. I will add @iQQBot as a co-author 🙏 Thank you a lot!

@akosyakov akosyakov closed this Jan 19, 2023
roboquat pushed a commit that referenced this pull request Jan 20, 2023
It is a prerequisite to #15795. Based on Pudong's work from #15687.

Co-authored-by: Pudong Zheng <tianshi8650@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants