GithubHelp home page GithubHelp logo

aws-lambda-xvfb's People

Contributors

nisaacson 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

Watchers

 avatar  avatar  avatar  avatar

aws-lambda-xvfb's Issues

Any chance of a Lambda Layer

I would really really appreciate if someone could make a lambda layer for this. I have been struggling to figure it out for so long.

auth credentials error trying to build docker file

Hey there, I tried following the instructions, setup my own ecr registry and logged in, then tried to build the docker file but get:

➜  aws-lambda-xvfb git:(master) ✗ docker build -t aws-lambda-xvfb .
Sending build context to Docker daemon  113.9MB
Step 1/16 : FROM 137112412989.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest
Get https://137112412989.dkr.ecr.us-west-2.amazonaws.com/v2/amazonlinux/manifests/latest: 
no basic auth credentials

I'm guessing because the dockerfile is trying to pull from a private repo base image?

Error building docker file (sdksyms.c:315:15: error: expected expression before ',' token)

The following error occurs when running "docker build -t aws-lambda-xvfb .". Any ideas?

In file included from sdksyms.c:263:0:
../../include/dixfontstubs.h:43:22: warning: redundant redeclaration of 'StoreFontClientFont' [-Wredundant-decls]
 extern _X_EXPORT int StoreFontClientFont(FontPtr pfont, Font id);
                      ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/X11/fonts/fontstruct.h:295:0,
                 from ../../include/dixfont.h:30,
                 from sdksyms.c:261:
/usr/include/X11/fonts/fontproto.h:61:12: note: previous declaration of 'StoreFontClientFont' was here
 extern int StoreFontClientFont ( FontPtr pfont, Font id );
            ^~~~~~~~~~~~~~~~~~~
sdksyms.c:315:15: error: expected expression before ',' token
     (void *) &,                                                  /* ../../include/os.h:96 */
               ^
make[4]: *** [sdksyms.o] Error 1
make[4]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/app/xorg-server-1.15.0/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/app/xorg-server-1.15.0/hw'
make: *** [all-recursive] Error 1
The command '/bin/sh -c wget https://www.x.org/archive/individual/xserver/xorg-server-1.15.0.tar.gz &&   tar -xzf xorg-server-1.15.0.tar.gz &&   cd /app/xorg-server-1.15.0 &&   ./configure     --prefix=/usr/local     --with-xkb-path=/var/task/xkb     --with-xkb-output=/tmp     --with-xkb-bin-directory=/var/task/bin &&   make && make install' returned a non-zero code: 2

Source code for compiled Xvfb?

Hello,

Would you be able to post the source code you used for compiling Xvfb to work in chrome? I was looking to rewrite some of the paths you used to allow it to run in the /tmp directory.

Error running docker build command

hi,

I'm trying to build the docker, I've removed the 137112412989.dkr.ecr.us-west-2.amazonaws.com in the dockerfile and ran "docker build -t aws-lambda-xvfb ."
Build failed with the following error:
The command '/bin/sh -c wget https://www.x.org/archive/individual/xserver/xorg-server-1.15.0.tar.gz && tar -xzf xorg-server-1.15.0.tar.gz && cd /app/xorg-server-1.15.0 && ./configure --prefix=/usr/local --with-xkb-path=/var/task/xkb --with-xkb-output=/tmp --with-xkb-bin-directory=/var/task/bin && make && make install' returned a non-zero code: 2

How to ensure Xvfb is actually running?

Hi,

I followed you're tutorial and all makes sense, however, is there a way to ensure Xvfb is running and also can exertion be loaded into this if election is built from chrome?

Using compiled binary in example

Hi Noah, I tried to copy the example directory to an amazon linux instance in preparation for using xfvb in lambda. When I run xfvb I get the following error about xkb. I do see there is an XKB directory, perhaps it just can't find it? Thanks for your help!

_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/misc/
[dix] Could not init font path element ${prefix}/share/fonts/X11/misc/, removing from list!
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/TTF/
[dix] Could not init font path element ${prefix}/share/fonts/X11/TTF/, removing from list!
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/OTF/
[dix] Could not init font path element ${prefix}/share/fonts/X11/OTF/, removing from list!
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/Type1/
[dix] Could not init font path element ${prefix}/share/fonts/X11/Type1/, removing from list!
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/100dpi/
[dix] Could not init font path element ${prefix}/share/fonts/X11/100dpi/, removing from list!
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/75dpi/
[dix] Could not init font path element ${prefix}/share/fonts/X11/75dpi/, removing from list!
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE)
Fatal server error:
(EE) Failed to activate core devices.(EE)

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.