2023-05-17 21:11:56 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Build cerc/lotus
|
|
|
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
|
2023-08-10 08:27:07 +00:00
|
|
|
# Use a release version tag to match the modified Dockerfile replaced in next step
|
|
|
|
git -C ${CERC_REPO_BASE_DIR}/lotus checkout v1.23.3
|
2023-05-17 21:11:56 +00:00
|
|
|
|
|
|
|
# Replace repo's Dockerfile with modified one
|
|
|
|
cp ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/lotus/Dockerfile
|
|
|
|
|
|
|
|
docker build -t cerc/lotus:local ${build_command_args} ${CERC_REPO_BASE_DIR}/lotus
|