Git Product home page Git Product logo

docker-netlify-cli's Introduction

docker-netlify-cli's People

Contributors

dependabot[bot] avatar williamjacksn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-netlify-cli's Issues

Parse json

Hello,

Considering netlify api command which return json data, could we add jq package to the docker image please?

Thanks to jq we could run smart listSiteDeploys command, for exemple:

netlify api listSiteDeploys --data '{"site_id": "'$NETLIFY_SITE_ID'"}' | jq -r '.[] | select(.state == "ready").id'

wdyt?

Suggested solution:

RUN apk update && apk add jq

Unable to use the image due to permission denied error.

command used to run below
tried with sudo and without

sudo docker container run -it -e NETLIFY_AUTH_TOKEN=xxxxxxREDACTEDxxxxxxx
MIxm4 -v /home/projects/al/Ai/frontend:/project williamjackson/netlify
-cli deploy
This folder isn't linked to a site yet
? What would you like to do? Link this directory to an existing site
Error: EACCES: permission denied, open '/project/.gitignore'
Code: EACCES

Using netlify dev --live with the container

Hi @williamjacksn !

First, thanks for the work you've done here at making and keeping this container up-to-date ๐Ÿ™‚

I'm trying to get the netlify dev --live command working with the container.

netlify dev works just fine, but when adding the --live flag, it works but if I stop changing the code for a couple of minutes then it suddenly stops with this error

ERRO[0152] Failed to convert http response to outgoing response  error="unexpected EOF" request_id=xxxx
ERRO[0152] Error in http stream error="unexpected EOF"

When running the CLI on my host machine, it works fine even with --live.

Have you ever tried this out or got this error before ?

Update to latest netlify-cli

Seems like docker-netlify-cli has fallen behind netlify-cli which now is at version 13.2.2 and may solve issues reported in #483.

Bundle edge functions on Mac M1

Thank you for providing this docker image.

However, using netlify-cli (13.1.1) in a docker container on Mac M1 fails when attempting to build or deploy with edge functions.

It might have to do with Deno not having a build for alpine or aarch64 linux. However, I have been unable to resolve or work around the issue - declaring linux/amd64 as platform does for example not make a difference.

With the hope that somebody else has relevant insight, here is a repo that can be used to replicate the problem:

https://github.com/njordhov/docker-netlify-cli-example

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.