mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
Merge pull request #3162 from deitch/update-compose
Update and fix compose project
This commit is contained in:
commit
a9da8c624d
@ -3,9 +3,7 @@
|
|||||||
ORG?=linuxkitprojects
|
ORG?=linuxkitprojects
|
||||||
IMAGE=compose
|
IMAGE=compose
|
||||||
DEPS=image/Dockerfile docker-compose.yml image/waitfordocker.sh image/load-images-and-compose.sh
|
DEPS=image/Dockerfile docker-compose.yml image/waitfordocker.sh image/load-images-and-compose.sh
|
||||||
COMMON_IMAGES := \
|
COMMON_IMAGES := $(shell awk '/image:/ {print $$2}' docker-compose.yml | sort | uniq)
|
||||||
nginx:alpine \
|
|
||||||
traefik
|
|
||||||
|
|
||||||
|
|
||||||
HASH?=$(shell git ls-tree HEAD -- ./image | awk '{print $$3}')
|
HASH?=$(shell git ls-tree HEAD -- ./image | awk '{print $$3}')
|
||||||
@ -32,7 +30,7 @@ run-dynamic:
|
|||||||
linuxkit run dist/compose-dynamic
|
linuxkit run dist/compose-dynamic
|
||||||
|
|
||||||
run-static:
|
run-static:
|
||||||
linuxkit run dist/compose-static
|
linuxkit run -mem 2048 dist/compose-static
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf image-cache
|
rm -rf image-cache
|
||||||
|
@ -20,14 +20,19 @@ onboot:
|
|||||||
image: linuxkit/mount:v0.6
|
image: linuxkit/mount:v0.6
|
||||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||||
services:
|
services:
|
||||||
|
- name: getty
|
||||||
|
image: linuxkit/getty:v0.6
|
||||||
|
env:
|
||||||
|
- INSECURE=true
|
||||||
- name: rngd
|
- name: rngd
|
||||||
image: linuxkit/rngd:v0.6
|
image: linuxkit/rngd:v0.6
|
||||||
- name: ntpd
|
- name: ntpd
|
||||||
image: linuxkit/openntpd:v0.6
|
image: linuxkit/openntpd:v0.6
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:17.07.0-ce-dind
|
image: docker:18.06.0-ce-dind
|
||||||
capabilities:
|
capabilities:
|
||||||
- all
|
- all
|
||||||
|
net: host
|
||||||
mounts:
|
mounts:
|
||||||
- type: cgroup
|
- type: cgroup
|
||||||
options: ["rw","nosuid","noexec","nodev","relatime"]
|
options: ["rw","nosuid","noexec","nodev","relatime"]
|
||||||
@ -39,11 +44,13 @@ services:
|
|||||||
- /etc/html:/var/html
|
- /etc/html:/var/html
|
||||||
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
|
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
|
||||||
- name: compose
|
- name: compose
|
||||||
image: linuxkitprojects/compose:0535e78608f57702745dfd56fbe78d28d237e469
|
image: linuxkitprojects/compose:111f9f32a933c9e7acbf3ccfc13fedbdfce8224f
|
||||||
binds:
|
binds:
|
||||||
- /var/run:/var/run
|
- /var/run:/var/run
|
||||||
- /etc/compose:/compose
|
- /etc/compose:/compose
|
||||||
files:
|
files:
|
||||||
|
- path: var/lib/docker
|
||||||
|
directory: true
|
||||||
- path: etc/html/a/index.html
|
- path: etc/html/a/index.html
|
||||||
source: html-a.html
|
source: html-a.html
|
||||||
- path: etc/html/b/index.html
|
- path: etc/html/b/index.html
|
||||||
@ -53,3 +60,4 @@ files:
|
|||||||
trust:
|
trust:
|
||||||
org:
|
org:
|
||||||
- linuxkit
|
- linuxkit
|
||||||
|
- library
|
||||||
|
@ -20,14 +20,19 @@ onboot:
|
|||||||
image: linuxkit/mount:v0.6
|
image: linuxkit/mount:v0.6
|
||||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||||
services:
|
services:
|
||||||
|
- name: getty
|
||||||
|
image: linuxkit/getty:v0.6
|
||||||
|
env:
|
||||||
|
- INSECURE=true
|
||||||
- name: rngd
|
- name: rngd
|
||||||
image: linuxkit/rngd:v0.6
|
image: linuxkit/rngd:v0.6
|
||||||
- name: ntpd
|
- name: ntpd
|
||||||
image: linuxkit/openntpd:v0.6
|
image: linuxkit/openntpd:v0.6
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:17.07.0-ce-dind
|
image: docker:18.06.0-ce-dind
|
||||||
capabilities:
|
capabilities:
|
||||||
- all
|
- all
|
||||||
|
net: host
|
||||||
mounts:
|
mounts:
|
||||||
- type: cgroup
|
- type: cgroup
|
||||||
options: ["rw","nosuid","noexec","nodev","relatime"]
|
options: ["rw","nosuid","noexec","nodev","relatime"]
|
||||||
@ -39,11 +44,13 @@ services:
|
|||||||
- /etc/html:/var/html
|
- /etc/html:/var/html
|
||||||
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
|
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
|
||||||
- name: compose
|
- name: compose
|
||||||
image: linuxkitprojects/compose:0535e78608f57702745dfd56fbe78d28d237e469
|
image: linuxkitprojects/compose:111f9f32a933c9e7acbf3ccfc13fedbdfce8224f
|
||||||
binds:
|
binds:
|
||||||
- /var/run:/var/run
|
- /var/run:/var/run
|
||||||
- /etc/compose:/compose
|
- /etc/compose:/compose
|
||||||
files:
|
files:
|
||||||
|
- path: var/lib/docker
|
||||||
|
directory: true
|
||||||
- path: etc/html/a/index.html
|
- path: etc/html/a/index.html
|
||||||
source: html-a.html
|
source: html-a.html
|
||||||
- path: etc/html/b/index.html
|
- path: etc/html/b/index.html
|
||||||
@ -57,3 +64,4 @@ files:
|
|||||||
trust:
|
trust:
|
||||||
org:
|
org:
|
||||||
- linuxkit
|
- linuxkit
|
||||||
|
- library
|
||||||
|
@ -9,9 +9,11 @@ set -e
|
|||||||
|
|
||||||
[ -n "$DEBUG" ] && set -x
|
[ -n "$DEBUG" ] && set -x
|
||||||
|
|
||||||
for image in /compose/images/*.tar ; do
|
if [ -d /compose/images/ ]; then
|
||||||
docker image load -i $image && rm -f $image
|
for image in /compose/images/*.tar ; do
|
||||||
done
|
docker image load -i $image
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
docker-compose -f /compose/docker-compose.yml up -d
|
docker-compose -f /compose/docker-compose.yml up -d
|
||||||
|
Loading…
Reference in New Issue
Block a user