https://github.com/softwarefactory-project/shake-factory
Shake functions to build project in Software Factory.
https://github.com/softwarefactory-project/shake-factory
Last synced: 13 days ago
JSON representation
Shake functions to build project in Software Factory.
- Host: GitHub
- URL: https://github.com/softwarefactory-project/shake-factory
- Owner: softwarefactory-project
- License: apache-2.0
- Created: 2020-08-07T20:10:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T17:43:07.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T20:05:00.055Z (almost 2 years ago)
- Language: Haskell
- Size: 219 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shake-factory
[Shake][shake] functions to build project in Software Factory.
To build a project using `ShakeFactory` run this command:
```
podman run -it --rm -v $(pwd):/data:Z quay.io/software-factory/shake-factory
```
## Install from source
You need to install the `ShakeFactory` library before using it.
You will need the latest cabal-install (version 3), for example on fedora:
```
sudo dnf copr enable -y petersen/cabal-install && sudo dnf install -y cabal-install ghc
cabal install --lib lib:shake-factory dhall shake shake-dhall text bytestring containers casing
```
This install the library in `~/.cabal` and it creates an environment in `~/.ghc`.
Re-installation may fail because of a [cabal issue](https://github.com/haskell/cabal/issues/6394), fix that by removing the `~/.ghc` directory first.
Once installed you can verify it is working:
```
$ ghci
Prelude> import ShakeFactory
Prelude ShakeFactory> :browse ShakeFactory
...
```
## Build the image
Once the library is installed, you can build the container image:
```
# Build
shake container
# Publish
shake quay.io/software-factory/shake-factory
```
[shake]: https://shakebuild.com/