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

Add a .devcontainer manifest #144

Open
fwcd opened this issue Nov 3, 2023 · 0 comments
Open

Add a .devcontainer manifest #144

fwcd opened this issue Nov 3, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@fwcd
Copy link
Owner

fwcd commented Nov 3, 2023

This could be useful for quickly spinning up a dev environment, e.g. in a local container or a codespace:

The setup should follow the standard Ubuntu setup:

  • Run Scripts/install-dependencies-apt or install the equivalent dependencies manually
  • Download Swift from https://www.swift.org/download and place it e.g. in /opt/swift
    • Add symlinks to make it accessible from the PATH:

      ln -s /opt/swift/usr/bin/swift /usr/local/bin/swift
      ln -s /opt/swift/usr/bin/sourcekit-lsp /usr/local/bin/sourcekit-lsp

The only stumbling block is that the default image in GitHub Codespaces is currently based on Ubuntu 20.04, which doesn't have libstdc++-12-dev. However it seems like the installed libstdc++-9-dev should be fine too.

Alternatively we could of course try use something based on the swift-Docker image, similar to our production image (though of course without the slimmed down runner image or cross-compilation).

@fwcd fwcd added the good first issue Good for newcomers label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant