-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5246: Add workflow to build multi-platform ranger images and push to DockerHub and GitHub Container Registry #613
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
base: master
Are you sure you want to change the base?
Conversation
@adoroszlai, Could you please review as well, thanks. |
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.
Thanks @kumaab for the patch.
response=$(curl https://oauth.apache.org/token\?code\=${{ github.event.inputs.token }}) | ||
echo "$response" | jq -e . >/dev/null 2>&1 |
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.
curl
will output download progress to std.out,jq
will fail to parse it. Use-LSs
- Token shown in log in plain text.
cp ranger-*-admin.tar.gz dev-support/ranger-docker/dist | ||
cp version dev-support/ranger-docker/dist |
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.
Why not mv
, is the original file used later?
runs-on: ubuntu-latest | ||
env: | ||
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} | ||
IMAGE_ID: ${{ needs.build.outputs.image-id }} |
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.
build
job should define this output to allow tag
to use it, something like:
Also, image-id
will contain only ranger
image, the other 3 images will not be tagged by this job.
BTW, in the long run, we should avoid building these 3 additional images.
zookeeper
image can be used directly.postgres
andsolr
images can also be used, with Ranger-specific files (and password for Postgres) provided by users at runtime (in Docker Compose service definition).
In addition to simplifying the workflow, this would also avoid the problem of hard-coded password in the DB image (which makes it unusable for "production").
…ush to ghcr.io and DockerHub
What changes were proposed in this pull request?
A new workflow to build ranger images:
ranger, ranger-db, ranger-solr and ranger-zk
with multi-arch support and publish them to GitHub Container Registry and optionally to DockerHub.manually
by providingbranch name
andOAuth token
OAuth Token
is generated after successful authentication against ASF OAuth, more details here: https://idm.apache.org/api.htmlHow was this patch tested?
CI Run with successful build stage: https://github.com/kumaab/ranger/actions/runs/16375834642