sqlfluff / sqlfluff-online

An online SQL formatter, via SQLFluff.
https://online.sqlfluff.com/
34 stars 14 forks source link

Add dockerfile #390

Closed fey closed 2 months ago

fey commented 2 months ago

Add Dockerfile and image with GitHub Packages.

You can deploy your own sqlfluff online with command for example (official image name will be sqlfluff/sqlfluff-online):

 $ docker run --rm -e FLASK_ENV=development -e PORT=8081 -p 8081:8081 ghcr.io/hexlet-components/sqlfluff-online:latest  
# Go open http://localhost:8081
nolanbconaway commented 2 months ago

well that's neat! thanks for the contribution

fey commented 2 months ago

@nolanbconaway hello, thank you for merge!

Can you create public package for image? So anyone will able to pull repo run run sqlfluff on local. Currenly image is private

Unable to find image 'ghcr.io/sqlfluff/sqlfluff-online:latest' locally
docker: Error response from daemon: Head "https://ghcr.io/v2/sqlfluff/sqlfluff-online/manifests/latest": unauthorized.
See 'docker run --help'.

I can later update readme and add instruction how to run sqlfluff in docker container https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-docker-registry https://docs.github.com/en/packages/learn-github-packages/introduction-to-github-packages

nolanbconaway commented 2 months ago

That makes sense! I'll be off the grid for a few weeks, so can you create an issue for this work?

fey commented 2 months ago

Yes, sure