Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 2022.01 release #7658

Closed
12 tasks done
mrsimonemms opened this issue Jan 18, 2022 · 2 comments · Fixed by #7873
Closed
12 tasks done

Create 2022.01 release #7658

mrsimonemms opened this issue Jan 18, 2022 · 2 comments · Fixed by #7873
Labels
component: install Terraform installation scripts, helm charts, installer images team: delivery Issue belongs to the self-hosted team type: epic

Comments

@mrsimonemms
Copy link
Contributor

mrsimonemms commented Jan 18, 2022

Summary

In order to improve the acceptance of Gitpod self-hosted by the community and enterprise users, a formalised and regular release cycle of the Gitpod Installer is critical. This will be the first release of the Installer binaries and will be the template for how the process will run in future.

Context

Currently, the process is to instruct the community to find a specific (and arbitrary) build in Werft and use the build ID from there.

Acceptance Criteria

A release of the Installer is made with binaries for all the supported architectures

In Scope

  • Builds of the Go binary for the following os/architectures (see go tool dist list):
    • linux/amd64
    • linux/386
    • linux/arm
    • linux/arm64
    • darwin/amd64
    • darwin/arm64
    • windows/386
    • windows/amd64
  • Creation of a 2022.01 release in GitHub releases
  • Creation of a 2022.01 tag
  • Update the Gitpod guides to use the 2022.01 release
  • Tested and working with in-cluster and external dependencies in:
    • AWS
    • Azure
    • GCP

Out of Scope

  • Automation of pipeline. This is about working out the desired process. Automation will come for February's 2022.02 release
  • Use of Replicated
  • Non-Linux machines:
    • darwin/amd64
    • darwin/arm64
    • windows/386
    • windows/amd64

Tasks

@mrsimonemms mrsimonemms added team: delivery Issue belongs to the self-hosted team type: epic labels Jan 18, 2022
@corneliusludmann corneliusludmann added the component: install Terraform installation scripts, helm charts, installer images label Jan 25, 2022
@mrsimonemms mrsimonemms added this to the release/2022.01 milestone Jan 25, 2022
@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Jan 26, 2022

So, one of the plans we had was to build the Installer binary for both Mac and Windows. Seemingly, because runc is only supported on Linux, when I run GOOS=darwin GOARCH=amd64 go build, we get a lot of runc and containerd compilation errors. I get the same when I run natively on a Mac.

An excerpt

# github.com/opencontainers/runc/libcontainer/cgroups
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:79:14: undefined: unix.Openat2
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:79:45: undefined: unix.OpenHow
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:100:18: undefined: unix.RESOLVE_BENEATH
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:100:41: undefined: unix.RESOLVE_NO_MAGICLINKS
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:101:17: undefined: unix.CGROUP2_SUPER_MAGIC
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:103:20: undefined: unix.RESOLVE_NO_XDEV
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:103:43: undefined: unix.RESOLVE_NO_SYMLINKS
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/v1_utils.go:155:9: undefined: Mount
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/v1_utils.go:163:87: undefined: Mount
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/v1_utils.go:191:37: undefined: Mount
../../go/pkg/mod/github.com/opencontainers/[email protected]/libcontainer/cgroups/file.go:103:43: too many errors

What should our resolution be for this 2022.01 release? As I see it, the most straightforward option is to only support Linux for this release and offer the Docker script for Mac/Windows users.

Any other suggestions? @corneliusludmann @csweichel

@metcalfc
Copy link
Contributor

I think there are some syntax sugar bits we can add to make the container route more friendly. For example, #6763 would allow folks to pipe the config in vs need to do mount directories across. So something like:

alias gitpod-installer="docker run -i ...."
gitpod-installer init > "${CONFIG_FILE}"
vim "${CONFIG_FILE}"
cat "${CONFIG_FILE}" | gitpod-installer render -c - |  kubectl apply -f -

The entrypoint is mostly responsible for this magic.

cat /etc/hosts | docker run -i ubuntu cat

I'm sure there are better examples but the redis entrypoint is fairly simple: https://github.com/docker-library/redis/blob/a04a6df0a45894e1a630db4e84e0c12c7bcf326a/6.2/docker-entrypoint.sh

Repository owner moved this from 🧊Backlog to ✨Done in 🚚 Security, Infrastructure, and Delivery Team (SID) Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: install Terraform installation scripts, helm charts, installer images team: delivery Issue belongs to the self-hosted team type: epic
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants