-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix build and push scripts to allow Podman alias #234
Fix build and push scripts to allow Podman alias #234
Conversation
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[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.
Good find, this will help with a lot in fixing the remaining under registry-support!
I think with this, we should be able to remove this statement under build_registry.sh
so that it uses the one under setenv.sh
:
registry-support/build_registry.sh
Line 21 in 4f92146
shopt -s expand_aliases |
I agree. I think I am going to include devfile/api#1426 as part of this PR because it is an identical fix, I will also clean up |
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.
/lgtm
Tested docker-build.sh
and docker-push.sh
with USE_PODMAN=true
set and works locally for me.
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
FYI I updated the PR comment to reflect new changes with the additional changes to fix devfile/api#1426 as well. @thepetk @michael-valdron |
Signed-off-by: Jordan Dubrick <[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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jdubrick, michael-valdron, thepetk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Please specify the area for this PR
Build scripts and documentation
What does does this PR do / why we need it:
This PR fixes an issue where running
docker-build.sh
anddocker-push.sh
fromtest/integration
was not properly setting the Podman alias. This was due tosetenv.sh
not being able to expand its set alias back into the calling scripts environment. This was fixed with the addition ofshopt -s expand_aliases
tosetenv.sh
.Additionally, when you run
docker-push.sh
it is looking for a command-line argument for the tag and that was not documented anywhere so I added a snippet for that toREADME.md
.This PR also removes
shopt -s expand_aliases
frombuild_registry.sh
as it is no longer required. This is due to the alias expansion happening in thesetenv.sh
script.The index/server
build.sh
andpush.sh
scripts were also updated to properly use Podman whenUSE_PODMAN
is set totrue
.Which issue(s) this PR fixes:
fixes devfile/api#1502
fixes devfile/api#1426
PR acceptance criteria:
Documentation (WIP)
How to test changes / Special notes to the reviewer:
export USE_PODMAN=true
tests/integration
./docker-build.sh
and/or./docker-push.sh <tag>
index/server
./build.sh
and/or./push.sh <tag>
bash build_registry.sh