-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
31 lines (30 loc) · 1.12 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
box: wercker-labs/docker
build:
steps:
- script:
name: docker version
code: |
docker -v
sudo docker run -itd --name systemd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run milcom/centos7-systemd
# box: wercker/default
# build:
# steps:
# # - minimum2scp/install-docker:
# # version: 1.10.2
# - script:
# name: docker version
# code: |
# echo $USER
# lsb_release -a
# curl -sSL https://get.docker.com/ | sh
# sudo usermod -aG docker ubuntu
# docker -v
# sudo service docker restart
# sudo service docker status
# sudo docker run -itd --name systemd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run milcom/centos7-systemd
# sudo docker exec systemd systemctl --version
# # - script:
# # name: Up docker systemd and test systemctl
# # code: |
# # sudo docker run -itd --name systemd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run milcom/centos7-systemd
# # sudo docker exec systemd systemctl --version