Comments (6)
from box.
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.
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.
hmm. can you isolate which one you saw this in? the flatten code in particular concerns me.
from box.
from box.
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)
- Optimising rebuild conditions beyond layer cache HOT 3
- `reset` repl keyword to reset the build
- bug: image configuration is lost in an after clause if there's no commit
- bug: Box may not clear the entrypoint after run statements
- import & skip statements combined leads to multiple repeated image edits
- allow `from` to pull fresh images
- Report on cached layers that are over a certain age HOT 1
- Declarative Language Syntax
- Variable declarations
- Bug: terminal output not reset after some debug sessions
- Bug: box is incompatible with older builds of docker HOT 1
- box portable: not removing its own containers
- in some situations symlinks could be rewritten improperly when relative HOT 1
- Ability to push image HOT 3
- bug: stacked `inside` statements cause relative path escape
- `inside` statements should invalidate cache when changed
- bug: box reports "unexpected EOF" when permission errors are encountered in copy statement
- https://box-builder.github.io is broken HOT 1
- after and skip do not work well together
- The repl recording in README.md is archived HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box.