【问题标题】:Running Meteor.js. What it means "running first time"?运行 Meteor.js。 “第一次跑步”是什么意思?
【发布时间】:2018-08-15 16:47:01
【问题描述】:

我创建了一个 Dockerfile 用于创建 docker 容器,该容器可用于使用 mup 部署 Meteor 应用程序。

FROM node:8.11.3-stretch
MAINTAINER Pavan Kumar

RUN npm install npm@latest -g
RUN npm install -g mup

RUN curl https://install.meteor.com/ | sh
RUN export METEOR_ALLOW_SUPERUSER=true

RUN adduser --disabled-password --gecos '' docker_meteor
USER docker_meteor

现在我使用上面的 docker 镜像在 bitbucket 管道中部署到我的服务器

pipelines:
  branches:
    release:
      - step:
          script:
            - npm install
            - mkdir .deploy
            - cd .deploy
            - echo $MUP_JS  > mup.js
            - echo $SETTINGS_JSON > settings.json
            - mup deploy

现在问题出现在最后一行,即 mup deploy,我收到以下消息。

This is your first time using Meteor!
Installing a Meteor distribution in your home directory.
Downloading Meteor distribution

下载 Meteor 需要很多时间。所以我想知道。

  1. Downloading Meteor distribution 是什么意思,而我已经在 Docker 容器中安装了 Meteor?
  2. 我应该在 Dockerfile 中做什么,以便创建 docker 映像并使用所有 Meteor 分发所需的运行 mup deploy

【问题讨论】:

  • 是不是因为为root用户安装了meteor并且管道以docker_meteor运行?我最终将流星安装也放入管道缓存中,以用于包之类的东西,这也可能涵盖安装部分

标签: docker meteor mup


【解决方案1】:

我不使用mup,但如果我不得不猜测,我会说必须在管道脚本中安装meteor。 dockerfile 会在 docker 映像中安装流星,但 mup 可能需要流星才能运行 docker 映像(以构建它)。

【讨论】:

    猜你喜欢
    • 2018-07-22
    • 2021-09-10
    • 2010-11-08
    • 2011-10-12
    • 2013-05-07
    • 2018-04-17
    • 2020-08-31
    • 2013-11-27
    相关资源
    最近更新 更多