Skip to content

Instantly share code, notes, and snippets.

@zoeyronain
Created December 1, 2017 02:51
Show Gist options
  • Save zoeyronain/1499ea6c39adba0baf8d14e51caf8b56 to your computer and use it in GitHub Desktop.
Save zoeyronain/1499ea6c39adba0baf8d14e51caf8b56 to your computer and use it in GitHub Desktop.
zoey@DESKTOP-KC1NSCF:/mnt/c/Users/zoeyc/howtoadhd.com$ sudo make
docker pull howtoadhd/php-base:latest-cli
latest-cli: Pulling from howtoadhd/php-base
b56ae66c2937: Pulling fs layer
7e6d587fe67a: Pulling fs layer
0a614ef139c8: Pulling fs layer
0a614ef139c8: Verifying Checksum
0a614ef139c8: Download complete
b56ae66c2937: Verifying Checksum
b56ae66c2937: Download complete
b56ae66c2937: Pull complete
7e6d587fe67a: Verifying Checksum
7e6d587fe67a: Download complete
7e6d587fe67a: Pull complete
0a614ef139c8: Pull complete
Digest: sha256:edece80c98c6d6cfa7fb4c8ce98bdd860089b07ed7919475b9e429da8cc1e26b
Status: Downloaded newer image for howtoadhd/php-base:latest-cli
docker pull howtoadhd/php-base:latest-fpm
latest-fpm: Pulling from howtoadhd/php-base
b56ae66c2937: Already exists
7e6d587fe67a: Already exists
0a614ef139c8: Already exists
1600b5c1fbe3: Pulling fs layer
a4c439afaa65: Pulling fs layer
a4c439afaa65: Download complete
1600b5c1fbe3: Verifying Checksum
1600b5c1fbe3: Pull complete
a4c439afaa65: Pull complete
Digest: sha256:e2e2eede74cce8bcaba20355a9d4505dcaf486293db99d65f2f63e0cb6a54e9a
Status: Downloaded newer image for howtoadhd/php-base:latest-fpm
docker pull howtoadhd/nginx-base:latest
latest: Pulling from howtoadhd/nginx-base
b1f00a6a160c: Pulling fs layer
893ab8d8734b: Pulling fs layer
5bd0e3e256d9: Pulling fs layer
79c4e9920d30: Pulling fs layer
c4aca6353478: Pulling fs layer
7865ac0508cd: Pulling fs layer
d1a21c7c49ea: Pulling fs layer
79c4e9920d30: Waiting
c4aca6353478: Waiting
7865ac0508cd: Waiting
d1a21c7c49ea: Waiting
5bd0e3e256d9: Verifying Checksum
5bd0e3e256d9: Download complete
b1f00a6a160c: Verifying Checksum
b1f00a6a160c: Download complete
79c4e9920d30: Verifying Checksum
79c4e9920d30: Download complete
893ab8d8734b: Verifying Checksum
893ab8d8734b: Download complete
c4aca6353478: Verifying Checksum
c4aca6353478: Download complete
b1f00a6a160c: Pull complete
7865ac0508cd: Verifying Checksum
7865ac0508cd: Download complete
d1a21c7c49ea: Verifying Checksum
d1a21c7c49ea: Download complete
893ab8d8734b: Pull complete
5bd0e3e256d9: Pull complete
79c4e9920d30: Pull complete
c4aca6353478: Pull complete
7865ac0508cd: Pull complete
d1a21c7c49ea: Pull complete
Digest: sha256:d93de6d97b79a50d82ca6c93d2e053050104ca4061a42e4888994aa0b6bb3d0b
Status: Downloaded newer image for howtoadhd/nginx-base:latest
docker pull howtoadhd/cavalcade-runner:latest
latest: Pulling from howtoadhd/cavalcade-runner
b56ae66c2937: Already exists
21c2d160d0da: Pulling fs layer
d7a1cc3e0b4f: Pulling fs layer
b04db4a6a6f5: Pulling fs layer
dd63c7fe0534: Pulling fs layer
dd63c7fe0534: Waiting
d7a1cc3e0b4f: Verifying Checksum
d7a1cc3e0b4f: Download complete
b04db4a6a6f5: Verifying Checksum
b04db4a6a6f5: Download complete
dd63c7fe0534: Verifying Checksum
dd63c7fe0534: Download complete
21c2d160d0da: Verifying Checksum
21c2d160d0da: Download complete
21c2d160d0da: Pull complete
d7a1cc3e0b4f: Pull complete
b04db4a6a6f5: Pull complete
dd63c7fe0534: Pull complete
Digest: sha256:c2cd6d24223514a7b27463203d885ba53c627968e7f98c2d003c7d8d69c57feb
Status: Downloaded newer image for howtoadhd/cavalcade-runner:latest
docker build --no-cache -t howtoadhd/howtoadhd.com:app app
Sending build context to Docker daemon 103.4kB
Step 1/7 : FROM howtoadhd/php-base:latest-cli
---> 47ebe14ef52c
Step 2/7 : ENV COMPOSER_URL https://getcomposer.org/download/1.5.1/composer.phar
---> Running in 41d6167b7401
---> 9c8feb14576e
Removing intermediate container 41d6167b7401
Step 3/7 : ENV COMPOSER_ALLOW_SUPERUSER 1
---> Running in f32bfc82c05c
---> cdf8a9971b89
Removing intermediate container f32bfc82c05c
Step 4/7 : RUN curl -L -o /usr/bin/composer "${COMPOSER_URL}" && chmod +x /usr/bin/composer
---> Running in ba1aa21d1f6f
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1813k 100 1813k 0 0 906k 0 0:00:02 0:00:02 --:--:-- 658k
---> 87157240ac12
Removing intermediate container ba1aa21d1f6f
Step 5/7 : COPY . /var/www
---> f38fac6f89d6
Step 6/7 : RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ git
---> Running in 1adffd3b5aad
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/2) Installing expat (2.2.0-r1)
(2/2) Installing git (2.13.5-r0)
Executing busybox-1.26.2-r7.trigger
OK: 90 MiB in 85 packages
---> 138a72ae097f
Removing intermediate container 1adffd3b5aad
Step 7/7 : RUN cd /var/www && composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts
---> Running in bd0d69380713
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 17 installs, 0 updates, 0 removals
- Installing composer/installers (v1.4.0): Downloading (100%)
- Installing johnpbloch/wordpress-core-installer (1.0.0): Downloading (100%)
- Installing psr/http-message (1.0.1): Downloading (100%)
- Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
- Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
- Installing guzzlehttp/guzzle (6.3.0): Downloading (100%)
- Installing humanmade/aws-ses-wp-mail (master): Downloading (100%)
- Installing humanmade/batcache (dev-master 3dde082): Downloading (100%)
- Installing humanmade/cavalcade (dev-master 86320f1): Downloading (100%)
- Installing humanmade/memcached-object-cache (master): Downloading (100%)
- Installing mtdowling/jmespath.php (2.4.0): Downloading (100%)
- Installing aws/aws-sdk-php (3.27.5): Downloading (100%)
- Installing humanmade/s3-uploads (dev-master 4116977): Downloading (100%)
- Installing johnpbloch/wordpress-core (4.8.3): Downloading (100%)
- Installing johnpbloch/wordpress (4.8.3): Downloading (100%)
- Installing stuttter/ludicrousdb (4.0.0): Downloading (100%)
- Installing wpackagist-theme/twentyseventeen (1.3): Downloading (100%)
Generating optimized autoload files
---> 9f25d9a405e6
Removing intermediate container bd0d69380713
Successfully built 9f25d9a405e6
Successfully tagged howtoadhd/howtoadhd.com:app
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
docker build --no-cache -t howtoadhd/howtoadhd.com:php php
Sending build context to Docker daemon 4.096kB
Step 1/6 : FROM howtoadhd/howtoadhd.com:app
---> 9f25d9a405e6
Step 2/6 : FROM howtoadhd/php-base:latest-fpm
---> 5d405e861aa2
Step 3/6 : COPY --from=0 /var/www /var/www
---> 4f38b33ad179
Step 4/6 : RUN chown -R root:app /var/www && find /var/www -type d -exec chmod 550 {} \; && find /var/www -type f -exec chmod 440 {} \;
---> Running in 99defa90f594
---> b83501e628b8
Removing intermediate container 99defa90f594
Step 5/6 : COPY ./start-container.sh /start-container
---> 1dc62e0196e2
Step 6/6 : CMD /start-container
---> Running in e219e371dafb
---> c3eb71737753
Removing intermediate container e219e371dafb
Successfully built c3eb71737753
Successfully tagged howtoadhd/howtoadhd.com:php
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
docker build --no-cache -t howtoadhd/howtoadhd.com:nginx nginx
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM howtoadhd/howtoadhd.com:app
---> 9f25d9a405e6
Step 2/4 : FROM howtoadhd/nginx-base:latest
---> ab1bee876b8d
Step 3/4 : COPY --from=0 /var/www /var/www
---> 1025b0817e1e
Step 4/4 : RUN chown -R root:app /var/www /etc/nginx/html && find /var/www -type d -exec chmod 550 {} \; && find /var/www -type f -exec chmod 440 {} \; && find /etc/nginx/html -type d -exec chmod 550 {} \; && find /etc/nginx/html -type f -exec chmod 440 {} \;
---> Running in f169aaa03b67
---> 0f5e9ea41ada
Removing intermediate container f169aaa03b67
Successfully built 0f5e9ea41ada
Successfully tagged howtoadhd/howtoadhd.com:nginx
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
docker build --no-cache -t howtoadhd/howtoadhd.com:queue queue
Sending build context to Docker daemon 2.048kB
Step 1/5 : FROM howtoadhd/howtoadhd.com:app
---> 9f25d9a405e6
Step 2/5 : FROM howtoadhd/cavalcade-runner:latest
---> 9d8acde579e1
Step 3/5 : COPY --from=0 /var/www /var/www
---> 82b35c64da69
Step 4/5 : RUN chown -R root:app /var/www && find /var/www -type d -exec chmod 550 {} \; && find /var/www -type f -exec chmod 440 {} \;
---> Running in 0d642a74b013
---> 9899dac519e7
Removing intermediate container 0d642a74b013
Step 5/5 : USER app
---> Running in 0a6af99b7d3c
---> 2eb506aab139
Removing intermediate container 0a6af99b7d3c
Successfully built 2eb506aab139
Successfully tagged howtoadhd/howtoadhd.com:queue
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
docker build --no-cache -t howtoadhd/howtoadhd.com:php-dev .dev/php-dev
Sending build context to Docker daemon 4.608kB
Step 1/3 : FROM howtoadhd/howtoadhd.com:php
---> c3eb71737753
Step 2/3 : RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ php7-xdebug && rm -f /etc/php7/conf.d/xdebug.ini
---> Running in 909150f7b7cd
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/1) Installing php7-xdebug (2.5.3-r1)
OK: 75 MiB in 85 packages
---> 5e869c5ddc51
Removing intermediate container 909150f7b7cd
Step 3/3 : COPY ./php-custom.ini /etc/php7/conf.d/99-custom.ini
---> 986fa469739f
Successfully built 986fa469739f
Successfully tagged howtoadhd/howtoadhd.com:php-dev
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
cd app; \
../bin/composer install \
--no-ansi \
--dev \
--no-interaction \
--no-progress \
--no-scripts
../bin/composer: line 2: $'\r': command not found
Unable to find image 'loreleiaurora/php-base:cli' locally
cli: Pulling from loreleiaurora/php-base
b56ae66c2937: Already exists
5dbd6adfb7f6: Pulling fs layer
419194393aa3: Pulling fs layer
419194393aa3: Download complete
5dbd6adfb7f6: Verifying Checksum
5dbd6adfb7f6: Download complete
5dbd6adfb7f6: Pull complete
419194393aa3: Pull complete
Digest: sha256:3784f45c9d2e5c73f1d14047ede57b1322ccc1c44e18046c7f52f4fd7563d253
Status: Downloaded newer image for loreleiaurora/php-base:cli
You are using the deprecated option "dev". Dev packages are installed by default now.
Composer could not find a composer.json file in /app
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Makefile:21: recipe for target 'run' failed
make: *** [run] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment