Skip to content

Instantly share code, notes, and snippets.

@prichey
Created July 3, 2018 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prichey/44bdd45e8811963eb3961d426740dba3 to your computer and use it in GitHub Desktop.
Save prichey/44bdd45e8811963eb3961d426740dba3 to your computer and use it in GitHub Desktop.
~/g/headless-wp-starter (docker|✔) $ yarn docker:build; and yarn docker:start
yarn run v1.7.0
$ docker build . -t wp_headless
Sending build context to Docker daemon 18.3MB
Step 1/21 : FROM ubuntu:18.04
---> 113a43faa138
Step 2/21 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 807450512ff3
Step 3/21 : RUN apt-get update
---> Using cache
---> e1e3c865de04
Step 4/21 : RUN apt-get install -yq curl php gnupg wget sudo lsb-release debconf-utils
---> Using cache
---> 1a0be3e64809
Step 5/21 : RUN mkdir -p /usr/src/app
---> Using cache
---> ee02c1b79ed1
Step 6/21 : WORKDIR /usr/src/app
---> Using cache
---> d77c4b8a05f6
Step 7/21 : COPY install.sh /usr/src/app/install.sh
---> Using cache
---> 7572de39c2ab
Step 8/21 : RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
---> Using cache
---> 303c940dbe02
Step 9/21 : RUN echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list
---> Using cache
---> e12896194c25
Step 10/21 : RUN apt-get update
---> Using cache
---> 72261596ca3a
Step 11/21 : RUN apt-get install -yq yarn
---> Using cache
---> d45652baca03
Step 12/21 : RUN ./install.sh
---> Using cache
---> 5a6dec3f5c8d
Step 13/21 : RUN echo 'mysql-community-server mysql-community-server/root-pass password root' | debconf-set-selections
---> Using cache
---> 2e440ad7cfab
Step 14/21 : RUN echo 'mysql-community-server mysql-community-server/re-root-pass password root' | debconf-set-selections
---> Using cache
---> 07df3a3551a0
Step 15/21 : RUN echo 'mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)' | debconf-set-selections
---> Using cache
---> 40a0cd59d266
Step 16/21 : RUN wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
---> Using cache
---> 116db62295fc
Step 17/21 : RUN dpkg -i mysql-apt-config_0.8.10-1_all.deb
---> Using cache
---> e272db7468f8
Step 18/21 : RUN apt-get update
---> Using cache
---> 0459233068ef
Step 19/21 : RUN apt-get -qy install mysql-server
---> Using cache
---> 96746ec82501
Step 20/21 : EXPOSE 8080
---> Using cache
---> 9e909fd05827
Step 21/21 : CMD [ './start_docker.sh' ]
---> Using cache
---> 2e6797d5adf8
Successfully built 2e6797d5adf8
Successfully tagged wp_headless:latest
✨ Done in 0.65s.
yarn run v1.7.0
$ docker run -v $(pwd)/data:/var/lib/mysql -v $(pwd):/usr/src/app -p 8080:8080 -it wp_headless
✨ Done in 1.23s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment