Giter VIP home page Giter VIP logo

Comments (6)

erikh avatar erikh commented on May 31, 2024

from box.

erikh avatar erikh commented on May 31, 2024

Actually yeah, this has to be upstream, or maaaaaybe it's something we've done to the whiteout files. I really need that build plan if you're comfortable sharing it.

from box.

errordeveloper avatar errordeveloper commented on May 31, 2024

Yeah, no problem, but I'm not sure if it was this one:

from "wordpress:php7.0-apache"

site_dir = "/srv/site"

inside "/var/tmp" do
  %w(code files).each { |t| copy "./pantheon-data/#{t}.tar.gz", "./pantheon-data/#{t}.tar.gz" }
  run "mkdir -p #{site_dir}/wp-content/uploads"
  run "tar xzf pantheon-data/code.tar.gz -C #{site_dir} --strip-components=1"
  run "tar xzf pantheon-data/files.tar.gz -C #{site_dir}/wp-content/uploads --strip-components=1"
  run "chown www-data. -R #{site_dir}"
  run "find #{site_dir} -type d -exec chmod ugo+rwx {} \\;"
  run "rm -rfv pantheon-data"
end

inside "/etc/apache2" do
  copy "apache2.conf", "./apache2.conf"
end

run "docker-php-ext-install zip mbstring"

run [
  "apt -yq update",
  "apt -yq install curl vim",
  "curl -s https://download.newrelic.com/548C16BF.gpg | apt-key add -",
  "echo \"deb http://apt.newrelic.com/debian/ newrelic non-free\" > /etc/apt/sources.list.d/newrelic.list",
  "apt -yq update",
  "apt -yq install newrelic-php5",
  "env NR_INSTALL_SILENT=true NR_INSTALL_KEY=secretsecretsecret newrelic-install install",
  "docker-php-ext-enable newrelic",
  # Disable opcache so bind mount changes are noticed immediately
  "echo \"opcache.enable=0\" >> /usr/local/etc/php/conf.d/opcache-recommended.ini"
].join(" && ")

inside site_dir do
  defines = {
    'JETPACK_DEV_DEBUG' => 'true',
    'WP_HTTP_BLOCK_EXTERNAL' => 'true',
  }
  defines.each_pair do |k,v|
    run "sed \"/^\\/\\* That's all, stop editing! Happy Pressing\\. \\*\\/$/i define('#{k}', #{v});\\n\" -i wp-config.php"
  end
end

flatten
workdir site_dir

tag "wordpress-snapshot"

...or this one here.

from box.

erikh avatar erikh commented on May 31, 2024

hmm. can you isolate which one you saw this in? the flatten code in particular concerns me.

from box.

errordeveloper avatar errordeveloper commented on May 31, 2024

from box.

errordeveloper avatar errordeveloper commented on May 31, 2024

Somehow I'm not able to reproduce it now, may I was using an old version of box when this occurred (one of my makefiles referred to a specific SHA1 tag of box).

from box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.