-
Notifications
You must be signed in to change notification settings - Fork 0
feat(sconify): add sconify workflow #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sconify/README.md
Outdated
|
|
||
| jobs: | ||
| sconify: | ||
| uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected] |
There was a problem hiding this comment.
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
SeddikBellamine
left a comment
There was a problem hiding this 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
.github/workflows/sconify.yml
Outdated
| 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 }}" |
There was a problem hiding this comment.
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 ?
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
b7d3f85 to
f916901
Compare
f23cb64 to
d0bdc82
Compare
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: