B-Lang-org / bsc

Bluespec Compiler (BSC)
Other
927 stars 143 forks source link

Create Docker #150

Open bpfoley opened 4 years ago

bpfoley commented 4 years ago

Capturing this as a separate issue suggested by @thotypous in #147

It would be superb if you could set up automated builds on Docker Hub using the Dockerfile.

An official image on Docker Hub would be very useful for setting up automated CI builds on Bluespec designs. It would also help to attract more newcomers (as an alternative or complement to ordinary binary releases).

bpfoley commented 4 years ago

For now, I've set up a not-quite-official container at https://hub.docker.com/r/bpfoley11/bsc-ubuntu1804 while we figure out the process.

thotypous commented 4 years ago

GitHub now has its own docker registry, so now it should be pretty simple: https://github.com/features/packages

thotypous commented 3 years ago

It seems like you have been trying to use Cirrus CI zero-configuration docker builds. However, it does not fetch the git submodules, therefore the build fails. There seems to be some ways to workaround it, but it is not clear how to use the workaround with docker builds.

Maybe it would be easier to use GitHub actions to build the container instead of Cirrus CI.

quark17 commented 3 years ago

I enabled the Cirrus CI app for this repo so that it could be used to test FreeBSD builds (see PR 260). When I did that, docker builds started, but that was not my intention. I have not had the time yet to learn how the Cirrus CI works, either to find out why it is doing docker builds or how to start FreeBSD builds (but I was leaving that to be done in the PR).