Skip to content

Conversation

@PierreJeanjacquot
Copy link
Member

@PierreJeanjacquot PierreJeanjacquot commented Jun 24, 2025

This reusable GitHub Actions workflow automates the process of sconifying a Docker image. It is configurable via inputs for the Sconification options and secrets for docker registries credentials and production enclave signing key.

tests:


jobs:
sconify:
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: sconify-v1.0.0 tag does not exist yet, use feat/sconify instead to test from this branch

Copy link

@SeddikBellamine SeddikBellamine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments and a question

Comment on lines 126 to 142
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
registry.scontain.com/scone-production/iexec-sconify-image:${{ inputs.sconify-version }} \
sconify_iexec \
--from=$FROM_IMAGE \
--to=$DEBUG_IMAGE \
--binary-fs \
--fs-dir=${{ inputs.fs-dir }} \
--host-path=/etc/hosts \
--host-path=/etc/resolv.conf \
--binary=${{ inputs.binary }} \
--heap=${{ inputs.heap }} \
--dlopen=${{ inputs.dlopen }} \
--no-color \
--verbose \
--command="${{ inputs.command }}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we use a script that would be more cleaner for code readability ?

Suggested change
docker run \
--rm \
-v /var/run/docker.sock:/var/run/docker.sock \
registry.scontain.com/scone-production/iexec-sconify-image:${{ inputs.sconify-version }} \
sconify_iexec \
--from=$FROM_IMAGE \
--to=$DEBUG_IMAGE \
--binary-fs \
--fs-dir=${{ inputs.fs-dir }} \
--host-path=/etc/hosts \
--host-path=/etc/resolv.conf \
--binary=${{ inputs.binary }} \
--heap=${{ inputs.heap }} \
--dlopen=${{ inputs.dlopen }} \
--no-color \
--verbose \
--command="${{ inputs.command }}"
./sconify.sh arg1 arg2 arg3

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to pass a lot of input to the command. IMO, moving the command in a script would add extra complexity and no better readability.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the command is now prepared in a previous step (still in this file)

@PierreJeanjacquot PierreJeanjacquot merged commit 2ad461c into main Jul 1, 2025
@PierreJeanjacquot PierreJeanjacquot deleted the feat/sconify branch July 1, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants