1

我在 aws eks 集群中配置了 deis 工作流。之后创建 deis 应用程序并部署在 deis 本地存储库中,

git push test test:master

部署时,会执行 docker 文件。这是我的码头文件

FROM mhart/alpine-node:12
#FROM ubuntu:18.04

ARG SOURCE_VERSION=na
ENV SOURCE_VERSION=$SOURCE_VERSION

RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/v3.9  --update bash && rm -rf /var/cache/apk/*
#apt-get update &&\
#apt-get install -y make gcc wget
WORKDIR /app
ADD . .

RUN npm install
EXPOSE 3200

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

这会导致错误,例如,

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: temporary error (try again later)

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/community: temporary error (try again later)

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community: No such file or directory
ERROR: unable to select packages:
  bash (no such package):
    required by: world[bash]

The command '/bin/sh -c apk add --update bash && rm -rf /var/cache/apk/*' returned a non-zero code: 1

remote: 2021-11-15 13:30:22.569253 I | Error running git receive hook [Build pod exited with code 1, stopping build]

To ssh://deis-builder.app-test.paceup.io:2222/pu-api-gateway.git
 ! [remote rejected] test -> master (pre-receive hook declined)

error: failed to push some refs to 'ssh://git@deis-builder.app-test.paceup.io:2222/pu-api-gateway.git' 

我对 docker、deis 和 eks 完全陌生。如果有人可以提供帮助,将不胜感激

4

1 回答 1

0

最后找到答案是我们在amazon linux中配置了节点组设置,它不支持这种部署。我们为 eks 优化的 ubuntu 更改了节点组,并使用 docker 部署了应用程序并且工作正常。

于 2021-12-30T07:04:32.717 回答