diff --git a/docker-compose-ci.yml b/docker-compose-ci.yml index 0e34b06..8cb870b 100644 --- a/docker-compose-ci.yml +++ b/docker-compose-ci.yml @@ -48,12 +48,16 @@ services: restart: on-failure entrypoint: | /bin/bash -l -c " - touch proof_out_hex.txt; - chmod +x proof_out_hex.txt; - echo "$PROOF_OUT_HEX" > proof_out_hex.txt; - xxd -r -p proof_out_hex.txt > proof_from_hex.out; - chmod +x proof_from_hex.out; - mv ./proof_from_hex.out /root/.ipfs/proof_from_hex.out; + # Write proof hex to file, preserving newlines and special characters + echo -e \"$PROOF_OUT_HEX\" > proof_out_hex.txt; + + # Convert hex to binary, handling multi-line input + cat proof_out_hex.txt | xxd -r -p > proof_from_hex.out; + + # Ensure proper permissions and move to destination + chmod 644 proof_from_hex.out; + mv proof_from_hex.out /root/.ipfs/proof_from_hex.out; + ./ipfs-server -port 3001 -w3-agent-key $W3_AGENT_KEY -w3-delegation-file $W3_DELEGATION_FILE;" expose: - "4001:4001"