小编Sol*_*lie的帖子

在docker容器中"groupadd:Command not found",即使我安装它并且我是root用户

我有下面想要构建的Dockerfile.它基本上只是普通的jboss/wildfly基本图像,但是用amazonlinux而不是centOS构建.

构建错误出现"groupadd:Command not found"行

发生这种情况后,我第一次添加"epel"仓库,并尝试手动安装,如您在第一个RUN指令中看到的那样.我已经阅读了几个论坛,似乎有时当你没有以root用户身份运行时,你会收到该错误消息.我做了一个"whoami",我以root身份运行,所以它应该不是问题.

任何人都知道我为什么还会收到错误?

FROM amazonlinux:2017.03

# Install packages necessary to run EAP
RUN yum-config-manager --enable epel && yum update -y && yum -y install      groupadd xmlstarlet saxon augeas bsdtar unzip && yum clean all

# Create a user and group used to launch processes
# The user ID 1000 is the default for the first "regular" user on Fedora/RHEL,
# so there is a high chance that this ID will be equal to the current user
# …
Run Code Online (Sandbox Code Playgroud)

docker amazon-linux

7
推荐指数
1
解决办法
5898
查看次数

AWS Lambda-如何在我的函数中获取libfontconfig

我的功能代码需要libfontconfig才能正常工作。这是一个节点函数,可从html生成pdf。pdf会生成所有内容,这里和那里的单词中只有随机空格。

我已经做了几乎所有的尝试,甚至我自己也在运行的AmazonLinux AMI Lambda上构建了phantom.js。我就是无法正常工作。

有什么办法可以将libfontconfig与我的函数代码一起打包,然后告诉Lambda将其放在需要的地方?或以某种方式将phantom.js指向我包含的libfontconfig?

我花了超过2天的时间试图使此功能正常运行,有人可以让我摆脱这个兔子洞吗?

编辑

我对Linux不太了解,所以请提供有关在哪里可以找到东西的详细步骤,等等。

node.js phantomjs aws-lambda

5
推荐指数
0
解决办法
258
查看次数

标签 统计

amazon-linux ×1

aws-lambda ×1

docker ×1

node.js ×1

phantomjs ×1