GithubHelp home page GithubHelp logo

nx-tools's Introduction

nx-tools's People

Contributors

ashley-hunter avatar daschtour avatar davideasaf avatar dependabot[bot] avatar diosif-cr avatar femshima avatar gperdomor avatar hardy925 avatar jacse avatar jmccance avatar kdawgwilk avatar lehoczky avatar leonardochaia avatar nickdub avatar ontoneio avatar renovate-bot avatar renovate[bot] avatar satya-nutella avatar snyk-bot avatar tholinka avatar tschechniker avatar veimox avatar vicb 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

nx-tools's Issues

Chore: Update approved-plugins.json

Note: This is probably already planned however I am making an issue for it so that it is not forgotten.

As we are making some changes to release to the @nx-tools organization now we need to update the approved-plugins.json in the nwrl/nx repo to reflect these changes.

Additionally @nx-tools/nx-prisma could be purposed here if we feel it is hitting it's MVP requirements.
Additionally a release for @gperdomor/nx-docker should be done to deprecate it and notify existing users of the change in package name.

Major release is missing release notes

Hi @gperdomor !

I saw that there is a new major release but couldn't find any release notes about what changed, if there are breaking changes etc.

Is there any information about that?

Cheers ✌️

prisma client in docker container

Hi there,

when using the @nx-tool/snx-docker plugin, the build process creates the package.json and picks up node_modules in the build process. I'm using multiple prisma clients which are generated into the root level node_modules - this won't get bundled in the container. Do you have a recommendation on how to do that, without explicitly telling the Dockerfile to copy that data into the container?

(nx-docker) Update peer dependency to dotenv

Hi,

the peer dependency to dotenv is currently restricted to ^10.0.0. However, the package went through six major releases since January (the reasons are addressed in this issue: motdotla/dotenv#616).

Would you consider relaxing the version restriction to something more lenient or, depending on the level of integration, even completely remove the upper bound?

Upgrade @nrwl/devkit to 14

Hey guys, is there any planning to fix it?
Thank you for this project! πŸ‘

error "@nx-tools/nx-docker#@nx-tools/core#@nrwl/devkit@^12.0.0 || ^13.0.0" doesn't satisfy found match of "@nrwl/[email protected]"
error "@nx-tools/nx-docker#@nx-tools/docker-metadata#@nrwl/devkit@^12.0.0 || ^13.0.0" doesn't satisfy found match of "@nrwl/[email protected]"

Feature Request(nx-docker): Default Docker Files

As it stands a docker file is needed for each project that a user wishes to Dockerize.
I believe that nx-docker is in a position to provide a default Dockerfile that installs from either the root package.json or a provided one and runs the production build commands.

Of course a custom Dockerfile should be allowed however for common applications like NestJS, Angular, Node, React, etc. it may not be necessary to require a user of this library to provide one.
Perhaps we can look at the builder for the build command and determine what preset to use as nwrl uses different builders for each of these projects.

This feature would also make it much easier for those who use Nwrl Nx to get into dockerizing applications without any prior knowledge of Docker.

@nx-tools/docker-metadata Peer Dependencies

First of all thanks for this awesome nx plugin.
Could you please fix the peer dependencies for docker-metadata? nx-docker seams to be fixed already.

npm ERR! Found: @nrwl/[email protected]
npm ERR! node_modules/@nrwl/devkit
npm ERR!   dev @nrwl/devkit@"14.2.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @nrwl/devkit@"^12.0.0 || ^13.0.0" from @nx-tools/[email protected]
npm ERR! node_modules/@nx-tools/docker-metadata
npm ERR!   dev @nx-tools/docker-metadata@"^2.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Feature Request: Additional Builders/Schematics - Prisma

Prisma 2 is an exciting new technology that has several CLI commands that would be nice to move to an NX Builder to bring it more in line with the Nx Monorepo philosophy.

The builder commands that would be useful are:

  • prisma generate
  • prisma migrate save
  • prisma migrate up
  • prisma migrate down

There are several options for these commands including the location of the schema file, the path toe the env file, create a new database if one doesn't exist, etc.

Additional options like the name of a migration etc can be command line args rather then schema args.

Additionally schematics to add Prisma to a NX Monorepo would be fantastic.

Update to latest nrwl/nx Workspace File

Dear @gperdomor ,

i noticed, that the package uses / relies on the old nrwl/nx workspace v1. With 11.x, nrwl/nx introduced a new workspace version. Changes are minimal, however, a few keys in the workspace.json file change.

Can we update to the latest nrwl/nx version?

All the best,
Johannes

Source Code of the Dockerfile?

Hi,

in the README.md it is written that we shall use a Docker file that works with GitLab CI. It also links to this page, but unfortunately this is a 404.

My question: Is the source code of the Dockerfile published here ghcr.io/nx-tools/nx-docker:16.14-alpine open source or not?

Best,
Amir

ISSUE(nx-docker): failed to read dockerfile

Environment:
Node version: v14.17.5
Docker version: 20.10.7
Yarn version: 1.22.4
@nx-tools/nx-docker version: 1.0.5

Workspace snippet

"docker": {
  "executor": "@nx-tools/nx-docker:build",
  "options:": {
    "file": "apps/user-web/Dockerfile",
    "push": false,
    "tags": ["user-web:latest"],
    "meta": {
      "enabled": false
     }
  }
}

And I ran a command below:
$ yarn nx docker user-web

It fails with below message:

::group::Docker info
[command]/usr/local/bin/docker version
Client:
 Cloud integration: 1.0.17
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.16.4
 Git commit:        f0df350
 Built:             Wed Jun  2 11:56:22 2021
 OS/Arch:           darwin/amd64
...
Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

::endgroup::

Starting build...
[command]/usr/local/bin/docker buildx build --iidfile /var/folders/yh/gcnzr9212kv7_9bs9760gx380004z5/T/docker-build-push-5KGeZy/iidfile .
#1 [internal] load build definition from Dockerfile
#1 sha256:2e62b115199be600e169951d419a2d84bef5e072dfb35dbd1e61e5ff38f2d972
#1 transferring dockerfile: 2B done
#1 DONE 0.0s
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount045998286/Dockerfile: no such file or directory
buildx failed with: error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount045998286/Dockerfile: no such file or directory

I have Dockerfile file in apps/user-web/Dockerfile correctly.

What am I doing wrong?

Feature Request: Core library for common code

From #16

One other change I considered was moving the utilities to @gperdomor/utils so that they could be shared between each library, however I wanted to check with you before making such a change.

This issue is to discuss a common library to be shared across builder/schematic libraries and determine what such a library should look like, include and what benefits it might offer.

nx-prisma:migrate failing: "Prisma Migrate has detected that the environment is non-interactive, which is not supported"

Problem

When attempting to add a new field on an existing table, I'm using
yarn nx run <project_name>:migrate to perform the migration after having added the fields on my schema.

The above command fails with the following error: "Prisma Migrate has detected that the environment is non-interactive, which is not supported". The same command has worked previously, so I suspect it's the specific changes to the schema which are causing the error.

Attempted workarounds

Running the prisma command yarn prisma migrate dev directly. This works:
image

Expected behavior

The NX command should support interactivity with prisma migrate dev.

Comments

It seems like this is a known issue. Prisma docs call it out: https://www.prisma.io/docs/concepts/components/prisma-migrate#troubleshooting

Also related to prisma/prisma#9943

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @renovate/pep440 Available

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • fix(deps): bump nrwl monorepo from 19.4.3 to v19.5.2 (@nx/devkit, @nx/eslint, @nx/eslint-plugin, @nx/jest, @nx/js, @nx/plugin, @nx/workspace, nx)
  • chore(deps): bump eslint from 8.57.0 to v9
  • chore(deps): bump prettier from 2.8.8 to v3
  • fix(deps): bump chalk to v5.3.0
  • πŸ” Create all pending approval PRs at once πŸ”

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): replace @renovate/pep440 with @renovatebot/pep440 1.0.0
  • fix(deps): bump semver from 7.6.2 to v7.6.3
  • chore(deps): bump husky from 9.0.11 to v9.1.1
  • chore(deps): bump prisma monorepo from 5.14.0 to v5.17.0 (@prisma/client, prisma)
  • fix(deps): bump @octokit/openapi-types from 22.1.0 to v22.2.0
  • πŸ” Create all rate-limited PRs at once πŸ”

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): bump validate-branch-name from 1.3.0 to v1.3.1
  • chore(deps): bump verdaccio from ^5.27.0 to ^5.32.0

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
plugins/nx-container/tests/Dockerfile
  • alpine undefined
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
  • nrwl/nx-set-shas v4
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3.25.11@b611370bb5703a7efb587f9d136a52ea24c5c38c
  • github/codeql-action v3.25.11@b611370bb5703a7efb587f9d136a52ea24c5c38c
gitlabci
.gitlab-ci.yml
  • node 20
npm
package.json
  • @actions/exec 1.1.1
  • @actions/github 6.0.0
  • @actions/io 1.1.3
  • @nx/devkit 19.4.3
  • @octokit/openapi-types 22.1.0
  • @renovate/pep440 1.0.0
  • chalk 4.1.2
  • ci-info 4.0.0
  • clipanion 4.0.0-rc.3
  • csv-parse 5.5.5
  • handlebars 4.7.8
  • moment 2.30.1
  • moment-timezone 0.5.45
  • prisma 5.14.0
  • properties-file 3.5.4
  • semver 7.6.2
  • tmp 0.2.3
  • tslib 2.6.2
  • @commitlint/cli 19.3.0
  • @commitlint/config-conventional 19.2.2
  • @commitlint/config-nx-scopes 19.3.1
  • @commitlint/cz-commitlint 19.2.0
  • @nx/eslint 19.4.3
  • @nx/eslint-plugin 19.4.3
  • @nx/jest 19.4.3
  • @nx/js 19.4.3
  • @nx/plugin 19.4.3
  • @nx/workspace 19.4.3
  • @prisma/client 5.14.0
  • @swc-node/register 1.9.2
  • @swc/cli 0.3.12
  • @swc/core 1.5.7
  • @swc/helpers ~0.5.11
  • @swc/jest ~0.2.36
  • @types/jest 29.5.6
  • @types/node 18.19.31
  • @types/semver 7.5.8
  • @typescript-eslint/eslint-plugin 7.4.0
  • @typescript-eslint/parser 7.4.0
  • commitizen 4.3.0
  • dotenv 16.4.5
  • eslint 8.57.0
  • eslint-config-prettier 9.0.0
  • husky 9.0.11
  • is-ci 3.0.1
  • jest 29.7.0
  • jest-environment-jsdom 29.7.0
  • jest-environment-node 29.7.0
  • lint-staged 15.2.7
  • mocked-env 1.3.5
  • nx 19.4.3
  • prettier 2.8.8
  • ts-jest 29.1.1
  • ts-node 10.9.2
  • tsx ^4.7.2
  • typescript 5.4.3
  • validate-branch-name 1.3.0
  • verdaccio ^5.27.0
  • node >=18.12.0 || >=20.0.0
packages/ci-context/package.json
  • @nx-tools/core 6.0.1
  • ci-info ^4.0.0
  • @octokit/openapi-types ^22.0.0
  • @actions/github ^6.0.0
  • properties-file ^3.5.4
  • tslib ^2.5.0
packages/container-metadata/package.json
  • @nx-tools/ci-context 6.0.1
  • @nx-tools/core 6.0.1
  • @renovate/pep440 1.0.0
  • csv-parse ^5.5.5
  • handlebars ^4.7.8
  • moment-timezone ^0.5.45
  • semver ^7.6.0
  • @nx/devkit ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
  • tslib ^2.5.0
packages/core/package.json
  • @actions/exec ^1.1.1
  • @actions/io ^1.1.3
  • chalk ^4.1.2
  • ci-info ^4.0.0
  • csv-parse ^5.5.5
  • @nx/devkit ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
  • tslib ^2.5.0
packages/nx-set-shas/package.json
  • @nx-tools/core 6.0.1
  • clipanion ^4.0.0-rc.3
  • semver ^7.6.2
  • @swc/helpers ~0.5.11
plugins/nx-container/package.json
  • @nx-tools/container-metadata 6.0.1
  • @nx-tools/core 6.0.1
  • csv-parse ^5.5.5
  • handlebars ^4.7.8
  • semver ^7.6.0
  • tmp ^0.2.3
  • @nx/devkit ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
  • dotenv >=16.0.0
  • tslib ^2.5.0
plugins/nx-graphql-codegen/package.json
  • @nx-tools/core 6.0.1
  • @graphql-codegen/cli ^5.0.0
  • @nx/devkit ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
  • @swc/helpers ~0.5.11
  • ts-node ^10.0.0
plugins/nx-prisma/package.json
  • @nx-tools/core 6.0.1
  • @nx/devkit ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
  • prisma ^5.0.0
  • ts-node ^10.0.0
  • tslib ^2.5.0
  • tsx ^4.0.0
nvm
.nvmrc
  • node 20

  • Check this box to trigger a request for Renovate to run again on this repository

Get project name and use it as a tag

Is there any possibility to automatically retrieve and use as a tag the project name and workspace name (either from nx.json, workspace.json, angular.json) for an nx monorepo in the docker build step ?

Basically I would like to use this without the need of specifying them manually and I couldn't find the info (in metadata neither).

Parameter token or opts.auth is required

Hi, I'm trying to use this setup for build and push Docker image. The github workflow fails if I enable metadata.
If I remove metadata form this configuration, the workflow works correctly.

angular.json

