• Daniel Grove's avatar
    Tooling, CI, Makefile: Dockerfiles and Make · 324e955c
    Daniel Grove authored
    The previous configuration of building with Docker used a lot of
    'magic' and required a fair bit of traversal between the shell scripts
    to understand what was happening and where. Most of it could be solved
    by using Docker Multi-staged Builds but to not constantly break the
    cache when just dealing with final artifacts I've split out the builder
    Dockerfile from the main Dockerfile. I've also broken out the commands
    run into individual make commands while trying to keep the original
    shell script API mostly intact.
    
    Running `./scripts/create_docker_image.sh` will work as it originally
    did just with the modifications necessary to align the script to also
    use the same underlying commands that are in make. I would have removed
    the script completely and adjusted the build pipelines, but the Makefile
    has an initial requirement of having `opam` installed which might not be
    the case for all users or the base build system.
    
    Othewise you can now just `make docker-image` but this will use the make
    bindings. It might be a good idea in the future to make your own Docker
    "building" image that can just use make within GitLabs CI system, but I
    think that was out of scope of this change.
    324e955c
Name
Last commit
Last update
..
ci Loading commit data...
create_genesis Loading commit data...
docker Loading commit data...
activate_protocol.sh Loading commit data...
alphanet.sh Loading commit data...
alphanet_version Loading commit data...
b58_prefix.py Loading commit data...
betanet.sh Loading commit data...
check_opam_test.sh Loading commit data...
create_docker_image.sh Loading commit data...
gen_genesis.ml Loading commit data...
install_build_deps.raw.sh Loading commit data...
install_build_deps.sh Loading commit data...
localnet.sh Loading commit data...
mainnet.sh Loading commit data...
nginx.conf Loading commit data...
ocamldot.py Loading commit data...
opam-check.sh Loading commit data...
opam-pin.sh Loading commit data...
opam-remove.sh Loading commit data...
opam-test-all.sh Loading commit data...
opam-unpin.sh Loading commit data...
opam-upgrade.sh Loading commit data...
sandbox.json Loading commit data...
snapshot_alpha.sh Loading commit data...
update_hashes.sh Loading commit data...
update_integration_test.sh Loading commit data...
update_opam_repo.sh Loading commit data...
update_opam_test.sh Loading commit data...
update_unit_test.sh Loading commit data...
version.sh Loading commit data...
yes-node.patch Loading commit data...
yes-wallet.ml Loading commit data...
zeronet.sh Loading commit data...