AmpersandTarski / Ampersand

Build database applications faster than anyone else, and keep your data pollution free as a bonus.
http://ampersandtarski.github.io/
GNU General Public License v3.0
40 stars 8 forks source link

Feature/ampersand specific image #1431

Closed hanjoosten closed 11 months ago

hanjoosten commented 11 months ago

The devcontainer is working now. (At least on my linux machine).

The .devcontainer contains a docker file named DockerfileUpstream which can be used to build the image ampersandtarski/ampersand-devcontainer:latest. This has been pushed to dockerhub.

How to use this image

When you open the Ampersand repo in vscode, you have the option to re-open it in container:

image

This will build the container from the image. It contains ghcup and the appropriate versions of ghc, cabal, stack and hls installed. It also contains various plugins, among which the Haskell plugin.

When your environment is loaded, you can trigger the Haskell plugin by opening a .hs file. The first time you do so, it will fast-build the ampersand code. You can observe that in the status bar. It will show a message like processing 1 of 2 or something like that. The first time you use the container, that might take 2 to 3 minutes.

After this is done, the goodies of the Haskell plugin will be available.

Happy coding!