"docker": {
  "executor": "@nx-tools/nx-docker:build",
  "options": {
    "file": "./Dockerfile.api.prod",
    "buildArgs": [
      "NODE_VERSION=14.17.5"
    ],
    "target": "builded",
    "noCache": true,
    "push": true,
    "meta": {
      "enabled": true,
      "images": ["mattndr/webapp1-api"],
      "tags": [
        "type=sha,prefix=sha-"
      ]
    }
  }
}

Workflow

jobs:
  build:
    name: Docker build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1

      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}

      - name: 'Install Dependencies'
        run: npm i

      - name: 'nx build'
        run: npx nx affected --target=docker --all

Workflow error

> nx run api:docker 
Parameter token or opts.auth is required

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

>  NX   ERROR  Running target "docker" failed

  Failed tasks:
  
  - api:docker
  
  You can isolate the above projects by passing: --only-failed

Error: Process completed with exit code 1.

NX 13.5.3 breaks nx-docker on GHA

After upgrading from NX 13.5.1 to 13.5.3 we started getting this error on GHA

>  Nx Docker  Docker info

/usr/bin/docker version
node:buffer:1053
    return this.utf8Write(string, 0, this.length);
                ^

TypeError: argument must be a string
    at Buffer.write (node:buffer:1053:17)
    at Socket.process.stdout._write (/home/runner/work/bpaas-smartcontractsets/bpaas-smartcontractsets/node_modules/@nrwl/cli/lib/run-cli.js:43:20)
    at writeOrBuffer (node:internal/streams/writable:389:12)
    at _write (node:internal/streams/writable:330:10)
    at Socket.Writable.write (node:internal/streams/writable:334:10)
    at Socket.<anonymous> (/home/runner/work/bpaas-smartcontractsets/bpaas-smartcontractsets/node_modules/@actions/exec/lib/toolrunner.js:421:54)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10) {
  code: 'ERR_INVALID_ARG_TYPE'
}
node:buffer:1053
    return this.utf8Write(string, 0, this.length);

downgrading back solved it, but somewhere something changed

Add versions to tags

For me it's a bit unclear how the tags should be used. I have multiple docker targets in my workspace, so it's not possible to use env. I would like to have the possibility to define a pattern in the tags and provide this by env. An example for the metadata extraction would also be helpful, as I can't imagine from the description how this actually works.

repository name must be lowercase

Hey @gperdomor - thanks for sharing your Docker build tool.

I just tried it out using your example, but it seems to struggle because my GitHub org name is not in lowercase:

invalid argument "docker.pkg.github.com/KikstartDev/kikstart-auth/api:latest" for "-t, --tag" flag: invalid reference format: repository name must be lowercase

Would it be possible to force-lowercase this so it works with these orgs too?

Getting the tagging working

hi,

I'm trying to get my packages correctly tagged.

I want to have latest, vX.X.X.
But it only seems to tag with the sha-xxxx and main

this is my config:

"docker": {
  "executor": "@nx-tools/nx-docker:build",
  "options": {
    "push": true,
    "metadata": {
      "images": ["ghcr.io/badminton-apps/xxxx/worker/sync"],
      "flavor": ["latest=auto"],
      "tags": [
        "type=schedule",
        "type=ref,event=branch",
        "type=ref,event=tag",
        "type=ref,event=pr",
        "type=match,pattern=v(.*),group=1",
        "type=semver,pattern={{version}}",
        "type=semver,pattern={{major}}.{{minor}}",
        "type=semver,pattern={{major}}",
        "type=sha,prefix=sha-"
      ]
    }
  }
},

github actions:

- uses: actions/checkout@v3
  with:
    fetch-depth: 0
- name: Checkout latest release tag
  run: |
    LATEST_TAG=$(git describe --match 'v*' --abbrev=0 --tags $(git rev-list --tags --max-count=1))
    git checkout $LATEST_TAG
- run: npx nx affected --target=docker --base=${{ needs.base.outputs.base }} --head=origin/main
  env:
    INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

I've tried just normally checking out, with and without the fetch-depth.
I've tried differnt tags and with and without any flavors.
But none gave me the expected result

Is there anything I'm doing wrong?

I'm thinking that a possible issue could be that the name of master branch is changed to "main" for new github projects?

Change MIGRATE Executor

Dear @gperdomor ,

just wanted to let you know, that the migrate command for prisma changed in the last versions. Find more details here on the official prisma docs: https://www.prisma.io/docs/concepts/components/prisma-migrate/prisma-migrate-flows

Furthermore, i would suggest to split the migrations command into multiple ones. Currently the migrations command adds a migration and automatically migrates the database. I would suggest to have 2 separate commands, i.e.:

nx-tools:create-migration, which looks like this:

prisma migrate dev --create-only --preview-feature

and a nx-tools:run-migration, which looks like this:

prisma migrate dev --preview-feature

All the best,
Johannes

tag is needed when pushing to registry

hello, i installed @nx-tools/nx-docker & @nx-tools/docker-metadata packages.
i have a target with the following configuration:

        "docker": {
          "executor": "@nx-tools/nx-docker:build",
          "options": {
            "file": "apps/admin/Dockerfile",
            "push": true,
            "metadata": {
              "images": ["#########"],
              "tags": [
                  "type=match,pattern=admin@(.*),group=1"
              ] 
            }
          },
          "dependsOn": [
            {
              "target": "build",
              "projects": "self"
            }
          ]
        },

Then i added tag "[email protected]" to my last commit, but when i try to run this target, i get the error message: tag is needed when pushing to registry,

Am i doing somthing wrong?

Issue(nx-prisma): Do not require Global PRISMA installation

Dear @gperdomor , thank you for this nx generator.

When calling nx generate / migrations / ... PROJECT, the command fails with

/bin/sh: 1: prisma: not found

i do not have prisma globally installed, so these commands fail for me.

can we simply call npx prisma ... instead of just prisma? This would solve the issue, i guess.

All the best

Feature Request: CI/CD

As it stands we have CI/CD for the docker images which is fantastic however it would be awesome if we also include CI/CD for testing, building and deploying the NPM packages.

The ideal would probably be doing this through GitHub actions to keep everything integrated.
Ideally the master branch would always be what is published as latest to NPM.

Nrwl's Nx Cloud could also be used to cache builds/test for all contributors.
release-it could be used to bump versions, create change logs and publish the packages.

We may even consider making a library for release-it to work with Nwrl Nx like we have done with Docker and Prisma not only for our own releases but simply as a library others could use to easily release packages.

It may also be nice to move the docker/19.03 into a Nwrl Nx library and build it with nx-docker so that it will only need to be built when affected rather then running builds on every commit.

Update: semantic-release many be an alternative to release-it
Update 2: Looks like there is already some work done on the semantic-release side with nx-semantic-release. This brings nx in as a semantic-release plugin, however I believe the reverse may be preferred in some cases.

nx-docker, metadata github branches and slash commands

We use slash commands to build the docker containers and deploy, and we are hitting this:

On a github action on the 'main' brach, we do the following

    - name: Checkout
        uses: actions/checkout@v2
        with:
          ref: ${{ github.event.client_payload.pull_request.head.ref }}
          fetch-depth: 0

The PR branch is checked out e.g. roderik/test

But the following tag setup

              "tags": [
                "type=schedule",
                "type=ref,event=branch",
                "type=ref,event=tag",
                "type=ref,event=pr",
                "type=sha,format=long,prefix={{branch}}-",
                "type=sha,format=long",
                "type=raw,value=development"
              ]

uses the main branch as a branchname. As far as I understand the ci-context package, it gets the branch from github metadata which is usually correct, but not in this case.

Is there a way to override the "branch" from an environment variable of sorts?

ps. we use v2

images input required

After I fixed #324 I now get the error images input required. Somehow beta-4 worked a lot better, although downgrading also didn't work because of another error:

πŸ“£ Buildx version: 0.5.1
core.parseBoolean is not a function

The full error looks like this

> nx run asset-manager:docker 
::group::Docker info
[command]/bin/docker version
Client: Docker Engine - Community
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        f0df350
 Built:             Wed Jun  2 11:58:10 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       b0f5bc3
  Built:            Wed Jun  2 11:56:35 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.6
  GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc:
  Version:          1.0.0-rc95
  GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
[command]/bin/docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 36
  Running: 24
  Paused: 0
  Stopped: 12
 Images: 328
 Server Version: 20.10.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-1160.24.1.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.13GiB
 Name: h1
 ID: MQ6Q:7Q3K:DMBC:4XSD:CNJX:BSAV:ZOP4:U3CU:4WEH:5EBG:VAMD:4EH5
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: API is accessible on http://localhost:2375 without encryption.
         Access to the remote API is equivalent to root access on the host. Refer
         to the 'Docker daemon attack surface' section in the documentation for
         more information: https://docs.docker.com/go/attack-surface/
::endgroup::
images input required

nx-docker metadata inputs result in invalid environment variable names

The nx-docker executor uses environment variables to enable features like SHA tagging. However, the current implementation converts the input names to invalid environment variable names.

For example, setting INPUT_TAG_SHA=true does not enable SHA tagging, because getInput tries to read from INPUT_TAG-SHA, which is not a valid variable name in most shells.

Feature Request(nx-prisma): Command line input while schematic is running

Currently command line input is not possible while the schema is running. This makes it impossible to provide custom migration names or to select Yes when a migration notifies you that it will be deleting data as a result of the migration and it needs your permission.

This is the next biggest feature required for nx-prisma to be truly useful.
This change will be affecting @nx-tools/core as a result nx-docker will also gain this feature along with any other future libraries.

Feature Request(nx-docker): Docker run builder

The current Docker build builder is fantastic, however it would be awesome if another builder to run docker images/Dockerfiles was added.

In my current projects I have several dependencies from pgsql to redis that I have a docker-compose.yml for.
It would be awesome if I could move all of these dependencies into my Nx Configuration and specify env files or env variables for these to use directly from the configuration file.

I think this would have great synergy with the already existing build command as you will now have a serve command to run the Dockerfile locally. For my Prisma database I have it setup as a docker image extending pgsql and I build it for production but I also run it locally so my development environment can be as similar as possible to the production one.

NextJs e nx-tools-docker

Hi guys, i like run my projects nextjs in my workspace with docker. What would be the best way?

Problem:

  • node_modules large size to copy for every application

none:none docker image tag created

I am using the the following NX workspace.json configuration

"docker": {
    "builder": "@nx-tools/nx-docker:build",
    "options": {
      "metadata": {
        "images": ["org/image],
        "tags": [
          "latest",
          "type=sha"
        ]
      }
    }
  }

I get 3 images tags cerated latest, sha, and none

The none image tag should not be created.

Can't pass --secret to a Dockerfile

Hello!

I'm trying to pass a --secret to my Dockerfile, here is my project.json

    "docker": {
      "executor": "@nx-tools/nx-docker:build",
      "options": {
        "push": true,
        "secrets": [
          "npm_token=${{ secrets.NPM_TOKEN }}"
        ],
        "metadata": {
          ...
        }
      }
    },

In build.yaml

      - run: npx nx affected --target=docker
        env:
          INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          INPUT_TAGS: ${{ steps.meta.outputs.tag }}

And in Dockerfile

RUN --mount=type=secret,id=npm_token \
  echo "//verdaccio-uchi.runit.cc/:_authToken=$(cat /run/secrets/npm_token)" >> .npmrc

But my build fails

#19 4.271 npm ERR! code E401
#19 4.273 npm ERR! Unable to authenticate, your authentication token seems to be invalid.

What am I doing wrong?
Maybe my syntax is not wright?
"npm_token=${{ secrets.NPM_TOKEN }}"

Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2022-07-27 Π² 18 44 27

Add documentation for docker-metadata

The docker-metadata package is very useful, but usage is kind of complicated since it essentially has its own little language. While most of the supported tag types are plug-in-play, the more advanced raw and match currently requires digging into the source code to figure out exists. It would be nice to have the supported types and their arguments documented somewhere. The same goes for the 'flavor' property which is also quite a mystery at first.

It took me longer than I'm willing to admit, to figure out how to tag with "latest" when the active git branch is "master". For anyone looking to do the same: "type=match,pattern=master,value={{branch}}".

PS: Thanks for all your hard work on these packages, you're awesome.

Issue(docker-metadata): INPUT_TAGS with list value is not working

Hi @gperdomor,

We noticed an issue when we have a list of value for the INPUT_TAGS that it only use the last value instead of tagging it multiple times. Here's an example value INPUT_TAGS="type=ref,event=branch,type=raw,value=v1.2.3" and the docker image only get tagged with v1.2.3. Although, adding multiple tags is working at the nx-docker executor.

We did look into the code and we noticed a difference between the getInputs from the nx-docker context.ts and docker-metadata context.ts.

nx-docker context.ts
tags: await getInputList('tags', options.tags),

docker-metadata context.ts
tags: getInputList('tags', options.tags, true).map((tag) => interpolate(tag)),

We tried to match it with the executor and test it by removing the parameter true which is the ignoreComma parameter of getInputList and that fixes the issue. Not sure if there's a reason we want to ignore comma in the docker-metadata. According to the documentation, that is how we list values.

Note: For list values use a comma-delimited string,
like INPUT_TAGS=user/app:v1,user/app:latest

Thanks! :)

Issue(nx-docker): Docker build fails with `Parameter token or opts.auth is required`

I am trying to get a Github workflow working to build and push affected projects to GCR. However, the build continually fails with Parameter token or opts.auth is required which I believe is happening here.

Note: Building and pushing in the terminal works fine by just running INPUT_PUSH=true npm run nx affected -- --target=docker --all.

