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 Dockerfile with hindent for easy use via Docker #572

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Add Dockerfile with hindent for easy use via Docker #572

merged 1 commit into from
Nov 17, 2020

Conversation

evolutics
Copy link
Contributor

@evolutics evolutics commented Nov 8, 2020

There are Docker Hub hooks in the hooks folder to automatically build and push a Docker image with the given hindent version (for example, with a Docker Hub rule that triggers on Git tags).

The Dockerfile can be tested with

scripts/test-docker

The Bash scripts have been linted with ShellCheck as in

docker run --interactive --rm --volume "$(pwd):/mnt" \
  koalaman/shellcheck:v0.7.1 \
  hooks/build hooks/post_push scripts/test-docker

This addresses #571.

A Docker Hub autobuild rule would need to be configured separately. Example of a rule that would trigger on a Git tag push:

docker_hub_build_configuration

This build rule assumes that the package is uploaded to Hackage before the corresponding tag is pushed to GitHub, so that the triggered stack install … in the Dockerfile can access the just uploaded package version.

I can help configuring a Docker Hub repository mihaimaruseac/hindent, but it should probably be owned by the same people as the code base.

There are Docker Hub hooks in the `hooks` folder to automatically build
and push a Docker image with the given hindent version (for example,
with a Docker Hub rule that triggers on Git tags).

The Dockerfile can be tested with

```
scripts/test-docker
```

The Bash scripts have been linted with
[ShellCheck](https://github.com/koalaman/shellcheck) as in

```
docker run --interactive --rm --volume "$(pwd):/mnt" \
  koalaman/shellcheck:v0.7.1 \
  hooks/build hooks/post_push scripts/test-docker
```

This addresses #571. A Docker Hub autobuild rule
would need to be configured separately.
@mihaimaruseac
Copy link
Owner

Thank you, and sorry for the delay in reviewing

@mihaimaruseac mihaimaruseac merged commit 5d2b824 into mihaimaruseac:master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants