-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore!: clean up tx sim docker usage #3902
Changes from all commits
eb82ca8
a02d91d
71b686e
c0ab4bc
cdfde3a
29ade51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
packages: write | ||
uses: celestiaorg/.github/.github/workflows/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
dockerfile: docker/Dockerfile | ||
checkout_ref: ${{ github.event.inputs.ref }} | ||
secrets: inherit | ||
|
||
|
@@ -33,7 +33,7 @@ jobs: | |
packages: write | ||
uses: celestiaorg/.github/.github/workflows/[email protected] | ||
with: | ||
dockerfile: docker/Dockerfile_txsim | ||
dockerfile: docker/txsim/Dockerfile | ||
packageName: txsim | ||
checkout_ref: ${{ github.event.inputs.ref }} | ||
secrets: inherit |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ jobs: | |
# hadolint lints the Dockerfile | ||
hadolint: | ||
uses: celestiaorg/.github/.github/workflows/[email protected] | ||
with: | ||
dockerfile: "docker/Dockerfile" | ||
|
||
yamllint: | ||
runs-on: ubuntu-latest | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,7 @@ | ||||||||||||||
#!/bin/bash | ||||||||||||||
|
||||||||||||||
echo "Starting txsim with command:" | ||||||||||||||
echo "/bin/txsim $@" | ||||||||||||||
echo "" | ||||||||||||||
|
||||||||||||||
Comment on lines
+3
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix argument handling in echo statement. The current usage of Apply this diff to fix the argument handling: -echo "/bin/txsim $@"
+echo "/bin/txsim $*" This change ensures that all arguments are properly represented as a single string when echoed. 📝 Committable suggestion
Suggested change
🧰 ToolsShellcheck
|
||||||||||||||
exec /bin/txsim $@ | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quote arguments in exec command. The current usage of Apply this diff to fix the argument handling: -exec /bin/txsim $@
+exec /bin/txsim "$@" This change ensures that all arguments are properly passed to the 📝 Committable suggestion
Suggested change
🧰 ToolsShellcheck
|
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.
💡 Codebase verification
Additional Dockerfile Detected for Linting
The workflow currently lints
docker/Dockerfile
. However, an additional Dockerfiledocker/txsim/Dockerfile
was found. To ensure comprehensive linting, please update the workflow to include this Dockerfile.hadolint
job to includedocker/txsim/Dockerfile
.with
clauses if supported by the workflow configuration.🔗 Analysis chain
LGTM! Consider linting additional Dockerfiles.
The change correctly updates the Dockerfile path for the
hadolint
job, aligning with the PR objective of relocating Dockerfiles to a dedicateddocker
directory. This ensures that the linting process targets the correct Dockerfile after the relocation.To ensure comprehensive linting coverage, please verify if there are other Dockerfiles (such as the one for txsim) that also need linting. If so, consider adding them to this workflow or creating separate linting jobs for them.
Run the following script to check for additional Dockerfiles:
If additional Dockerfiles are found, consider updating the workflow to lint them as well.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 57