I have tried exposing GIT_AUTH_TOKEN=... via the --secrets flag as well as setting --github-token both end in the same error. Any insight into what might be happening or how to resolve it would be greatly appreciated. I'll be looking the code over some more today.

package.json

{
  "name": "wileycoyote",
  "version": "0.0.0",
  "scripts": {
    "nx": "nx",
    "start": "nx serve",
    "build": "nx build",
    "test": "nx test",
    "lint": "nx workspace-lint && nx lint",
    "e2e": "nx e2e",
    "affected:apps": "nx affected:apps",
    "affected:libs": "nx affected:libs",
    "affected:build": "nx affected:build",
    "affected:e2e": "nx affected:e2e",
    "affected:test": "nx affected:test",
    "affected:lint": "nx affected:lint",
    "affected:dep-graph": "nx affected:dep-graph",
    "affected": "nx affected",
    "format": "nx format:write",
    "format:write": "nx format:write",
    "format:check": "nx format:check",
    "update": "nx migrate latest",
    "workspace-generator": "nx workspace-generator",
    "dep-graph": "nx dep-graph",
    "help": "nx help"
  },
  "private": true,
  "dependencies": {
    "@google-cloud/pubsub": "^2.16.0",
    "express": "4.17.1",
    "express-graphql": "^0.12.0",
    "graphql": "^15.5.1",
    "lodash": "^4.17.21",
    "tslib": "^2.0.0"
  },
  "devDependencies": {
    "@nrwl/cli": "12.5.8",
    "@nrwl/eslint-plugin-nx": "12.5.8",
    "@nrwl/express": "^12.5.8",
    "@nrwl/jest": "12.5.8",
    "@nrwl/linter": "12.5.8",
    "@nrwl/node": "12.5.8",
    "@nrwl/tao": "12.5.8",
    "@nrwl/workspace": "12.5.8",
    "@nx-tools/nx-docker": "^1.0.5",
    "@types/express": "4.17.0",
    "@types/jest": "26.0.8",
    "@types/node": "14.14.33",
    "@typescript-eslint/eslint-plugin": "4.19.0",
    "@typescript-eslint/parser": "4.19.0",
    "dotenv": "8.2.0",
    "eslint": "7.22.0",
    "eslint-config-prettier": "8.1.0",
    "jest": "27.0.3",
    "prettier": "^2.3.1",
    "ts-jest": "27.0.3",
    "ts-node": "~9.1.1",
    "typescript": "~4.2.4"
  }
}

workspace.json snippet

        "docker": {
          "executor": "@nx-tools/nx-docker:build",
          "options": {
            "file": "apps/platform-api/Dockerfile",
            "push": false,
            "no_cache": true,
            "meta": {
              "enabled": true,
              "images": [
                "gcr.io/wileycoyote/platform-api"
              ],
              "tags": [
                "type=schedule",
                "type=ref,event=branch",
                "type=ref,event=tag",
                "type=ref,event=pr",
                "type=sha,prefix="
              ]
            }
          }
        }

github workflow

name: Build
# This workflow is triggered on pushes to the repository.
on:
  push:
    branches:
    - main

env:
  PROJECT_ID: wileycoyote

jobs:
  build:
    name: Docker build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1

      - name: Login to GCR
        uses: docker/login-action@v1
        with:
          registry: gcr.io
          username: _json_key
          password: ${{ secrets.GCP_SA_KEY }}

      - name: 'Install Dependencies'
        run: npm i

      - name: 'nx build'
        run: npm run nx affected -- --target=build --all

      - name: 'docker build & push all projects'
        run: INPUT_PUSH=true npm run nx affected -- --target=docker --all

Dockerfile

FROM node:12

WORKDIR /code

COPY ./dist/apps/platform-api .

EXPOSE 4000

RUN npm install --production
RUN npm install tslib

CMD ["node", "main.js"]

Error log from Github action run (running with act locally presents the same errors as well)

