Repository for the Ebury's Docker test.
- DOCKER EXERCISE.
- Working directory: docker_test folder
- Docker Engine 1.11 or higher
- Complete Dockerfile to build the application container with all requirement needed(set working dir, install dependencies, set config variables and propagate script to container).
- Complete cmd.sh file where depending value of $ENV start development server, production (using user created on dockerfile, setting production port and visibility), or test mode.
- Fill <<CONNECTION_VALUES>> and <<HOST_VALUE>> in ebury.py file application.
- Install Docker 1.11 or higher.
- Clone EBURY DEVOPS DOCKER proyect.
- Move to the working directory.
- Change the enviorement in docker-compose.yml.
- Run:
docker-compose up --build
docker_test$ tree
.
├── README.md
└── docker_test
├── Dockerfile
├── app
│ ├── ebury.py
│ └── tests.py
├── cmd.sh
└── docker-compose.yml
docker_test$ uname -a
Darwin AlvaroRacero.local 15.6.0 Darwin Kernel Version 15.6.0: Fri Feb 17 10:21:18 PST 2017; root:xnu-3248.60.11.4.1~1/RELEASE_X86_64 x86_64
docker_test$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1421
docker_test$ docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Tue Mar 28 00:40:02 2017
OS/Arch: darwin/amd64
Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Fri Mar 24 00:00:50 2017
OS/Arch: linux/amd64
Experimental: true
docker_test$ docker info
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 13
Server Version: 17.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.13-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952 GiB
Name: moby
ID: AZ3N:6GAH:EGXD:KZB7:IF66:ILWO:FFGN:SKQD:IPJF:TCMX:6OKK:TGNG
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 30
Goroutines: 29
System Time: 2017-04-17T07:53:20.399308633Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false