Skip to content

Commit

Permalink
dcsg: add new recipe
Browse files Browse the repository at this point in the history
It could be used to deploy a docker compose file to a rootfs, meanwhile
create and enable a systemd service to start the containers in it.

Two parameters are added to the original dcsg:
--root-dir: install the docker-compose and systemd service to a
            specific root directory.
--compose-dir: the users could install the docker compose file to this
            directory, it defaults to /opt/containers.

a native dcsg is also supported, to have a try, please follow:
```
$ bitbake dcsg-native
$ ./tmp-glibc/sysroots-components/x86_64/dcsg-native/usr/bin/dcsg --root-dir /tmp/dcsg install ./my-compose/docker-compose.yml
$ tree /tmp/dcsg
/tmp/dcsg/
├── etc
│   └── systemd
│       └── system
│           ├── multi-user.target.wants
│           │   └── mycompose.service -> /etc/systemd/system/mycompose.service
│           └── mycompose.service
└── opt
    └── containers
        └── docker-compose.yml
```

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
  • Loading branch information
liuming50 committed Dec 16, 2018
1 parent fd20aa5 commit aac3d81
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 0 deletions.

0 comments on commit aac3d81

Please sign in to comment.