2021-07-21T16:43:38.7185342Z Found online and idle hosted runner(s) in the current repository's organization account that matches the required labels: 'ubuntu-latest'
2021-07-21T16:43:38.7185413Z Waiting for a hosted runner in 'organization' to pick this job...
2021-07-21T16:43:46.8463904Z Current runner version: '2.278.0'
2021-07-21T16:43:46.8494290Z ##[group]Operating System
2021-07-21T16:43:46.8495729Z Ubuntu
2021-07-21T16:43:46.8496635Z 20.04.2
2021-07-21T16:43:46.8497482Z LTS
2021-07-21T16:43:46.8498320Z ##[endgroup]
2021-07-21T16:43:46.8499348Z ##[group]Virtual Environment
2021-07-21T16:43:46.8500456Z Environment: ubuntu-20.04
2021-07-21T16:43:46.8501462Z Version: 20210718.1
2021-07-21T16:43:46.8503030Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210718.1/images/linux/Ubuntu2004-README.md
2021-07-21T16:43:46.8505068Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210718.1
2021-07-21T16:43:46.8506484Z ##[endgroup]
2021-07-21T16:43:46.8509797Z ##[group]GITHUB_TOKEN Permissions
2021-07-21T16:43:46.8511577Z Actions: write
2021-07-21T16:43:46.8512533Z Checks: write
2021-07-21T16:43:46.8513459Z Contents: write
2021-07-21T16:43:46.8514478Z Deployments: write
2021-07-21T16:43:46.8515569Z Discussions: write
2021-07-21T16:43:46.8516602Z Issues: write
2021-07-21T16:43:46.8517531Z Metadata: read
2021-07-21T16:43:46.8518414Z Packages: write
2021-07-21T16:43:46.8519403Z PullRequests: write
2021-07-21T16:43:46.8520493Z RepositoryProjects: write
2021-07-21T16:43:46.8521582Z SecurityEvents: write
2021-07-21T16:43:46.8522603Z Statuses: write
2021-07-21T16:43:46.8523662Z ##[endgroup]
2021-07-21T16:43:46.8527384Z Prepare workflow directory
2021-07-21T16:43:46.9393816Z Prepare all required actions
2021-07-21T16:43:46.9407794Z Getting action download info
2021-07-21T16:43:47.3057196Z Download action repository 'actions/checkout@v2'
2021-07-21T16:43:49.3633283Z Download action repository 'docker/setup-qemu-action@v1'
2021-07-21T16:43:49.4849733Z Download action repository 'docker/setup-buildx-action@v1'
2021-07-21T16:43:49.6197590Z Download action repository 'docker/login-action@v1'
2021-07-21T16:43:49.9102641Z ##[group]Run actions/checkout@v2
2021-07-21T16:43:49.9103688Z with:
2021-07-21T16:43:49.9104698Z   repository: tcoyze/wileycoyote
2021-07-21T16:43:49.9106275Z   token: ***
2021-07-21T16:43:49.9107062Z   ssh-strict: true
2021-07-21T16:43:49.9107971Z   persist-credentials: true
2021-07-21T16:43:49.9109034Z   clean: true
2021-07-21T16:43:49.9109807Z   fetch-depth: 1
2021-07-21T16:43:49.9110580Z   lfs: false
2021-07-21T16:43:49.9111343Z   submodules: false
2021-07-21T16:43:49.9112112Z env:
2021-07-21T16:43:49.9112904Z   PROJECT_ID: wileycoyote
2021-07-21T16:43:49.9113741Z ##[endgroup]
2021-07-21T16:43:50.6670907Z Syncing repository: tcoyze/wileycoyote
2021-07-21T16:43:50.6672342Z ##[group]Getting Git version info
2021-07-21T16:43:50.6673997Z Working directory is '/home/runner/work/wileycoyote/wileycoyote'
2021-07-21T16:43:50.6677821Z [command]/usr/bin/git version
2021-07-21T16:43:50.6678894Z git version 2.32.0
2021-07-21T16:43:50.6680739Z ##[endgroup]
2021-07-21T16:43:50.6682451Z Deleting the contents of '/home/runner/work/wileycoyote/wileycoyote'
2021-07-21T16:43:50.6684644Z ##[group]Initializing the repository
2021-07-21T16:43:50.6686271Z [command]/usr/bin/git init /home/runner/work/wileycoyote/wileycoyote
2021-07-21T16:43:50.6688168Z hint: Using 'master' as the name for the initial branch. This default branch name
2021-07-21T16:43:50.6689600Z hint: is subject to change. To configure the initial branch name to use in all
2021-07-21T16:43:50.6691007Z hint: of your new repositories, which will suppress this warning, call:
2021-07-21T16:43:50.6692145Z hint: 
2021-07-21T16:43:50.6693416Z hint: 	git config --global init.defaultBranch <name>
2021-07-21T16:43:50.6694912Z hint: 
2021-07-21T16:43:50.6696328Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2021-07-21T16:43:50.6704120Z hint: 'development'. The just-created branch can be renamed via this command:
2021-07-21T16:43:50.6705367Z hint: 
2021-07-21T16:43:50.6706455Z hint: 	git branch -m <name>
2021-07-21T16:43:50.6708368Z Initialized empty Git repository in /home/runner/work/wileycoyote/wileycoyote/.git/
2021-07-21T16:43:50.6711733Z [command]/usr/bin/git remote add origin https://github.com/tcoyze/wileycoyote
2021-07-21T16:43:50.6713232Z ##[endgroup]
2021-07-21T16:43:50.6714324Z ##[group]Disabling automatic garbage collection
2021-07-21T16:43:50.6715734Z [command]/usr/bin/git config --local gc.auto 0
2021-07-21T16:43:50.6716793Z ##[endgroup]
2021-07-21T16:43:50.6719251Z ##[group]Setting up auth
2021-07-21T16:43:50.6720772Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-07-21T16:43:50.6722998Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-07-21T16:43:50.6725280Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-07-21T16:43:50.6727962Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-07-21T16:43:50.6730600Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2021-07-21T16:43:50.6732093Z ##[endgroup]
2021-07-21T16:43:50.6733116Z ##[group]Fetching the repository
2021-07-21T16:43:50.6735776Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +6a3120f0dc689a96c77a865ed8f19e3f30ce28d0:refs/remotes/origin/main
2021-07-21T16:43:50.6737741Z remote: Enumerating objects: 60, done.        
2021-07-21T16:43:50.6738881Z remote: Counting objects:   1% (1/60)        
2021-07-21T16:43:50.6739962Z remote: Counting objects:   3% (2/60)        
2021-07-21T16:43:50.6741227Z remote: Counting objects:   5% (3/60)        
2021-07-21T16:43:50.6742327Z remote: Counting objects:   6% (4/60)        
2021-07-21T16:43:50.6743445Z remote: Counting objects:   8% (5/60)        
2021-07-21T16:43:50.6744523Z remote: Counting objects:  10% (6/60)        
2021-07-21T16:43:50.6745596Z remote: Counting objects:  11% (7/60)        
2021-07-21T16:43:50.6746665Z remote: Counting objects:  13% (8/60)        
2021-07-21T16:43:50.6747713Z remote: Counting objects:  15% (9/60)        
2021-07-21T16:43:50.6748987Z remote: Counting objects:  16% (10/60)        
2021-07-21T16:43:50.6750080Z remote: Counting objects:  18% (11/60)        
2021-07-21T16:43:50.6751179Z remote: Counting objects:  20% (12/60)        
2021-07-21T16:43:50.6752251Z remote: Counting objects:  21% (13/60)        
2021-07-21T16:43:50.6753311Z remote: Counting objects:  23% (14/60)        
2021-07-21T16:43:50.6754378Z remote: Counting objects:  25% (15/60)        
2021-07-21T16:43:50.6755440Z remote: Counting objects:  26% (16/60)        
2021-07-21T16:43:50.6756510Z remote: Counting objects:  28% (17/60)        
2021-07-21T16:43:50.6757574Z remote: Counting objects:  30% (18/60)        
2021-07-21T16:43:50.6758639Z remote: Counting objects:  31% (19/60)        
2021-07-21T16:43:50.6759716Z remote: Counting objects:  33% (20/60)        
2021-07-21T16:43:50.6760776Z remote: Counting objects:  35% (21/60)        
2021-07-21T16:43:50.6761834Z remote: Counting objects:  36% (22/60)        
2021-07-21T16:43:50.6762899Z remote: Counting objects:  38% (23/60)        
2021-07-21T16:43:50.6763953Z remote: Counting objects:  40% (24/60)        
2021-07-21T16:43:50.6765016Z remote: Counting objects:  41% (25/60)        
2021-07-21T16:43:50.6766096Z remote: Counting objects:  43% (26/60)        
2021-07-21T16:43:50.6767222Z remote: Counting objects:  45% (27/60)        
2021-07-21T16:43:50.6768280Z remote: Counting objects:  46% (28/60)        
2021-07-21T16:43:50.6769337Z remote: Counting objects:  48% (29/60)        
2021-07-21T16:43:50.6770403Z remote: Counting objects:  50% (30/60)        
2021-07-21T16:43:50.6771458Z remote: Counting objects:  51% (31/60)        
2021-07-21T16:43:50.6772510Z remote: Counting objects:  53% (32/60)        
2021-07-21T16:43:50.6773706Z remote: Counting objects:  55% (33/60)        
2021-07-21T16:43:50.6774768Z remote: Counting objects:  56% (34/60)        
2021-07-21T16:43:50.6775822Z remote: Counting objects:  58% (35/60)        
2021-07-21T16:43:50.6776879Z remote: Counting objects:  60% (36/60)        
2021-07-21T16:43:50.6777939Z remote: Counting objects:  61% (37/60)        
2021-07-21T16:43:50.6778998Z remote: Counting objects:  63% (38/60)        
2021-07-21T16:43:50.6780055Z remote: Counting objects:  65% (39/60)        
2021-07-21T16:43:50.6781124Z remote: Counting objects:  66% (40/60)        
2021-07-21T16:43:50.6782180Z remote: Counting objects:  68% (41/60)        
2021-07-21T16:43:50.6783237Z remote: Counting objects:  70% (42/60)        
2021-07-21T16:43:50.6784296Z remote: Counting objects:  71% (43/60)        
2021-07-21T16:43:50.6785357Z remote: Counting objects:  73% (44/60)        
2021-07-21T16:43:50.6786417Z remote: Counting objects:  75% (45/60)        
2021-07-21T16:43:50.6787487Z remote: Counting objects:  76% (46/60)        
2021-07-21T16:43:50.6788943Z remote: Counting objects:  78% (47/60)        
2021-07-21T16:43:50.6790222Z remote: Counting objects:  80% (48/60)        
2021-07-21T16:43:50.6791315Z remote: Counting objects:  81% (49/60)        
2021-07-21T16:43:50.6792380Z remote: Counting objects:  83% (50/60)        
2021-07-21T16:43:50.6793445Z remote: Counting objects:  85% (51/60)        
2021-07-21T16:43:50.6794513Z remote: Counting objects:  86% (52/60)        
2021-07-21T16:43:50.6795572Z remote: Counting objects:  88% (53/60)        
2021-07-21T16:43:50.6796629Z remote: Counting objects:  90% (54/60)        
2021-07-21T16:43:50.6797692Z remote: Counting objects:  91% (55/60)        
2021-07-21T16:43:50.6798821Z remote: Counting objects:  93% (56/60)        
2021-07-21T16:43:50.6800057Z remote: Counting objects:  95% (57/60)        
2021-07-21T16:43:50.6801351Z remote: Counting objects:  96% (58/60)        
2021-07-21T16:43:50.6802540Z remote: Counting objects:  98% (59/60)        
2021-07-21T16:43:50.6803791Z remote: Counting objects: 100% (60/60)        
2021-07-21T16:43:50.6805012Z remote: Counting objects: 100% (60/60), done.        
2021-07-21T16:43:50.6806262Z remote: Compressing objects:   2% (1/48)        
2021-07-21T16:43:50.6807789Z remote: Compressing objects:   4% (2/48)        
2021-07-21T16:43:50.6808992Z remote: Compressing objects:   6% (3/48)        
2021-07-21T16:43:50.6890681Z remote: Compressing objects:   8% (4/48)        
2021-07-21T16:43:50.6892162Z remote: Compressing objects:  10% (5/48)        
2021-07-21T16:43:50.6893463Z remote: Compressing objects:  12% (6/48)        
2021-07-21T16:43:50.6894768Z remote: Compressing objects:  14% (7/48)        
2021-07-21T16:43:50.6896050Z remote: Compressing objects:  16% (8/48)        
2021-07-21T16:43:50.6897358Z remote: Compressing objects:  18% (9/48)        
2021-07-21T16:43:50.6898660Z remote: Compressing objects:  20% (10/48)        
2021-07-21T16:43:50.6899924Z remote: Compressing objects:  22% (11/48)        
2021-07-21T16:43:50.6901211Z remote: Compressing objects:  25% (12/48)        
2021-07-21T16:43:50.6902498Z remote: Compressing objects:  27% (13/48)        
2021-07-21T16:43:50.6903766Z remote: Compressing objects:  29% (14/48)        
2021-07-21T16:43:50.6905041Z remote: Compressing objects:  31% (15/48)        
2021-07-21T16:43:50.6906299Z remote: Compressing objects:  33% (16/48)        
2021-07-21T16:43:50.6907568Z remote: Compressing objects:  35% (17/48)        
2021-07-21T16:43:50.6908912Z remote: Compressing objects:  37% (18/48)        
2021-07-21T16:43:50.6910208Z remote: Compressing objects:  39% (19/48)        
2021-07-21T16:43:50.6911703Z remote: Compressing objects:  41% (20/48)        
2021-07-21T16:43:50.6912974Z remote: Compressing objects:  43% (21/48)        
2021-07-21T16:43:50.6914259Z remote: Compressing objects:  45% (22/48)        
2021-07-21T16:43:50.6915535Z remote: Compressing objects:  47% (23/48)        
2021-07-21T16:43:50.6916805Z remote: Compressing objects:  50% (24/48)        
2021-07-21T16:43:50.6918304Z remote: Compressing objects:  52% (25/48)        
2021-07-21T16:43:50.6919588Z remote: Compressing objects:  54% (26/48)        
2021-07-21T16:43:50.6920859Z remote: Compressing objects:  56% (27/48)        
2021-07-21T16:43:50.6922066Z remote: Compressing objects:  58% (28/48)        
2021-07-21T16:43:50.6923351Z remote: Compressing objects:  60% (29/48)        
2021-07-21T16:43:50.6924668Z remote: Compressing objects:  62% (30/48)        
2021-07-21T16:43:50.6925952Z remote: Compressing objects:  64% (31/48)        
2021-07-21T16:43:50.6927217Z remote: Compressing objects:  66% (32/48)        
2021-07-21T16:43:50.6928469Z remote: Compressing objects:  68% (33/48)        
2021-07-21T16:43:50.6929741Z remote: Compressing objects:  70% (34/48)        
2021-07-21T16:43:50.6931080Z remote: Compressing objects:  72% (35/48)        
2021-07-21T16:43:50.6932333Z remote: Compressing objects:  75% (36/48)        
2021-07-21T16:43:50.6933631Z remote: Compressing objects:  77% (37/48)        
2021-07-21T16:43:50.6934891Z remote: Compressing objects:  79% (38/48)        
2021-07-21T16:43:50.6936155Z remote: Compressing objects:  81% (39/48)        
2021-07-21T16:43:50.6937419Z remote: Compressing objects:  83% (40/48)        
2021-07-21T16:43:50.6938673Z remote: Compressing objects:  85% (41/48)        
2021-07-21T16:43:50.6939955Z remote: Compressing objects:  87% (42/48)        
2021-07-21T16:43:50.6941207Z remote: Compressing objects:  89% (43/48)        
2021-07-21T16:43:50.6942450Z remote: Compressing objects:  91% (44/48)        
2021-07-21T16:43:50.6943734Z remote: Compressing objects:  93% (45/48)        
2021-07-21T16:43:50.6945052Z remote: Compressing objects:  95% (46/48)        
2021-07-21T16:43:50.6946346Z remote: Compressing objects:  97% (47/48)        
2021-07-21T16:43:50.6947710Z remote: Compressing objects: 100% (48/48)        
2021-07-21T16:43:50.6949324Z remote: Compressing objects: 100% (48/48), done.        
2021-07-21T16:43:50.6951208Z remote: Total 60 (delta 8), reused 46 (delta 6), pack-reused 0        
2021-07-21T16:43:50.6953067Z From https://github.com/tcoyze/wileycoyote
2021-07-21T16:43:50.6955075Z  * [new ref]         6a3120f0dc689a96c77a865ed8f19e3f30ce28d0 -> origin/main
2021-07-21T16:43:50.6956530Z ##[endgroup]
2021-07-21T16:43:50.6957732Z ##[group]Determining the checkout info
2021-07-21T16:43:50.6958925Z ##[endgroup]
2021-07-21T16:43:50.6960076Z ##[group]Checking out the ref
2021-07-21T16:43:50.6961750Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2021-07-21T16:43:50.6963303Z Switched to a new branch 'main'
2021-07-21T16:43:50.6964830Z Branch 'main' set up to track remote branch 'main' from 'origin'.
2021-07-21T16:43:50.6966106Z ##[endgroup]
2021-07-21T16:43:50.6967460Z [command]/usr/bin/git log -1 --format='%H'
2021-07-21T16:43:50.6987225Z '6a3120f0dc689a96c77a865ed8f19e3f30ce28d0'
2021-07-21T16:43:50.7079645Z ##[group]Run docker/setup-qemu-action@v1
2021-07-21T16:43:50.7080751Z with:
2021-07-21T16:43:50.7081738Z   image: tonistiigi/binfmt:latest
2021-07-21T16:43:50.7082747Z   platforms: all
2021-07-21T16:43:50.7083569Z env:
2021-07-21T16:43:50.7084504Z   PROJECT_ID: wileycoyote
2021-07-21T16:43:50.7085477Z ##[endgroup]
2021-07-21T16:43:51.3758860Z ##[group]Docker info
2021-07-21T16:43:51.3869899Z [command]/usr/bin/docker version
2021-07-21T16:43:51.3922313Z Client:
2021-07-21T16:43:51.3933882Z  Version:           20.10.7+azure
2021-07-21T16:43:51.3934751Z  API version:       1.41
2021-07-21T16:43:51.3935576Z  Go version:        go1.13.15
2021-07-21T16:43:51.3936692Z  Git commit:        f0df35096d5f5e6b559b42c7fde6c65a2909f7c5
2021-07-21T16:43:51.3937804Z  Built:             Mon May 31 09:40:07 2021
2021-07-21T16:43:51.3938655Z  OS/Arch:           linux/amd64
2021-07-21T16:43:51.3939497Z  Context:           default
2021-07-21T16:43:51.3940360Z  Experimental:      true
2021-07-21T16:43:51.3940919Z 
2021-07-21T16:43:51.3941625Z Server:
2021-07-21T16:43:51.3942360Z  Engine:
2021-07-21T16:43:51.3943139Z   Version:          20.10.7+azure
2021-07-21T16:43:51.3944282Z   API version:      1.41 (minimum version 1.12)
2021-07-21T16:43:51.3945190Z   Go version:       go1.13.15
2021-07-21T16:43:51.3946359Z   Git commit:       b0f5bc36fea9dfb9672e1e9b1278ebab797b9ee0
2021-07-21T16:43:51.3947528Z   Built:            Tue Jun  1 22:34:42 2021
2021-07-21T16:43:51.3948375Z   OS/Arch:          linux/amd64
2021-07-21T16:43:51.3949480Z   Experimental:     false
2021-07-21T16:43:51.3950369Z  containerd:
2021-07-21T16:43:51.3951177Z   Version:          1.4.7+azure
2021-07-21T16:43:51.3952279Z   GitCommit:        3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:43:51.3953304Z  runc:
2021-07-21T16:43:51.3954039Z   Version:          1.0.0
2021-07-21T16:43:51.3955107Z   GitCommit:        84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:43:51.3956735Z  docker-init:
2021-07-21T16:43:51.3957549Z   Version:          0.19.0
2021-07-21T16:43:51.3958348Z   GitCommit:        
2021-07-21T16:43:51.3959193Z [command]/usr/bin/docker info
2021-07-21T16:43:51.3960010Z Client:
2021-07-21T16:43:51.3960760Z  Context:    default
2021-07-21T16:43:51.3961568Z  Debug Mode: false
2021-07-21T16:43:51.3962343Z  Plugins:
2021-07-21T16:43:51.3963257Z   buildx: Build with BuildKit (Docker Inc., 0.5.1+azure)
2021-07-21T16:43:51.3963884Z 
2021-07-21T16:43:51.3964566Z Server:
2021-07-21T16:43:51.3965329Z  Containers: 0
2021-07-21T16:43:51.3966096Z   Running: 0
2021-07-21T16:43:51.3966890Z   Paused: 0
2021-07-21T16:43:51.3967637Z   Stopped: 0
2021-07-21T16:43:51.3968383Z  Images: 16
2021-07-21T16:43:51.3969183Z  Server Version: 20.10.7+azure
2021-07-21T16:43:51.3970067Z  Storage Driver: overlay2
2021-07-21T16:43:51.3970951Z   Backing Filesystem: extfs
2021-07-21T16:43:51.3971832Z   Supports d_type: true
2021-07-21T16:43:51.3972697Z   Native Overlay Diff: false
2021-07-21T16:43:51.3973546Z   userxattr: false
2021-07-21T16:43:51.3974584Z  Logging Driver: json-file
2021-07-21T16:43:51.3975467Z  Cgroup Driver: cgroupfs
2021-07-21T16:43:51.3976303Z  Cgroup Version: 1
2021-07-21T16:43:51.3977088Z  Plugins:
2021-07-21T16:43:51.3977831Z   Volume: local
2021-07-21T16:43:51.3978758Z   Network: bridge host ipvlan macvlan null overlay
2021-07-21T16:43:51.3994243Z   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2021-07-21T16:43:51.3995374Z  Swarm: inactive
2021-07-21T16:43:51.3996656Z  Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2021-07-21T16:43:51.3997935Z  Default Runtime: runc
2021-07-21T16:43:51.3998962Z  Init Binary: docker-init
2021-07-21T16:43:51.4000136Z  containerd version: 3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:43:51.4001688Z  runc version: 84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:43:51.4002758Z  init version: 
2021-07-21T16:43:51.4003571Z  Security Options:
2021-07-21T16:43:51.4004354Z   apparmor
2021-07-21T16:43:51.4005103Z   seccomp
2021-07-21T16:43:51.4006130Z    Profile: default
2021-07-21T16:43:51.4007224Z  Kernel Version: 5.8.0-1036-azure
2021-07-21T16:43:51.4008167Z  Operating System: Ubuntu 20.04.2 LTS
2021-07-21T16:43:51.4009045Z  OSType: linux
2021-07-21T16:43:51.4009863Z  Architecture: x86_64
2021-07-21T16:43:51.4010650Z  CPUs: 2
2021-07-21T16:43:51.4011397Z  Total Memory: 6.791GiB
2021-07-21T16:43:51.4012362Z  Name: fv-az127-650
2021-07-21T16:43:51.4013340Z  ID: 4YCV:OAPV:ZFSK:5PGX:G5RF:CCCV:2HES:K4BP:HHOQ:S5ET:7WTY:YQHW
2021-07-21T16:43:51.4014348Z  Docker Root Dir: /var/lib/docker
2021-07-21T16:43:51.4015201Z  Debug Mode: false
2021-07-21T16:43:51.4016057Z  Username: githubactions
2021-07-21T16:43:51.4017121Z  Registry: https://index.docker.io/v1/
2021-07-21T16:43:51.4018083Z  Labels:
2021-07-21T16:43:51.4018873Z  Experimental: false
2021-07-21T16:43:51.4019746Z  Insecure Registries:
2021-07-21T16:43:51.4020532Z   127.0.0.0/8
2021-07-21T16:43:51.4021332Z  Live Restore Enabled: false
2021-07-21T16:43:51.4021873Z 
2021-07-21T16:43:51.4022680Z ##[endgroup]
2021-07-21T16:43:51.4023588Z ##[group]Pulling binfmt Docker image
2021-07-21T16:43:51.4024646Z [command]/usr/bin/docker pull tonistiigi/binfmt:latest
2021-07-21T16:43:51.5841629Z latest: Pulling from tonistiigi/binfmt
2021-07-21T16:43:51.6611596Z a5644ca467e1: Pulling fs layer
2021-07-21T16:43:51.6612631Z 6f3748a79141: Pulling fs layer
2021-07-21T16:43:51.7500033Z 6f3748a79141: Verifying Checksum
2021-07-21T16:43:51.7503274Z 6f3748a79141: Download complete
2021-07-21T16:43:51.8385568Z a5644ca467e1: Verifying Checksum
2021-07-21T16:43:51.8396144Z a5644ca467e1: Download complete
2021-07-21T16:43:52.2516162Z a5644ca467e1: Pull complete
2021-07-21T16:43:52.5618332Z 6f3748a79141: Pull complete
2021-07-21T16:43:52.5674720Z Digest: sha256:ce4d5a2a6ac4a189047fca2d71cbd901cc7beebacf538be95fccb3aca87cb2ec
2021-07-21T16:43:52.5699459Z Status: Downloaded newer image for tonistiigi/binfmt:latest
2021-07-21T16:43:52.6037675Z docker.io/tonistiigi/binfmt:latest
2021-07-21T16:43:52.6066962Z ##[endgroup]
2021-07-21T16:43:52.6067777Z ##[group]Image info
2021-07-21T16:43:52.6087447Z [command]/usr/bin/docker image inspect tonistiigi/binfmt:latest
2021-07-21T16:43:52.6518346Z [
2021-07-21T16:43:52.6520229Z     ***
2021-07-21T16:43:52.6521720Z         "Id": "sha256:258d55b22af6c9b5d9e637ba4349db3902f6a51d00625228e553175fd2f2f0f1",
2021-07-21T16:43:52.6523218Z         "RepoTags": [
2021-07-21T16:43:52.6524152Z             "tonistiigi/binfmt:latest"
2021-07-21T16:43:52.6525027Z         ],
2021-07-21T16:43:52.6525841Z         "RepoDigests": [
2021-07-21T16:43:52.6527662Z             "tonistiigi/binfmt@sha256:ce4d5a2a6ac4a189047fca2d71cbd901cc7beebacf538be95fccb3aca87cb2ec"
2021-07-21T16:43:52.6529373Z         ],
2021-07-21T16:43:52.6530155Z         "Parent": "",
2021-07-21T16:43:52.6531217Z         "Comment": "buildkit.dockerfile.v0",
2021-07-21T16:43:52.6532914Z         "Created": "2021-06-23T15:17:50.002649445Z",
2021-07-21T16:43:52.6533851Z         "Container": "",
2021-07-21T16:43:52.6534803Z         "ContainerConfig": ***
2021-07-21T16:43:52.6535763Z             "Hostname": "",
2021-07-21T16:43:52.6536623Z             "Domainname": "",
2021-07-21T16:43:52.6537474Z             "User": "",
2021-07-21T16:43:52.6538323Z             "AttachStdin": false,
2021-07-21T16:43:52.6540320Z             "AttachStdout": false,
2021-07-21T16:43:52.6541084Z             "AttachStderr": false,
2021-07-21T16:43:52.6541748Z             "Tty": false,
2021-07-21T16:43:52.6542400Z             "OpenStdin": false,
2021-07-21T16:43:52.6543101Z             "StdinOnce": false,
2021-07-21T16:43:52.6543743Z             "Env": null,
2021-07-21T16:43:52.6544336Z             "Cmd": null,
2021-07-21T16:43:52.6544921Z             "Image": "",
2021-07-21T16:43:52.6546709Z             "Volumes": null,
2021-07-21T16:43:52.6547366Z             "WorkingDir": "",
2021-07-21T16:43:52.6548027Z             "Entrypoint": null,
2021-07-21T16:43:52.6548820Z             "OnBuild": null,
2021-07-21T16:43:52.6549463Z             "Labels": null
2021-07-21T16:43:52.6550330Z         ***,
2021-07-21T16:43:52.6550962Z         "DockerVersion": "",
2021-07-21T16:43:52.6551607Z         "Author": "",
2021-07-21T16:43:52.6552231Z         "Config": ***
2021-07-21T16:43:52.6552832Z             "Hostname": "",
2021-07-21T16:43:52.6553469Z             "Domainname": "",
2021-07-21T16:43:52.6554090Z             "User": "",
2021-07-21T16:43:52.6554725Z             "AttachStdin": false,
2021-07-21T16:43:52.6555458Z             "AttachStdout": false,
2021-07-21T16:43:52.6556200Z             "AttachStderr": false,
2021-07-21T16:43:52.6556876Z             "Tty": false,
2021-07-21T16:43:52.6557536Z             "OpenStdin": false,
2021-07-21T16:43:52.6558234Z             "StdinOnce": false,
2021-07-21T16:43:52.6558862Z             "Env": [
2021-07-21T16:43:52.6559658Z                 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
2021-07-21T16:43:52.6560637Z             ],
2021-07-21T16:43:52.6561185Z             "Cmd": null,
2021-07-21T16:43:52.6561773Z             "Image": "",
2021-07-21T16:43:52.6562398Z             "Volumes": ***
2021-07-21T16:43:52.6563342Z                 "/tmp": ***
2021-07-21T16:43:52.6564064Z             ***,
2021-07-21T16:43:52.6564663Z             "WorkingDir": "/",
2021-07-21T16:43:52.6565317Z             "Entrypoint": [
2021-07-21T16:43:52.6565971Z                 "/usr/bin/binfmt"
2021-07-21T16:43:52.6566613Z             ],
2021-07-21T16:43:52.6567191Z             "OnBuild": null,
2021-07-21T16:43:52.6567822Z             "Labels": ***
2021-07-21T16:43:52.6570216Z                 "org.opencontainers.image.created": "2021-06-23T14:20:49.955Z",
2021-07-21T16:43:52.6572284Z                 "org.opencontainers.image.description": "Cross-platform emulator collection distributed with Docker images",
2021-07-21T16:43:52.6574010Z                 "org.opencontainers.image.licenses": "",
2021-07-21T16:43:52.6575532Z                 "org.opencontainers.image.revision": "8703596e93946b9e31161c060a9ac41a8b578c3f",
2021-07-21T16:43:52.6577275Z                 "org.opencontainers.image.source": "https://github.com/tonistiigi/binfmt",
2021-07-21T16:43:52.6578769Z                 "org.opencontainers.image.title": "Binfmt",
2021-07-21T16:43:52.6580224Z                 "org.opencontainers.image.url": "https://github.com/tonistiigi/binfmt",
2021-07-21T16:43:52.6581956Z                 "org.opencontainers.image.version": "qemu-v6.0.0-12"
2021-07-21T16:43:52.6582965Z             ***
2021-07-21T16:43:52.6583501Z         ***,
2021-07-21T16:43:52.6584122Z         "Architecture": "amd64",
2021-07-21T16:43:52.6584789Z         "Os": "linux",
2021-07-21T16:43:52.6585371Z         "Size": 39053772,
2021-07-21T16:43:52.6586008Z         "VirtualSize": 39053772,
2021-07-21T16:43:52.6586703Z         "GraphDriver": ***
2021-07-21T16:43:52.6587340Z             "Data": ***
2021-07-21T16:43:52.6589090Z                 "LowerDir": "/var/lib/docker/overlay2/e18de4a5d73b3fe51458471a8debfed6539e00dc31448e33d2f71d1061ac8505/diff",
2021-07-21T16:43:52.6591355Z                 "MergedDir": "/var/lib/docker/overlay2/930ebb339996c0c150bee101cf5107c530d70a2d890df516126a63725ce92522/merged",
2021-07-21T16:43:52.6593453Z                 "UpperDir": "/var/lib/docker/overlay2/930ebb339996c0c150bee101cf5107c530d70a2d890df516126a63725ce92522/diff",
2021-07-21T16:43:52.6595496Z                 "WorkDir": "/var/lib/docker/overlay2/930ebb339996c0c150bee101cf5107c530d70a2d890df516126a63725ce92522/work"
2021-07-21T16:43:52.6596873Z             ***,
2021-07-21T16:43:52.6597484Z             "Name": "overlay2"
2021-07-21T16:43:52.6598098Z         ***,
2021-07-21T16:43:52.6598664Z         "RootFS": ***
2021-07-21T16:43:52.6599281Z             "Type": "layers",
2021-07-21T16:43:52.6599895Z             "Layers": [
2021-07-21T16:43:52.6601062Z                 "sha256:4d6ae40bf899404464e3a361f7479f663dc5e1dc03d29301b5b5d17a31242071",
2021-07-21T16:43:52.6602866Z                 "sha256:9ac1e31a51d0465876c78dd8bfd50a1880f9c58a345b237d3bf99f46f6e9d6c3"
2021-07-21T16:43:52.6604044Z             ]
2021-07-21T16:43:52.6604735Z         ***,
2021-07-21T16:43:52.6605335Z         "Metadata": ***
2021-07-21T16:43:52.6606313Z             "LastTagTime": "0001-01-01T00:00:00Z"
2021-07-21T16:43:52.6606994Z         ***
2021-07-21T16:43:52.6607554Z     ***
2021-07-21T16:43:52.6608059Z ]
2021-07-21T16:43:52.6608853Z ##[endgroup]
2021-07-21T16:43:52.6609683Z ##[group]Installing QEMU static binaries
2021-07-21T16:43:52.6611002Z [command]/usr/bin/docker run --rm --privileged tonistiigi/binfmt:latest --install all
2021-07-21T16:43:53.0924727Z installing: arm64 OK
2021-07-21T16:43:53.0926158Z installing: arm OK
2021-07-21T16:43:53.0927185Z installing: s390x OK
2021-07-21T16:43:53.0928218Z installing: ppc64le OK
2021-07-21T16:43:53.0929256Z installing: riscv64 OK
2021-07-21T16:43:53.0930329Z installing: mips64le OK
2021-07-21T16:43:53.0931258Z installing: mips64 OK
2021-07-21T16:43:53.1227277Z ***
2021-07-21T16:43:53.1228854Z   "supported": [
2021-07-21T16:43:53.1229580Z     "linux/amd64",
2021-07-21T16:43:53.1230274Z     "linux/arm64",
2021-07-21T16:43:53.1231107Z     "linux/riscv64",
2021-07-21T16:43:53.1231795Z     "linux/ppc64le",
2021-07-21T16:43:53.1232480Z     "linux/s390x",
2021-07-21T16:43:53.1233477Z     "linux/386",
2021-07-21T16:43:53.1234166Z     "linux/mips64le",
2021-07-21T16:43:53.1234855Z     "linux/mips64",
2021-07-21T16:43:53.1239091Z     "linux/arm/v7",
2021-07-21T16:43:53.1239815Z     "linux/arm/v6"
2021-07-21T16:43:53.1240431Z   ],
2021-07-21T16:43:53.1243310Z   "emulators": [
2021-07-21T16:43:53.1244041Z     "cli",
2021-07-21T16:43:53.1246947Z     "llvm-10-runtime.binfmt",
2021-07-21T16:43:53.1247997Z     "llvm-11-runtime.binfmt",
2021-07-21T16:43:53.1248994Z     "llvm-12-runtime.binfmt",
2021-07-21T16:43:53.1249730Z     "python2.7",
2021-07-21T16:43:53.1250331Z     "python3.8",
2021-07-21T16:43:53.1251097Z     "qemu-aarch64",
2021-07-21T16:43:53.1251838Z     "qemu-arm",
2021-07-21T16:43:53.1252583Z     "qemu-mips64",
2021-07-21T16:43:53.1253382Z     "qemu-mips64el",
2021-07-21T16:43:53.1254194Z     "qemu-ppc64le",
2021-07-21T16:43:53.1255225Z     "qemu-riscv64",
2021-07-21T16:43:53.1256008Z     "qemu-s390x"
2021-07-21T16:43:53.1256569Z   ]
2021-07-21T16:43:53.1257517Z ***
2021-07-21T16:43:53.2498503Z ##[endgroup]
2021-07-21T16:43:53.2500311Z ##[group]Extracting available platforms
2021-07-21T16:43:53.7767670Z linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
2021-07-21T16:43:53.7771363Z ##[endgroup]
2021-07-21T16:43:53.7926911Z ##[group]Run docker/setup-buildx-action@v1
2021-07-21T16:43:53.7927696Z with:
2021-07-21T16:43:53.7928355Z   driver: docker-container
2021-07-21T16:43:53.7929870Z   buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
2021-07-21T16:43:53.7931264Z   install: false
2021-07-21T16:43:53.7931856Z   use: true
2021-07-21T16:43:53.7932399Z env:
2021-07-21T16:43:53.7933101Z   PROJECT_ID: wileycoyote
2021-07-21T16:43:53.7933837Z ##[endgroup]
2021-07-21T16:43:53.8576508Z ##[group]Docker info
2021-07-21T16:43:53.8643491Z [command]/usr/bin/docker version
2021-07-21T16:43:53.9357804Z Client:
2021-07-21T16:43:53.9360524Z  Version:           20.10.7+azure
2021-07-21T16:43:53.9361392Z  API version:       1.41
2021-07-21T16:43:53.9362173Z  Go version:        go1.13.15
2021-07-21T16:43:53.9363247Z  Git commit:        f0df35096d5f5e6b559b42c7fde6c65a2909f7c5
2021-07-21T16:43:53.9364310Z  Built:             Mon May 31 09:40:07 2021
2021-07-21T16:43:53.9365198Z  OS/Arch:           linux/amd64
2021-07-21T16:43:53.9365997Z  Context:           default
2021-07-21T16:43:53.9366806Z  Experimental:      true
2021-07-21T16:43:53.9367351Z 
2021-07-21T16:43:53.9367996Z Server:
2021-07-21T16:43:53.9368663Z  Engine:
2021-07-21T16:43:53.9369379Z   Version:          20.10.7+azure
2021-07-21T16:43:53.9370243Z   API version:      1.41 (minimum version 1.12)
2021-07-21T16:43:53.9371143Z   Go version:       go1.13.15
2021-07-21T16:43:53.9372275Z   Git commit:       b0f5bc36fea9dfb9672e1e9b1278ebab797b9ee0
2021-07-21T16:43:53.9373411Z   Built:            Tue Jun  1 22:34:42 2021
2021-07-21T16:43:53.9374193Z   OS/Arch:          linux/amd64
2021-07-21T16:43:53.9375013Z   Experimental:     false
2021-07-21T16:43:53.9376306Z  containerd:
2021-07-21T16:43:53.9377069Z   Version:          1.4.7+azure
2021-07-21T16:43:53.9378393Z   GitCommit:        3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:43:53.9379846Z  runc:
2021-07-21T16:43:53.9381002Z   Version:          1.0.0
2021-07-21T16:43:53.9383086Z   GitCommit:        84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:43:53.9400565Z  docker-init:
2021-07-21T16:43:53.9401671Z   Version:          0.19.0
2021-07-21T16:43:53.9402310Z   GitCommit:        
2021-07-21T16:43:53.9434509Z [command]/usr/bin/docker info
2021-07-21T16:43:54.0286162Z Client:
2021-07-21T16:43:54.0287225Z  Context:    default
2021-07-21T16:43:54.0288128Z  Debug Mode: false
2021-07-21T16:43:54.0288947Z  Plugins:
2021-07-21T16:43:54.0289913Z   buildx: Build with BuildKit (Docker Inc., 0.5.1+azure)
2021-07-21T16:43:54.0290676Z 
2021-07-21T16:43:54.0291415Z Server:
2021-07-21T16:43:54.0292205Z  Containers: 0
2021-07-21T16:43:54.0293012Z   Running: 0
2021-07-21T16:43:54.0294105Z   Paused: 0
2021-07-21T16:43:54.0294883Z   Stopped: 0
2021-07-21T16:43:54.0295646Z  Images: 17
2021-07-21T16:43:54.0296481Z  Server Version: 20.10.7+azure
2021-07-21T16:43:54.0297400Z  Storage Driver: overlay2
2021-07-21T16:43:54.0298345Z   Backing Filesystem: extfs
2021-07-21T16:43:54.0299286Z   Supports d_type: true
2021-07-21T16:43:54.0300198Z   Native Overlay Diff: false
2021-07-21T16:43:54.0301091Z   userxattr: false
2021-07-21T16:43:54.0302538Z  Logging Driver: json-file
2021-07-21T16:43:54.0303496Z  Cgroup Driver: cgroupfs
2021-07-21T16:43:54.0304375Z  Cgroup Version: 1
2021-07-21T16:43:54.0306110Z  Plugins:
2021-07-21T16:43:54.0306785Z   Volume: local
2021-07-21T16:43:54.0307553Z   Network: bridge host ipvlan macvlan null overlay
2021-07-21T16:43:54.0309286Z   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2021-07-21T16:43:54.0310262Z  Swarm: inactive
2021-07-21T16:43:54.0311402Z  Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2021-07-21T16:43:54.0312584Z  Default Runtime: runc
2021-07-21T16:43:54.0313470Z  Init Binary: docker-init
2021-07-21T16:43:54.0315522Z  containerd version: 3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:43:54.0316791Z  runc version: 84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:43:54.0317936Z  init version: 
2021-07-21T16:43:54.0318594Z  Security Options:
2021-07-21T16:43:54.0319229Z   apparmor
2021-07-21T16:43:54.0319849Z   seccomp
2021-07-21T16:43:54.0320467Z    Profile: default
2021-07-21T16:43:54.0321377Z  Kernel Version: 5.8.0-1036-azure
2021-07-21T16:43:54.0322146Z  Operating System: Ubuntu 20.04.2 LTS
2021-07-21T16:43:54.0322857Z  OSType: linux
2021-07-21T16:43:54.0323506Z  Architecture: x86_64
2021-07-21T16:43:54.0324135Z  CPUs: 2
2021-07-21T16:43:54.0324730Z  Total Memory: 6.791GiB
2021-07-21T16:43:54.0325516Z  Name: fv-az127-650
2021-07-21T16:43:54.0326322Z  ID: 4YCV:OAPV:ZFSK:5PGX:G5RF:CCCV:2HES:K4BP:HHOQ:S5ET:7WTY:YQHW
2021-07-21T16:43:54.0327166Z  Docker Root Dir: /var/lib/docker
2021-07-21T16:43:54.0327869Z  Debug Mode: false
2021-07-21T16:43:54.0328568Z  Username: githubactions
2021-07-21T16:43:54.0329496Z  Registry: https://index.docker.io/v1/
2021-07-21T16:43:54.0330316Z  Labels:
2021-07-21T16:43:54.0330956Z  Experimental: false
2021-07-21T16:43:54.0331691Z  Insecure Registries:
2021-07-21T16:43:54.0332303Z   127.0.0.0/8
2021-07-21T16:43:54.0332936Z  Live Restore Enabled: false
2021-07-21T16:43:54.0333404Z 
2021-07-21T16:43:54.0334140Z ##[endgroup]
2021-07-21T16:43:54.2137952Z ##[group]Creating a new builder instance
2021-07-21T16:43:54.2204079Z [command]/usr/bin/docker buildx create --name builder-b9ae015d-df12-4df6-b545-f48f00147cfe --driver docker-container --buildkitd-flags --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --use
2021-07-21T16:43:54.3045332Z builder-b9ae015d-df12-4df6-b545-f48f00147cfe
2021-07-21T16:43:54.3084234Z ##[endgroup]
2021-07-21T16:43:54.3085268Z ##[group]Booting builder
2021-07-21T16:43:54.3119513Z [command]/usr/bin/docker buildx inspect --bootstrap --builder builder-b9ae015d-df12-4df6-b545-f48f00147cfe
2021-07-21T16:43:54.3930168Z #1 [internal] booting buildkit
2021-07-21T16:43:54.3938215Z #1 sha256:38097de2e9fcfdf1ac798b7c84f8383814dab22d41987a8fc0e313d9be6ae9a9
2021-07-21T16:43:54.5443430Z #1 pulling image moby/buildkit:buildx-stable-1
2021-07-21T16:43:57.5286595Z #1 pulling image moby/buildkit:buildx-stable-1 3.1s done
2021-07-21T16:43:57.6781946Z #1 creating container buildx_buildkit_builder-b9ae015d-df12-4df6-b545-f48f00147cfe0
2021-07-21T16:43:58.1379942Z #1 creating container buildx_buildkit_builder-b9ae015d-df12-4df6-b545-f48f00147cfe0 0.6s done
2021-07-21T16:43:58.1381974Z #1 DONE 3.7s
2021-07-21T16:43:58.3100308Z Name:   builder-b9ae015d-df12-4df6-b545-f48f00147cfe
2021-07-21T16:43:58.3105185Z Driver: docker-container
2021-07-21T16:43:58.3105763Z 
2021-07-21T16:43:58.3106387Z Nodes:
2021-07-21T16:43:58.3107674Z Name:      builder-b9ae015d-df12-4df6-b545-f48f00147cfe0
2021-07-21T16:43:58.3109420Z Endpoint:  unix:///var/run/docker.sock
2021-07-21T16:43:58.3110153Z Status:    running
2021-07-21T16:43:58.3111778Z Flags:     --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
2021-07-21T16:43:58.3113664Z Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
2021-07-21T16:43:58.3169415Z ##[endgroup]
2021-07-21T16:43:58.3225437Z ##[group]Inspect builder
2021-07-21T16:43:58.5120011Z ***
2021-07-21T16:43:58.5122440Z   "name": "builder-b9ae015d-df12-4df6-b545-f48f00147cfe",
2021-07-21T16:43:58.5124147Z   "driver": "docker-container",
2021-07-21T16:43:58.5125883Z   "node_name": "builder-b9ae015d-df12-4df6-b545-f48f00147cfe0",
2021-07-21T16:43:58.5127425Z   "node_endpoint": "unix:///var/run/docker.sock",
2021-07-21T16:43:58.5128443Z   "node_status": "running",
2021-07-21T16:43:58.5130349Z   "node_flags": "--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host",
2021-07-21T16:43:58.5132733Z   "node_platforms": "linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6"
2021-07-21T16:43:58.5136518Z ***
2021-07-21T16:43:58.5140412Z ##[endgroup]
2021-07-21T16:43:58.5142503Z ##[group]BuildKit version
2021-07-21T16:43:59.1156744Z moby/buildkit:buildx-stable-1 => buildkitd github.com/moby/buildkit v0.9.0 c8bb937807d405d92be91f06ce2629e6202ac7a9
2021-07-21T16:43:59.1158422Z ##[endgroup]
2021-07-21T16:43:59.1310085Z ##[group]Run docker/login-action@v1
2021-07-21T16:43:59.1310799Z with:
2021-07-21T16:43:59.1311381Z   registry: gcr.io
2021-07-21T16:43:59.1312024Z   username: _json_key
2021-07-21T16:43:59.1342365Z   password: ***
2021-07-21T16:43:59.1342974Z   logout: true
2021-07-21T16:43:59.1343521Z env:
2021-07-21T16:43:59.1344150Z   PROJECT_ID: wileycoyote
2021-07-21T16:43:59.1344829Z ##[endgroup]
2021-07-21T16:43:59.1909134Z Logging into gcr.io...
2021-07-21T16:43:59.3904453Z Login Succeeded!
2021-07-21T16:43:59.3982581Z ##[group]Run npm i
2021-07-21T16:43:59.3983239Z οΏ½[36;1mnpm iοΏ½[0m
2021-07-21T16:43:59.4032371Z shell: /usr/bin/bash -e ***0***
2021-07-21T16:43:59.4033016Z env:
2021-07-21T16:43:59.4033673Z   PROJECT_ID: wileycoyote
2021-07-21T16:43:59.4034347Z ##[endgroup]
2021-07-21T16:44:22.5632282Z 
2021-07-21T16:44:22.5635083Z > [email protected] postinstall /home/runner/work/wileycoyote/wileycoyote/node_modules/protobufjs
2021-07-21T16:44:22.5636726Z > node scripts/postinstall
2021-07-21T16:44:22.5637446Z 
2021-07-21T16:44:23.7450167Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
2021-07-21T16:44:23.7462086Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted ***"os":"darwin","arch":"any"*** (current: ***"os":"linux","arch":"x64"***)
2021-07-21T16:44:23.7554074Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2021-07-21T16:44:23.7556157Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted ***"os":"darwin","arch":"any"*** (current: ***"os":"linux","arch":"x64"***)
2021-07-21T16:44:23.7557188Z 
2021-07-21T16:44:23.7598824Z added 1298 packages from 608 contributors and audited 1310 packages in 23.616s
2021-07-21T16:44:24.3740547Z 
2021-07-21T16:44:24.3742034Z 86 packages are looking for funding
2021-07-21T16:44:24.3743131Z   run `npm fund` for details
2021-07-21T16:44:24.3743761Z 
2021-07-21T16:44:24.3746323Z found 2 moderate severity vulnerabilities
2021-07-21T16:44:24.3747520Z   run `npm audit fix` to fix them, or `npm audit` for details
2021-07-21T16:44:24.5575536Z ##[group]Run npm run nx affected -- --target=build --all
2021-07-21T16:44:24.5576548Z οΏ½[36;1mnpm run nx affected -- --target=build --allοΏ½[0m
2021-07-21T16:44:24.5623577Z shell: /usr/bin/bash -e ***0***
2021-07-21T16:44:24.5624222Z env:
2021-07-21T16:44:24.5624872Z   PROJECT_ID: wileycoyote
2021-07-21T16:44:24.5625992Z ##[endgroup]
2021-07-21T16:44:24.8589050Z 
2021-07-21T16:44:24.8591624Z > [email protected] nx /home/runner/work/wileycoyote/wileycoyote
2021-07-21T16:44:24.8593380Z > nx "affected" "--target=build" "--all"
2021-07-21T16:44:24.8594096Z 
2021-07-21T16:44:25.4921715Z 
2021-07-21T16:44:25.4929967Z >  NX   WARNING  Running affected:* commands with --all can result in very slow builds.
2021-07-21T16:44:25.4932375Z 
2021-07-21T16:44:25.4935310Z   --all is not meant to be used for any sizable project or to be used in CI.
2021-07-21T16:44:25.4936395Z   
2021-07-21T16:44:25.4938840Z   Learn more about checking only what is affected: https://nx.dev/latest/angular/cli/affected#affected.
2021-07-21T16:44:25.4939882Z 
2021-07-21T16:44:25.5844913Z 
2021-07-21T16:44:25.5845982Z >  NX  Running target build for 2 project(s):
2021-07-21T16:44:25.5846924Z 
2021-07-21T16:44:25.5848277Z   - platform-ingest
2021-07-21T16:44:25.5849274Z   - platform-api
2021-07-21T16:44:25.5909779Z 
2021-07-21T16:44:25.5912185Z β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
2021-07-21T16:44:25.6008406Z 
2021-07-21T16:44:25.6009542Z > nx run platform-api:build 
2021-07-21T16:44:26.7454353Z Starting type checking service...
2021-07-21T16:44:26.7459291Z Using 1 worker with 2048MB memory limit
2021-07-21T16:44:29.1299015Z Hash: οΏ½[1m51667e881fa3992e0133οΏ½[39mοΏ½[22m
2021-07-21T16:44:29.1300522Z Built at: 07/21/2021 οΏ½[1m4:44:29 PMοΏ½[39mοΏ½[22m
2021-07-21T16:44:29.1301873Z Entrypoint οΏ½[1mmainοΏ½[39mοΏ½[22m = οΏ½[1mοΏ½[32mmain.jsοΏ½[39mοΏ½[22m οΏ½[1mοΏ½[32mmain.js.mapοΏ½[39mοΏ½[22m
2021-07-21T16:44:29.1304281Z chunk ***οΏ½[1mοΏ½[33mmainοΏ½[39mοΏ½[22m*** οΏ½[1mοΏ½[32mmain.js, main.js.mapοΏ½[39mοΏ½[22m (main) 1.55 KiBοΏ½[1mοΏ½[33m [entry]οΏ½[39mοΏ½[22mοΏ½[1mοΏ½[32m [rendered]οΏ½[39mοΏ½[22m
2021-07-21T16:44:29.1448386Z 
2021-07-21T16:44:29.1450445Z > nx run platform-ingest:build 
2021-07-21T16:44:30.2814968Z Starting type checking service...
2021-07-21T16:44:30.2821535Z Using 1 worker with 2048MB memory limit
2021-07-21T16:44:33.3255573Z Hash: οΏ½[1m31cb06ccac0c37999b82οΏ½[39mοΏ½[22m
2021-07-21T16:44:33.3269433Z Built at: 07/21/2021 οΏ½[1m4:44:33 PMοΏ½[39mοΏ½[22m
2021-07-21T16:44:33.3270700Z Entrypoint οΏ½[1mmainοΏ½[39mοΏ½[22m = οΏ½[1mοΏ½[32mmain.jsοΏ½[39mοΏ½[22m οΏ½[1mοΏ½[32mmain.js.mapοΏ½[39mοΏ½[22m
2021-07-21T16:44:33.3272696Z chunk ***οΏ½[1mοΏ½[33mmainοΏ½[39mοΏ½[22m*** οΏ½[1mοΏ½[32mmain.js, main.js.mapοΏ½[39mοΏ½[22m (main) 1.98 KiBοΏ½[1mοΏ½[33m [entry]οΏ½[39mοΏ½[22mοΏ½[1mοΏ½[32m [rendered]οΏ½[39mοΏ½[22m
2021-07-21T16:44:33.3379117Z 
2021-07-21T16:44:33.3381343Z β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
2021-07-21T16:44:33.3393701Z 
2021-07-21T16:44:33.3397339Z >  NX   SUCCESS  Running target "build" succeeded
2021-07-21T16:44:33.3398081Z 
2021-07-21T16:44:33.3399252Z 
2021-07-21T16:44:33.3696070Z ##[group]Run INPUT_PUSH=true npm run nx affected -- --target=docker --all
2021-07-21T16:44:33.3697247Z οΏ½[36;1mINPUT_PUSH=true npm run nx affected -- --target=docker --allοΏ½[0m
2021-07-21T16:44:33.3750583Z shell: /usr/bin/bash -e ***0***
2021-07-21T16:44:33.3751245Z env:
2021-07-21T16:44:33.3751933Z   PROJECT_ID: wileycoyote
2021-07-21T16:44:33.3752679Z ##[endgroup]
2021-07-21T16:44:33.6068091Z 
2021-07-21T16:44:33.6071210Z > [email protected] nx /home/runner/work/wileycoyote/wileycoyote
2021-07-21T16:44:33.6073075Z > nx "affected" "--target=docker" "--all"
2021-07-21T16:44:33.6073806Z 
2021-07-21T16:44:33.9869829Z 
2021-07-21T16:44:33.9875014Z >  NX   WARNING  Running affected:* commands with --all can result in very slow builds.
2021-07-21T16:44:33.9876020Z 
2021-07-21T16:44:33.9877272Z   --all is not meant to be used for any sizable project or to be used in CI.
2021-07-21T16:44:33.9878284Z   
2021-07-21T16:44:33.9879635Z   Learn more about checking only what is affected: https://nx.dev/latest/angular/cli/affected#affected.
2021-07-21T16:44:33.9880676Z 
2021-07-21T16:44:34.0177641Z 
2021-07-21T16:44:34.0178427Z >  NX  Running target docker for 2 project(s):
2021-07-21T16:44:34.0178950Z 
2021-07-21T16:44:34.0180040Z   - platform-ingest
2021-07-21T16:44:34.0180879Z   - platform-api
2021-07-21T16:44:34.0181302Z 
2021-07-21T16:44:34.0182258Z β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
2021-07-21T16:44:34.0290705Z 
2021-07-21T16:44:34.0291998Z > nx run platform-api:docker 
2021-07-21T16:44:34.2624266Z ##[group]Docker info
2021-07-21T16:44:34.2688651Z [command]/usr/bin/docker version
2021-07-21T16:44:34.3257788Z Client:
2021-07-21T16:44:34.3263192Z  Version:           20.10.7+azure
2021-07-21T16:44:34.3263902Z  API version:       1.41
2021-07-21T16:44:34.3264561Z  Go version:        go1.13.15
2021-07-21T16:44:34.3265565Z  Git commit:        f0df35096d5f5e6b559b42c7fde6c65a2909f7c5
2021-07-21T16:44:34.3266495Z  Built:             Mon May 31 09:40:07 2021
2021-07-21T16:44:34.3267205Z  OS/Arch:           linux/amd64
2021-07-21T16:44:34.3267875Z  Context:           default
2021-07-21T16:44:34.3268764Z  Experimental:      true
2021-07-21T16:44:34.3269221Z 
2021-07-21T16:44:34.3269735Z Server:
2021-07-21T16:44:34.3270287Z  Engine:
2021-07-21T16:44:34.3270893Z   Version:          20.10.7+azure
2021-07-21T16:44:34.3271637Z   API version:      1.41 (minimum version 1.12)
2021-07-21T16:44:34.3272384Z   Go version:       go1.13.15
2021-07-21T16:44:34.3273406Z   Git commit:       b0f5bc36fea9dfb9672e1e9b1278ebab797b9ee0
2021-07-21T16:44:34.3274466Z   Built:            Tue Jun  1 22:34:42 2021
2021-07-21T16:44:34.3275138Z   OS/Arch:          linux/amd64
2021-07-21T16:44:34.3275813Z   Experimental:     false
2021-07-21T16:44:34.3276489Z  containerd:
2021-07-21T16:44:34.3277240Z   Version:          1.4.7+azure
2021-07-21T16:44:34.3278192Z   GitCommit:        3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:44:34.3279078Z  runc:
2021-07-21T16:44:34.3279655Z   Version:          1.0.0
2021-07-21T16:44:34.3280571Z   GitCommit:        84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:44:34.3282156Z  docker-init:
2021-07-21T16:44:34.3282787Z   Version:          0.19.0
2021-07-21T16:44:34.3283388Z   GitCommit:        
2021-07-21T16:44:34.3328291Z [command]/usr/bin/docker info
2021-07-21T16:44:34.4177832Z Client:
2021-07-21T16:44:34.4179080Z  Context:    default
2021-07-21T16:44:34.4179950Z  Debug Mode: false
2021-07-21T16:44:34.4180753Z  Plugins:
2021-07-21T16:44:34.4181696Z   buildx: Build with BuildKit (Docker Inc., 0.5.1+azure)
2021-07-21T16:44:34.4182435Z 
2021-07-21T16:44:34.4183134Z Server:
2021-07-21T16:44:34.4183912Z  Containers: 1
2021-07-21T16:44:34.4184683Z   Running: 1
2021-07-21T16:44:34.4185437Z   Paused: 0
2021-07-21T16:44:34.4186192Z   Stopped: 0
2021-07-21T16:44:34.4186948Z  Images: 18
2021-07-21T16:44:34.4187762Z  Server Version: 20.10.7+azure
2021-07-21T16:44:34.4188858Z  Storage Driver: overlay2
2021-07-21T16:44:34.4189862Z   Backing Filesystem: extfs
2021-07-21T16:44:34.4191119Z   Supports d_type: true
2021-07-21T16:44:34.4192046Z   Native Overlay Diff: false
2021-07-21T16:44:34.4192967Z   userxattr: false
2021-07-21T16:44:34.4194400Z  Logging Driver: json-file
2021-07-21T16:44:34.4195333Z  Cgroup Driver: cgroupfs
2021-07-21T16:44:34.4196190Z  Cgroup Version: 1
2021-07-21T16:44:34.4196982Z  Plugins:
2021-07-21T16:44:34.4197769Z   Volume: local
2021-07-21T16:44:34.4198710Z   Network: bridge host ipvlan macvlan null overlay
2021-07-21T16:44:34.4200276Z   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2021-07-21T16:44:34.4202711Z  Swarm: inactive
2021-07-21T16:44:34.4206400Z  Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2021-07-21T16:44:34.4207551Z  Default Runtime: runc
2021-07-21T16:44:34.4208445Z  Init Binary: docker-init
2021-07-21T16:44:34.4209465Z  containerd version: 3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:44:34.4210718Z  runc version: 84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:44:34.4211616Z  init version: 
2021-07-21T16:44:34.4212251Z  Security Options:
2021-07-21T16:44:34.4212873Z   apparmor
2021-07-21T16:44:34.4213445Z   seccomp
2021-07-21T16:44:34.4214047Z    Profile: default
2021-07-21T16:44:34.4214903Z  Kernel Version: 5.8.0-1036-azure
2021-07-21T16:44:34.4215652Z  Operating System: Ubuntu 20.04.2 LTS
2021-07-21T16:44:34.4216512Z  OSType: linux
2021-07-21T16:44:34.4217134Z  Architecture: x86_64
2021-07-21T16:44:34.4217744Z  CPUs: 2
2021-07-21T16:44:34.4218329Z  Total Memory: 6.791GiB
2021-07-21T16:44:34.4219132Z  Name: fv-az127-650
2021-07-21T16:44:34.4219929Z  ID: 4YCV:OAPV:ZFSK:5PGX:G5RF:CCCV:2HES:K4BP:HHOQ:S5ET:7WTY:YQHW
2021-07-21T16:44:34.4220767Z  Docker Root Dir: /var/lib/docker
2021-07-21T16:44:34.4221448Z  Debug Mode: false
2021-07-21T16:44:34.4222133Z  Username: githubactions
2021-07-21T16:44:34.4223048Z  Registry: https://index.docker.io/v1/
2021-07-21T16:44:34.4223838Z  Labels:
2021-07-21T16:44:34.4224459Z  Experimental: false
2021-07-21T16:44:34.4225167Z  Insecure Registries:
2021-07-21T16:44:34.4225783Z   127.0.0.0/8
2021-07-21T16:44:34.4226402Z  Live Restore Enabled: false
2021-07-21T16:44:34.4226842Z 
2021-07-21T16:44:34.4241846Z ##[endgroup]
2021-07-21T16:44:34.6123740Z Parameter token or opts.auth is required
2021-07-21T16:44:34.6219896Z 
2021-07-21T16:44:34.6223190Z > nx run platform-ingest:docker 
2021-07-21T16:44:34.8561195Z ##[group]Docker info
2021-07-21T16:44:34.8623795Z [command]/usr/bin/docker version
2021-07-21T16:44:34.9219350Z Client:
2021-07-21T16:44:34.9223039Z  Version:           20.10.7+azure
2021-07-21T16:44:34.9223925Z  API version:       1.41
2021-07-21T16:44:34.9224775Z  Go version:        go1.13.15
2021-07-21T16:44:34.9225923Z  Git commit:        f0df35096d5f5e6b559b42c7fde6c65a2909f7c5
2021-07-21T16:44:34.9227126Z  Built:             Mon May 31 09:40:07 2021
2021-07-21T16:44:34.9227990Z  OS/Arch:           linux/amd64
2021-07-21T16:44:34.9229072Z  Context:           default
2021-07-21T16:44:34.9229959Z  Experimental:      true
2021-07-21T16:44:34.9230599Z 
2021-07-21T16:44:34.9231326Z Server:
2021-07-21T16:44:34.9232065Z  Engine:
2021-07-21T16:44:34.9232863Z   Version:          20.10.7+azure
2021-07-21T16:44:34.9233794Z   API version:      1.41 (minimum version 1.12)
2021-07-21T16:44:34.9234714Z   Go version:       go1.13.15
2021-07-21T16:44:34.9236718Z   Git commit:       b0f5bc36fea9dfb9672e1e9b1278ebab797b9ee0
2021-07-21T16:44:34.9238004Z   Built:            Tue Jun  1 22:34:42 2021
2021-07-21T16:44:34.9238868Z   OS/Arch:          linux/amd64
2021-07-21T16:44:34.9239750Z   Experimental:     false
2021-07-21T16:44:34.9240617Z  containerd:
2021-07-21T16:44:34.9241417Z   Version:          1.4.7+azure
2021-07-21T16:44:34.9242597Z   GitCommit:        3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:44:34.9243669Z  runc:
2021-07-21T16:44:34.9244425Z   Version:          1.0.0
2021-07-21T16:44:34.9246558Z   GitCommit:        84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:44:34.9248235Z  docker-init:
2021-07-21T16:44:34.9249306Z   Version:          0.19.0
2021-07-21T16:44:34.9250074Z   GitCommit:        
2021-07-21T16:44:34.9284182Z [command]/usr/bin/docker info
2021-07-21T16:44:35.0070414Z Client:
2021-07-21T16:44:35.0103733Z  Context:    default
2021-07-21T16:44:35.0104677Z  Debug Mode: false
2021-07-21T16:44:35.0105428Z  Plugins:
2021-07-21T16:44:35.0106556Z   buildx: Build with BuildKit (Docker Inc., 0.5.1+azure)
2021-07-21T16:44:35.0107290Z 
2021-07-21T16:44:35.0107939Z Server:
2021-07-21T16:44:35.0108989Z  Containers: 1
2021-07-21T16:44:35.0109722Z   Running: 1
2021-07-21T16:44:35.0110391Z   Paused: 0
2021-07-21T16:44:35.0111281Z   Stopped: 0
2021-07-21T16:44:35.0111983Z  Images: 18
2021-07-21T16:44:35.0112728Z  Server Version: 20.10.7+azure
2021-07-21T16:44:35.0113778Z  Storage Driver: overlay2
2021-07-21T16:44:35.0114643Z   Backing Filesystem: extfs
2021-07-21T16:44:35.0115473Z   Supports d_type: true
2021-07-21T16:44:35.0116294Z   Native Overlay Diff: false
2021-07-21T16:44:35.0117094Z   userxattr: false
2021-07-21T16:44:35.0118499Z  Logging Driver: json-file
2021-07-21T16:44:35.0119354Z  Cgroup Driver: cgroupfs
2021-07-21T16:44:35.0120145Z  Cgroup Version: 1
2021-07-21T16:44:35.0120870Z  Plugins:
2021-07-21T16:44:35.0121553Z   Volume: local
2021-07-21T16:44:35.0122418Z   Network: bridge host ipvlan macvlan null overlay
2021-07-21T16:44:35.0123890Z   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
2021-07-21T16:44:35.0125281Z  Swarm: inactive
2021-07-21T16:44:35.0126590Z  Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
2021-07-21T16:44:35.0128681Z  Default Runtime: runc
2021-07-21T16:44:35.0129594Z  Init Binary: docker-init
2021-07-21T16:44:35.0130624Z  containerd version: 3194fb46e8311ae0eeae5a7a5843573adfebb16d
2021-07-21T16:44:35.0131880Z  runc version: 84113eef6fc27af1b01b3181f31bbaf708715301
2021-07-21T16:44:35.0132783Z  init version: 
2021-07-21T16:44:35.0133416Z  Security Options:
2021-07-21T16:44:35.0134038Z   apparmor
2021-07-21T16:44:35.0134592Z   seccomp
2021-07-21T16:44:35.0135207Z    Profile: default
2021-07-21T16:44:35.0136068Z  Kernel Version: 5.8.0-1036-azure
2021-07-21T16:44:35.0136817Z  Operating System: Ubuntu 20.04.2 LTS
2021-07-21T16:44:35.0137518Z  OSType: linux
2021-07-21T16:44:35.0138159Z  Architecture: x86_64
2021-07-21T16:44:35.0138780Z  CPUs: 2
2021-07-21T16:44:35.0139366Z  Total Memory: 6.791GiB
2021-07-21T16:44:35.0140145Z  Name: fv-az127-650
2021-07-21T16:44:35.0140936Z  ID: 4YCV:OAPV:ZFSK:5PGX:G5RF:CCCV:2HES:K4BP:HHOQ:S5ET:7WTY:YQHW
2021-07-21T16:44:35.0141768Z  Docker Root Dir: /var/lib/docker
2021-07-21T16:44:35.0142448Z  Debug Mode: false
2021-07-21T16:44:35.0143134Z  Username: githubactions
2021-07-21T16:44:35.0144053Z  Registry: https://index.docker.io/v1/
2021-07-21T16:44:35.0144862Z  Labels:
2021-07-21T16:44:35.0145489Z  Experimental: false
2021-07-21T16:44:35.0146180Z  Insecure Registries:
2021-07-21T16:44:35.0146797Z   127.0.0.0/8
2021-07-21T16:44:35.0147418Z  Live Restore Enabled: false
2021-07-21T16:44:35.0147877Z 
2021-07-21T16:44:35.0148960Z ##[endgroup]
2021-07-21T16:44:35.1860863Z Parameter token or opts.auth is required
2021-07-21T16:44:35.1930685Z 
2021-07-21T16:44:35.1933980Z β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
2021-07-21T16:44:35.1934698Z 
2021-07-21T16:44:35.1935540Z >  NX   ERROR  Running target "docker" failed
2021-07-21T16:44:35.1936159Z 
2021-07-21T16:44:35.1936822Z   Failed tasks:
2021-07-21T16:44:35.1937595Z   
2021-07-21T16:44:35.1938517Z   - platform-api:docker
2021-07-21T16:44:35.1939905Z   - platform-ingest:docker
2021-07-21T16:44:35.1940708Z   
2021-07-21T16:44:35.1941798Z   You can isolate the above projects by passing: --only-failed
2021-07-21T16:44:35.1943250Z 
2021-07-21T16:44:35.2038680Z npm ERR! code ELIFECYCLE
2021-07-21T16:44:35.2042743Z npm ERR! errno 1
2021-07-21T16:44:35.2103158Z npm ERR! [email protected] nx: `nx "affected" "--target=docker" "--all"`
2021-07-21T16:44:35.2105632Z npm ERR! Exit status 1
2021-07-21T16:44:35.2107994Z npm ERR! 
2021-07-21T16:44:35.2118063Z npm ERR! Failed at the [email protected] nx script.
2021-07-21T16:44:35.2123570Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-07-21T16:44:35.2191434Z 
2021-07-21T16:44:35.2194274Z npm ERR! A complete log of this run can be found in:
2021-07-21T16:44:35.2197003Z npm ERR!     /home/runner/.npm/_logs/2021-07-21T16_44_35_213Z-debug.log
2021-07-21T16:44:35.2279978Z ##[error]Process completed with exit code 1.
2021-07-21T16:44:35.2374189Z Post job cleanup.
2021-07-21T16:44:35.2933611Z [command]/usr/bin/docker logout gcr.io
2021-07-21T16:44:35.3500765Z Removing login credentials for gcr.io
2021-07-21T16:44:35.3682339Z Post job cleanup.
2021-07-21T16:44:35.4348461Z ##[group]Removing builder
2021-07-21T16:44:35.4403716Z [command]/usr/bin/docker buildx rm builder-b9ae015d-df12-4df6-b545-f48f00147cfe
2021-07-21T16:44:37.5321676Z ##[endgroup]
2021-07-21T16:44:37.5475261Z Post job cleanup.
2021-07-21T16:44:37.6673402Z [command]/usr/bin/git version
2021-07-21T16:44:37.6741234Z git version 2.32.0
2021-07-21T16:44:37.6773682Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-07-21T16:44:37.6813838Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-07-21T16:44:37.7110851Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-07-21T16:44:37.7136076Z http.https://github.com/.extraheader
2021-07-21T16:44:37.7146132Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-07-21T16:44:37.7187329Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-07-21T16:44:37.7516405Z Cleaning up orphan processes

Include chalk dependency in package.json

Nx-docker and nx-core seem to use chalk dependency, but they only support v4, not v5 (ES module version) and it is not specified in their package json files. So if the root project has chalk v5 installed, it can cause an error like this:

$ nx docker my-app

> nx run my-app:docker


 >  NX   require() of ES Module /home/pm/my-app/node_modules/chalk/source/index.js from /home/pm/my-app/node_modules/@nx-tools/core/src/lib/logging.js not supported.

   Instead change the require of index.js in /home/pm/my-app/node_modules/@nx-tools/core/src/lib/logging.js to a dynamic import() which is available in all CommonJS modules.
   Pass --verbose to see the stacktrace.


 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
 >  NX   Ran target docker for project my-app (287ms)
 
    βœ–    1/1 failed
    βœ”    0/1 succeeded [0 read from cache]

For example, here is a snippet of the package.json of nx-docker v3.0.0:

  "dependencies": {
    "@nx-tools/core": "^3.0.0",
    "@swc/helpers": "^0.3.17",
    "csv-parse": "^4.16.3",
    "semver": "^7.3.7",
    "tmp": "^0.2.1"
  },
  "optionalDependencies": {
    "@nx-tools/docker-metadata": "^3.0.0"
  },
  "peerDependencies": {
    "dotenv": ">=10.0.0",
    "tslib": "^2.1.0"
  },

How to fix:

Make sure chalk v4 is specified in the built package json files eg:

  "dependencies": {
    "@nx-tools/core": "^3.0.0",
    "@swc/helpers": "^0.3.17",
    "csv-parse": "^4.16.3",
    "semver": "^7.3.7",
    "tmp": "^0.2.1"
+   "chalk": "4"
  },

Since I am using Yarn Berry in the repo where I had this error, I was able to fix it by using the packageExtensions option in .yarnrc.yml to insert the dependency:

# .yarnrc.yml
packageExtensions:
  '@nx-tools/nx-docker@*':
    dependencies:
      chalk: '^4'
  '@nx-tools/core@*':
    dependencies:
      chalk: '^4'

Note that I am using yarn berry in node-modules mode, which is basically an npm compatibility mode. It is not the (more controversial) yarn PnP mode. To the best of my knowledge this issue could affect npm, pnpm and yarn equally.

Any way to use docker digest in subsequent steps?

I cannot seem to figure out how to capture the digest of the docker image. The tooling is working great but I need the digest to perform a release and unable to capture in github actions. Any tips here?

nx-docker: can't import module after moving to swc

Hi! After upgrading to version 3.0.0, my custom executor that runs nx-docker internally was broken:

My code:

import { run } from '@nx-tools/nx-docker'

Error:

(0 , _nxDocker).run is not a function

Debugging:

import { run } from '@nx-tools/nx-docker'
console.log(run)
> { run: [AsyncFunction: run], default: [AsyncFunction: run] }

Cache export feature not supported

I'm new to NX and I've been trying to define a github action to create and publish a docker image using the nx-docker tool.

I'm using the local cache option and I'm receiving the following error when using the nx-docker target from my Github action .yml file:
error: cache export feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")

When I'm using the docker-build-push action it works fine with my configuration.

My action job definition looks like this:

publish-dev-image:
    name: Publish Dev Image
    runs-on: "ubuntu-latest"

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
      - name: Cache Docker layers
        uses: actions/cache@v2
        with:
          path: /tmp/.buildx-cache
          key: ${{ runner.os }}-buildx-${{ github.sha }}
          restore-keys: |
            ${{ runner.os }}-buildx-
      - name: Login to DockerHub
        uses: azure/docker-login@v1
        with:
          login-server: ${{ env.DOCKER_DEV_REGISTRY }}
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: '16'
          cache: 'yarn'
      - name: Install dependencies
        run: yarn install
      - name: Build code
        run: yarn nx run api:docker
        env:
          INPUT_TAGS: ${env.TAG}
          INPUT_CACHE_FROM: type=local,src=/tmp/.buildx-cache
          INPUT_CACHE_TO: type=local,dest=/tmp/.buildx-cache-new,mode=max
          INPUT_PUSH: true
      - name: Move cache
        run: |
          rm -rf /tmp/.buildx-cache
          mv /tmp/.buildx-cache-new /tmp/.buildx-cache

the docker executor in the project.json file is defined as follows:

"docker": {
      "executor": "@nx-tools/nx-docker:build"
    }

Am I doing something wrong?
Please tell me of you need me to provide additional data

Support environment variables for all builder options

(This only applies to nx-docker)

When using nx, the affected sub-command comes in quite handy for CI environments, where only changed projects need to be built. The current nx-docker workflow requires explicit project runs when using e.g. the INPUT_TAGS environment variable, as all projects will be built with the same tags.

As nx-docker only creates a docker-command with the provided options in the workspace.json, the simplest option would be to wrap the resulting command in a sh -c "<command>" to substitute used environment variables in the workspace.json. This wouldn't change the original behavior of the builder and will only add support for environment variables.

INPUT_BUILD_ARGS parsing error

Dockerfile arguments:

ARG NODE_VERSION=undefined
ARG NGINX_VERSION=undefined

Command:
INPUT_BUILD_ARGS=NODE_VERSION=14.17.5,NGINX_VERSION=1.21.3 npx nx run angular:docker

Error:
buildx call failed with: error: failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "node:14.17.5,NGINX_VERSION=1.21.3": invalid reference format

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.