Public | Automated Build

Last pushed: 4 days ago
Short Description
Docker for web development.
Full Description

Introduction

Build

Make sure the docker command is available. If not follow the Docker or Docker
Toolbox install described below.

Run the setup script.

./setup.sh

Navigate to the directory containing the Dockerfile (latest) and run:

docker build \
--tag pipeline \
--no-cache \
.

This will have built the image and will exist in the list:

docker image list

Test

Connect to the environment (replace /web/status with desired):

docker run -it \
--volume=/web/status:/localDebugRepo \
--workdir="/localDebugRepo" \
--memory=4g \
--memory-swap=4g \
--entrypoint=/bin/bash \
pipeline:latest

Then run the script:

./vendor/richardparker989/scripts-3d-box/setup.sh
./vendor/richardparker989/scripts-3d-box/regress.sh

Upload

Tag the image just created with the command:

docker tag pipeline:latest richardparker989/3d-box:latest

Next the image needs to be pushed to docker with:

docker login
docker push richardparker989/3d-box:latest

Docker Toolbox

Install

Install from:

https://www.docker.com/products/docker-toolbox

Installer options:

  • Don't install git or kitematic.
  • Add docker to PATH.

Add virtual box to system PATH:

C:\Program Files\Oracle\VirtualBox

Following command run in cygwin.

Run:

docker-machine create \
--driver virtualbox \
--virtualbox-share-folder "C:\tools\cygwin\64\home\Richard\web:web" \
"docker-default"

Allow command to make changes.

Setup

The command:

docker-machine status docker-default

Should state 'Running'. The Docker environment can now be entered by running:

docker-machine ssh docker-default

Note: If state is not 'Running' then the machine can be started with:

docker-machine start docker-default

Docker

Install

Install from:

https://store.docker.com/editions/community/docker-ce-desktop-windows

Once install docker commands can be used from the command line.

Docker Pull Command
Owner
richardparker989
Source Repository

Comments (0)