草庐IT

docker - meteor-up (mup) 新的 docker 镜像

coder 2023-05-28 原文

我的应用程序需要 graphicsmagick 和 phantomjs 才能使 seo 工作

  1. 我收到一个错误:cfs:graphicsmagick 在系统上找不到“graphicsMagic”或“imageMagic”(正常情况下默认没有安装在图像中)
  2. view-source: http://localhost/?_escaped_fragment_= 有一个空的主体(phantomjs 安装在图像中,如 mup 文档中所述,我安装了包 jazeee:spiderable-longer-timeout)

我的问题是:如何创建部署时默认使用的 docker 镜像?有人可以指点我的教程吗?

回复评论:命令是mup deploy,镜像是abernix/meteord:node-8.4.0-base

谢谢。迈克尔。

[
    {
        "Id": "sha256:b0d5fbc89b76a35554f29a4e04f0289f06fd7175d6960bb0a0b275397f191c35",
        "RepoTags": [
            "abernix/meteord:node-8.4.0-base"
        ],
        "RepoDigests": [
            "abernix/meteord@sha256:04f44cf999da383d11de77027ced8b70818222c9890a405ce10803af3ee5a642"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2017-08-23T18:48:11.664860884Z",
        "Container": "7fbdb832f87c1324dcd77a729109e91e2550b404aeeb28212450af870b882e6c",
        "ContainerConfig": {
            "Hostname": "e24d0b5cccc1",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "METEORD_DIR=/opt/meteord",
                "NODE_VERSION=8.4.0"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "ENTRYPOINT [\"/bin/sh\" \"-c\" \"bash $METEORD_DIR/run_app.sh\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:5c4d00e6be5abdd7b8f4b7aba3a362d7b2591ec5293ebcf10e3bff0efb0a46be",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "/bin/sh",
                "-c",
                "bash $METEORD_DIR/run_app.sh"
            ],
            "OnBuild": [
                "ENV NODE_VERSION ${NODE_VERSION:-8.4.0}"
            ],
            "Labels": {}
        },
        "DockerVersion": "17.06.1-ce",
        "Author": "Jesse Rosenberger",
        "Config": {
            "Hostname": "e24d0b5cccc1",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "80/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "METEORD_DIR=/opt/meteord",
                "NODE_VERSION=8.4.0"
            ],
            "Cmd": null,
            "ArgsEscaped": true,
            "Image": "sha256:5c4d00e6be5abdd7b8f4b7aba3a362d7b2591ec5293ebcf10e3bff0efb0a46be",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "/bin/sh",
                "-c",
                "bash $METEORD_DIR/run_app.sh"
            ],
            "OnBuild": [
                "ENV NODE_VERSION ${NODE_VERSION:-8.4.0}"
            ],
            "Labels": {}
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 518967437,
        "VirtualSize": 518967437,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/3b90dee1c2f1b452fdbbd52d38d953632229766e0f43a72025236fe06534567b/diff:/var/lib/docker/overlay2/a2c2eb08d869f115ee4dce234fd7d9fb0338b3999df8cfa49b99add4bf2242b1/diff:/var/lib/docker/overlay2/40439c8ba9c051021dfcbd4a3ea69894beb6b77c5373b6ca690a1249e689948a/diff:/var/lib/docker/overlay2/3641b46e6371ea2dc087aa3f24ff9c3724618bf765c2fe343e42b50163e3d04a/diff:/var/lib/docker/overlay2/075e92357262b64b7b3c7d9db54d7c970656aca862b416fa082cb78144fc8cbf/diff",
                "MergedDir": "/var/lib/docker/overlay2/b8c960a4e387d6692f5ac97d1a7f6f3fed85ac769979df2cda9a93b91fffab86/merged",
                "UpperDir": "/var/lib/docker/overlay2/b8c960a4e387d6692f5ac97d1a7f6f3fed85ac769979df2cda9a93b91fffab86/diff",
                "WorkDir": "/var/lib/docker/overlay2/b8c960a4e387d6692f5ac97d1a7f6f3fed85ac769979df2cda9a93b91fffab86/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:2c40c66f7667aefbb18f7070cf52fae7abbe9b66e49b4e1fd740544e7ceaebdc",
                "sha256:7dc6443839b3ab4fcf2063a8d36c5549a7df86a6fac434c8ce968e0453f2ad42",
                "sha256:31fe6195ead3d1d14e939bc5363b4fa5ebbd88668244fb9137506f64bf51a72f",
                "sha256:bdb4bcc9b8180650936d7a5b1e92b775bff15f49b5e91e0f933f151639008383",
                "sha256:7574e764176dccf3421dda07f650b78fce4ce0df96ea56f7042b4a60957fb9de",
                "sha256:221a2e728abd8c51aab76a7a886c77c096e9eb9f8da58d83c2c90be94983d307"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

最佳答案

我将这个 docker 的图像用于 graphikcsmagick

docker: { image: 'appworkshop/meteord-graphicsmagick-pdftk-node8:node-8.8.1-base', },

来源:https://hub.docker.com/r/appworkshop/meteord-graphicsmagick-pdftk-node8/

并且 id 使用服务 https://prerender.io有了这个包

dferber:prerender

因为 SEO 导致可蜘蛛被弃用

https://github.com/meteor/meteor/issues/8661#issuecomment-298967451

PS:你可以把这些设置放在mup中,把文件保存在镜像之外,避免每次重新部署时丢失

volumes: { '/opt/exemple_path_medias':'/opt/exemple_path_medias' },

关于docker - meteor-up (mup) 新的 docker 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47651328/

有关docker - meteor-up (mup) 新的 docker 镜像的更多相关文章

  1. ruby - 使用 Vim Rails,您可以创建一个新的迁移文件并一次性打开它吗? - 2

    使用带有Rails插件的vim,您可以创建一个迁移文件,然后一次性打开该文件吗?textmate也可以这样吗? 最佳答案 你可以使用rails.vim然后做类似的事情::Rgeneratemigratonadd_foo_to_bar插件将打开迁移生成的文件,这正是您想要的。我不能代表textmate。 关于ruby-使用VimRails,您可以创建一个新的迁移文件并一次性打开它吗?,我们在StackOverflow上找到一个类似的问题: https://sta

  2. ruby-on-rails - 如何在发布新的 Ruby 或 Rails 版本时收到通知? - 2

    有人知道在发布新版本的Ruby和Rails时收到电子邮件的方法吗?他们有邮件列表,RubyonRails有一个推特,但我不想听到那些随之而来的喧嚣,我只想知道什么时候发布新版本,尤其是那些有安全修复的版本。 最佳答案 从therailsblog获取提要.http://weblog.rubyonrails.org/feed/atom.xml 关于ruby-on-rails-如何在发布新的Ruby或Rails版本时收到通知?,我们在StackOverflow上找到一个类似的问题:

  3. Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting - 2

    1.错误信息:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:requestcanceledwhilewaitingforconnection(Client.Timeoutexceededwhileawaitingheaders)或者:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:TLShandshaketimeout2.报错原因:docker使用的镜像网址默认为国外,下载容易超时,需要修改成国内镜像地址(首先阿里

  4. ruby - 需要重构为新的 Ruby 1.9 哈希语法 - 2

    这个问题在这里已经有了答案:HashsyntaxinRuby[duplicate](1个回答)关闭5年前。我有一个Recipe,其中包含以下未通过lint测试的代码:service'apache'dosupports:status=>true,:restart=>true,:reload=>trueend失败并出现错误:UsethenewRuby1.9hashsyntax.supports:status=>true,:restart=>true,:reload=>true不确定新语法是什么样的...有人可以帮忙吗?

  5. ruby - 为什么我不能从 ruby​​ 中的选定键创建新的散列? - 2

    这个问题困扰了我一段时间。这不是一件困难的事情,但我不知道为什么没有简单的方法来做到这一点,我敢打赌有但我没有看到。我只想取一个散列,像这样:cars={:bob=>'Pontiac',:fred=>'Chrysler',:lisa=>'Cadillac',:mary=>'Jaguar'}然后做类似的事情cars[:bob,:lisa]得到{:bob=>'Pontiac',:lisa=>'Cadillac'}我这样做了,效果很好:classHashdefpick(*keys)Hash[select{|k,v|keys.include?(k)}]endendruby-1.8.7-p249

  6. ruby - 如何将新的 rvm 安装与现有的 ruby​​ 版本相关联? - 2

    我遇到了RVM的问题,所以我卸载并重新安装了它。事实是我实际上尝试过rbenv,但这对我来说没有用,所以我试图让rvm重新启动并运行-而不必安装重复版本的Ruby。我至少安装了1个现有版本的Ruby:ruby--versionruby1.8.7(2011-12-28patchlevel357)[universal-darwin11.0]但是当我执行rvmlist时,我得到一个空白列表:bash-3.2$rvmlistrvmrubies#Defaultrubynotset.Try'rvmaliascreatedefault'.#=>-current#=*-current&&default

  7. ruby-on-rails - 在 Rails 中,我从 Guard 那里收到这个错误,说我必须更新到新的 :cmd syntax - 2

    我刚刚更新了我的gem,当我尝试运行Guard时,出现以下错误:Guard::RSpecDEPRECATIONWARNING:The:clioptionisdeprecated.Pleasecustomizethenew:cmdoptiontofityourneed.这是我的Guard文件:guard'rspec',cli:'--drb'dowatch(%r{^spec/.+_spec\.rb$})watch(%r{^lib/(.+)\.rb$}){|m|"spec/lib/#{m[1]}_spec.rb"}watch('spec/spec_helper.rb'){"spec"}#Ra

  8. ruby-on-rails - 每当 gem : I set :output but the logfile doesn't show up where I'd expect it to - 2

    在我的schedule.rb文件中,我有以下几行:set:output,'/log/cron_log.log'every5.minutesdocommand'echo"hello"'end我按照这个问题Rails,usingwhenevergemindevelopment中的建议运行了whenever-w,并且我假设cronfile已编写并正在运行。(我也尝试重新启动Rails服务器。)当我运行$crontab-l时,我看到以下内容:0,5,10,15,20,25,30,35,40,45,50,55****/bin/bash-l-c'echo"hello">>/log/cron_log

  9. ruby-on-rails - 无法创建新的 Rails 项目 : `require' : cannot load such file --/config/boot (LoadError) - 2

    我正在尝试创建一个新的Rails项目,Jakes-Air:codeJakeWengroff$railsnewMyNewProject-T但我一直收到这个错误:script/rails:5:in`require':cannotloadsuchfile--/Users/JakeWengroff/config/boot(LoadError)fromscript/rails:5:in`'检查Ruby版本,ruby-v,我明白了ruby2.1.2p95(2014-05-08revision45877)[x86_64-darwin13.0]当我想检查Rails的版本时,rails-v,我得到了与我

  10. ruby-on-rails - 尝试创建新的 Rails 应用程序时出现 Thor 参数错误 - 2

    我正在尝试使用rails-api创建一个新的应用程序。当我运行rails-apinewmynewapp时,我得到以下信息:/Users/sandy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1.1/lib/thor/parser/option.rb:125:in`validate_default_type!':Anoption'sdefaultmustmatchitstype.(ArgumentError)from/Users/sandy/.rbenv/versions/2.2.2/lib/ruby/gems/2.

随机推荐