nisaacson / aws-lambda-xvfb Goto Github PK
View Code? Open in Web Editor NEWbuilds Xvfb binary to run on AWS lambda
builds Xvfb binary to run on AWS lambda
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.
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?
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
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.
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
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?
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.