Code Monkey home page Code Monkey logo

docker_buildx's Introduction

Hello World ๐Ÿ‘‹

My name is Matteo, and I am a Senior Full Stack Developer from Italy ๐Ÿ‡ฎ๐Ÿ‡น

In my profile, you can find:

  • ๐Ÿ”™ back-end projects made with Node, Go and a little bit of Python;
  • ๐Ÿ•ธ๏ธ front-end projects made with React and vanilla JavaScript;
  • ๐Ÿ“ฑ mobile libraries made with Flutter;
  • ๐Ÿ‘จโ€๐Ÿ’ป multi-architecture Docker images.

Everything here is made with โค๏ธ

Do you like my work?

patreon or buy-me-a-coffee

Connect with me

linked-in medium telegram facebook instagram

My stats

Since October 24 2021, I've coded for Total time coded since Oct 24 2021

My GitHub stats Languages

Latest Medium posts

docker_buildx's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ilteoood avatar jlesage avatar nousefreak avatar zmingxie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker_buildx's Issues

Error failed to solve: rpc error: code = Unknown desc = server message: insufficient_scope: authorization failed

So when trying to use this action to buld a docker image the build fails with the follwing error message:


#31 pushing layers
#31 pushing layers 0.3s done
#31 ERROR: server message: insufficient_scope: authorization failed
------
 > exporting to image:
------
failed to solve: rpc error: code = Unknown desc = server message: insufficient_scope: authorization failed
##[error]Command failed: docker_buildx/scripts/docker_build.sh linux/amd64,linux/arm64,linux/arm/v7 recipes test Dockerfile true none

The full log can be found here, the action file in question is this one.

I have searched for the error message and have found various issues 1 2 but have not been able to fix this.

Any ideas on what could be causing this issue ? Thanks very much in advance!

Add --target support

It would be nice if this supported the build(x) option --target. I currently use a multi-stage Dockerfile to build each tag from a single file (the first stage installs all the deps/etc, so it makes sense to use one Dockerfile). Then I build like so:

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t iggy/image1:latest --target stage1 --pull --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t iggy/image2:latest --target stage2 --pull --push .

Error: Command failed: docker_buildx/scripts/dockerhub_login.sh

This is a great little utility, but I'm having trouble getting it to work. You can see the repo and build results, or read on. Here's the config I used:

      - uses: ilteoood/[email protected]
        with:
          tag: ${{ matrix.tags }}
          imageName: cjyar/openldap
          buildArg: ALPINE_VERSION=${{ matrix.alpine }},OPENLDAP_VERSION=${{ matrix.openldap }}
          publish: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch' }}
          dockerHubUser: cjyar
          dockerHubPassword: ${{ secrets.DOCKER_PASSWORD }}

It said: Error: Command failed: docker_buildx/scripts/dockerhub_login.sh cjyar ***

Dockerfile true none false

my yml file Build Image.yml
when i use it ,it is not work.this logs:

actions_builder
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 1.5s done
#1 creating container buildx_buildkit_actions_builder0
#1 creating container buildx_buildkit_actions_builder0 1.7s done
#1 DONE 3.2s
Supported platforms:  linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
"docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build
##[error]Command failed: docker_buildx/scripts/docker_build.sh linux/arm64,linux/amd64 ***/qiandao latest Dockerfile true none false 

how can i solve it?

Getting warning with new "load" option

I thought you should know... I am getting a warning on execution but is working:

Check warning on line 1 in .github

@github-actions
github-actions
/ docker-buildx-x86-and-test

.github#L1
Unexpected input 'load', valid inputs are ['tag', 'imageName', 'dockerFile', 'buildArg', 'publish', 'platform', 'dockerHubUser', 'dockerHubPassword']

Feature Request - Buildx build "--load switch" support

Would it be possible to add buildx build "--load switch" support to the GitHub Action?

Principal use-case would be to build a "x86" version first and run it through CI tests and then if successful to build it for other platforms using the previous cache.

Would this be possible and easy to do?

Could you add build context or workdir to allow building images from subdirs

At the moment it runs in the root directory and if the dockerfile references files with relative path the build fails.

This can be solved like

docker buildx build --platform $1 $PUSH $LOAD $TAGS $BUILD_ARGS $TARGET -f $4 .

change into

docker buildx build --platform $1 $PUSH $LOAD $TAGS $BUILD_ARGS $TARGET $4

and probably rename arg $4 from docker file into buildContext

How do you make the build manually?

This is a stupid question!

The recent rclone release 1.54.1 didn't run the publish action for some reason as yet unknown, so rclone's docker image didn't get built.

I'd like to run it manually, but I can't figure out how - is there some way I can use the code from this action to do it?

I know how to make a normal docker build and upload it but I can't figure out how to use the extra magic here to create more architectures manually.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.